X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/a92ac33f876a928d9542fe08f2a567ce86f3e890..c59db7f1ffae1a16a5458740510e173582e68925:/src/views/run-process-panel/run-process-first-step.tsx diff --git a/src/views/run-process-panel/run-process-first-step.tsx b/src/views/run-process-panel/run-process-first-step.tsx index ff7b2c3d..fe93ef85 100644 --- a/src/views/run-process-panel/run-process-first-step.tsx +++ b/src/views/run-process-panel/run-process-first-step.tsx @@ -8,11 +8,18 @@ import { ArvadosTheme } from '~/common/custom-theme'; import { WorkflowResource } from '~/models/workflow'; import { WorkflowIcon } from '~/components/icon/icon'; import { WorkflowDetailsCard } from '../workflow-panel/workflow-description-card'; +import { SearchInput } from '~/components/search-input/search-input'; -type CssRules = 'rightGrid' | 'list' | 'listItem' | 'itemSelected' | 'listItemText' | 'listItemIcon'; +type CssRules = 'root' | 'searchGrid' | 'workflowDetailsGrid' | 'list' | 'listItem' | 'itemSelected' | 'listItemText' | 'listItemIcon'; const styles: StyleRulesCallback = (theme: ArvadosTheme) => ({ - rightGrid: { + root: { + alignSelf: 'flex-start' + }, + searchGrid: { + marginBottom: theme.spacing.unit * 2 + }, + workflowDetailsGrid: { borderLeft: `1px solid ${theme.palette.grey["300"]}` }, list: { @@ -40,6 +47,7 @@ export interface RunProcessFirstStepDataProps { } export interface RunProcessFirstStepActionProps { + onSearch: (term: string) => void; onSetStep: (step: number) => void; onSetWorkflow: (workflow: WorkflowResource) => void; } @@ -47,11 +55,11 @@ export interface RunProcessFirstStepActionProps { type RunProcessFirstStepProps = RunProcessFirstStepDataProps & RunProcessFirstStepActionProps & WithStyles; export const RunProcessFirstStep = withStyles(styles)( - ({ onSetStep, onSetWorkflow, workflows, selectedWorkflow, classes }: RunProcessFirstStepProps) => + ({ onSearch, onSetStep, onSetWorkflow, workflows, selectedWorkflow, classes }: RunProcessFirstStepProps) => - - - {/* TODO: add filters */} + + + @@ -69,7 +77,7 @@ export const RunProcessFirstStep = withStyles(styles)( - +