[ARVADOS-WORKBENCH2] updated: 1.2.0-519-g852b195

Git user git at public.curoverse.com
Tue Oct 2 08:19:32 EDT 2018


Summary of changes:
 .../workflow-panel/workflow-description-card.tsx   | 41 ++++++++++++++++------
 src/views/workflow-panel/workflow-panel-view.tsx   |  2 +-
 2 files changed, 31 insertions(+), 12 deletions(-)

       via  852b19504c30cbc71cdf2fc55cee3a29d42bd4be (commit)
      from  ce28737ae52cf06c9d5490410beef1d9d63b110d (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 852b19504c30cbc71cdf2fc55cee3a29d42bd4be
Author: Michal Klobukowski <michal.klobukowski at contractors.roche.com>
Date:   Tue Oct 2 14:19:16 2018 +0200

    Add inputs table to workflow panel
    
    Feature #13863
    
    Arvados-DCO-1.1-Signed-off-by: Michal Klobukowski <michal.klobukowski at contractors.roche.com>

diff --git a/src/views/workflow-panel/workflow-description-card.tsx b/src/views/workflow-panel/workflow-description-card.tsx
index 1462362..a983564 100644
--- a/src/views/workflow-panel/workflow-description-card.tsx
+++ b/src/views/workflow-panel/workflow-description-card.tsx
@@ -3,11 +3,11 @@
 // SPDX-License-Identifier: AGPL-3.0
 
 import * as React from 'react';
-import { StyleRulesCallback, WithStyles, withStyles, CardContent, Tab, Tabs } from '@material-ui/core';
+import { StyleRulesCallback, WithStyles, withStyles, CardContent, Tab, Tabs, Typography, List, ListItem, Table, TableHead, TableCell, TableBody, TableRow } from '@material-ui/core';
 import { ArvadosTheme } from '~/common/custom-theme';
 import { WorkflowIcon } from '~/components/icon/icon';
 import { DataTableDefaultView } from '~/components/data-table-default-view/data-table-default-view';
-import { WorkflowResource, parseWorkflowDefinition, getWorkflowInputs } from '~/models/workflow';
+import { WorkflowResource, parseWorkflowDefinition, getWorkflowInputs, getInputLabel, stringifyInputType } from '~/models/workflow';
 
 export type CssRules = 'root' | 'tab';
 
@@ -48,19 +48,18 @@ export const WorkflowDetailsCard = withStyles(styles)(
                     {workflow ? (
                         workflow.description
                     ) : (
-                        <DataTableDefaultView
-                            icon={WorkflowIcon}
-                            messages={['Please select a workflow to see its description.']} />
-                    )}
+                            <DataTableDefaultView
+                                icon={WorkflowIcon}
+                                messages={['Please select a workflow to see its description.']} />
+                        )}
                 </CardContent>}
                 {value === 1 && <CardContent>
-                    {workflow ? (
-                        workflow.name
-                    ) : (
-                        <DataTableDefaultView
+                    {workflow
+                        ? this.renderInputsTable()
+                        : <DataTableDefaultView
                             icon={WorkflowIcon}
                             messages={['Please select a workflow to see its inputs.']} />
-                    )}
+                    }
                 </CardContent>}
             </div>;
         }
@@ -74,4 +73,24 @@ export const WorkflowDetailsCard = withStyles(styles)(
             }
             return;
         }
+
+        renderInputsTable() {
+            return <Table>
+                <TableHead>
+                    <TableRow>
+                        <TableCell>Label</TableCell>
+                        <TableCell>Type</TableCell>
+                        <TableCell>Description</TableCell>
+                    </TableRow>
+                </TableHead>
+                <TableBody>
+                    {this.inputs && this.inputs.map(input =>
+                        <TableRow key={input.id}>
+                            <TableCell>{getInputLabel(input)}</TableCell>
+                            <TableCell>{stringifyInputType(input)}</TableCell>
+                            <TableCell>{input.doc}</TableCell>
+                        </TableRow>)}
+                </TableBody>
+            </Table>;
+        }
     });
\ No newline at end of file
diff --git a/src/views/workflow-panel/workflow-panel-view.tsx b/src/views/workflow-panel/workflow-panel-view.tsx
index 3202f09..c49ec88 100644
--- a/src/views/workflow-panel/workflow-panel-view.tsx
+++ b/src/views/workflow-panel/workflow-panel-view.tsx
@@ -122,7 +122,7 @@ export const WorkflowPanelView = (props: WorkflowPanelProps) => {
         </Grid>
         <Grid item xs={6}>
             <Paper>
-                <WorkflowDetailsCard />
+                <WorkflowDetailsCard workflow={props.workflow} />
             </Paper>
         </Grid>
     </Grid>;

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list