From d6d0baba1333e1b5ffb23c0cc01c9a7164b421ce Mon Sep 17 00:00:00 2001 From: jasquat Date: Wed, 23 Nov 2022 18:44:51 -0500 Subject: [PATCH] some ui changes w/ burnettk --- .../components/ProcessInstanceListTable.tsx | 2 +- .../src/components/ProcessInstanceRun.tsx | 2 +- .../src/components/TasksForMyOpenProcesses.tsx | 14 ++++++-------- .../src/components/TasksWaitingForMe.tsx | 18 ++++++++---------- .../src/components/TasksWaitingForMyGroups.tsx | 16 +++++++--------- spiffworkflow-frontend/src/index.css | 1 + .../src/routes/CreateNewInstance.tsx | 4 +--- .../src/routes/HomePageRoutes.tsx | 6 +++--- .../src/routes/ProcessModelShow.tsx | 17 ++++++++++------- 9 files changed, 38 insertions(+), 42 deletions(-) diff --git a/spiffworkflow-frontend/src/components/ProcessInstanceListTable.tsx b/spiffworkflow-frontend/src/components/ProcessInstanceListTable.tsx index 739c8948..78b67aaa 100644 --- a/spiffworkflow-frontend/src/components/ProcessInstanceListTable.tsx +++ b/spiffworkflow-frontend/src/components/ProcessInstanceListTable.tsx @@ -608,7 +608,7 @@ export default function ProcessInstanceListTable({ const buildTable = () => { const headerLabels: Record = { id: 'Id', - process_model_identifier: 'Process Model', + process_model_identifier: 'Process', start_in_seconds: 'Start Time', end_in_seconds: 'End Time', status: 'Status', diff --git a/spiffworkflow-frontend/src/components/ProcessInstanceRun.tsx b/spiffworkflow-frontend/src/components/ProcessInstanceRun.tsx index c5d79abd..bcead73f 100644 --- a/spiffworkflow-frontend/src/components/ProcessInstanceRun.tsx +++ b/spiffworkflow-frontend/src/components/ProcessInstanceRun.tsx @@ -119,7 +119,7 @@ export default function ProcessInstanceRun({ return ( ); diff --git a/spiffworkflow-frontend/src/components/TasksForMyOpenProcesses.tsx b/spiffworkflow-frontend/src/components/TasksForMyOpenProcesses.tsx index 7a01a7c4..bfe9df6f 100644 --- a/spiffworkflow-frontend/src/components/TasksForMyOpenProcesses.tsx +++ b/spiffworkflow-frontend/src/components/TasksForMyOpenProcesses.tsx @@ -65,7 +65,6 @@ export default function MyOpenProcesses() { > {rowToUse.task_title} - {rowToUse.process_instance_status} {rowToUse.group_identifier || '-'} {convertSecondsToFormattedDateTime( @@ -94,13 +93,12 @@ export default function MyOpenProcesses() { - - - - - - - + + + + + + diff --git a/spiffworkflow-frontend/src/components/TasksWaitingForMe.tsx b/spiffworkflow-frontend/src/components/TasksWaitingForMe.tsx index cd0eb048..c34745e1 100644 --- a/spiffworkflow-frontend/src/components/TasksWaitingForMe.tsx +++ b/spiffworkflow-frontend/src/components/TasksWaitingForMe.tsx @@ -56,7 +56,7 @@ export default function TasksWaitingForMe() { data-qa="process-instance-show-link" to={`/admin/process-models/${modifiedProcessModelIdentifier}/process-instances/${rowToUse.process_instance_id}`} > - View {rowToUse.process_instance_id} + {rowToUse.process_instance_id} -
Process ModelProcess InstanceTask NameProcess Instance StatusAssigned GroupProcess StartedProcess UpdatedProcessIdTaskWaiting ForDate StartedLast Updated Actions
{rowToUse.username}{rowToUse.process_instance_status} {rowToUse.group_identifier || '-'} {convertSecondsToFormattedDateTime( @@ -94,14 +93,13 @@ export default function TasksWaitingForMe() { - - - - - - - - + + + + + + + diff --git a/spiffworkflow-frontend/src/components/TasksWaitingForMyGroups.tsx b/spiffworkflow-frontend/src/components/TasksWaitingForMyGroups.tsx index 05a970ef..b62d6edd 100644 --- a/spiffworkflow-frontend/src/components/TasksWaitingForMyGroups.tsx +++ b/spiffworkflow-frontend/src/components/TasksWaitingForMyGroups.tsx @@ -66,7 +66,6 @@ export default function TasksWaitingForMyGroups() { {rowToUse.task_title} -
Process ModelProcess InstanceTask NameProcess Started ByProcess Instance StatusAssigned GroupProcess StartedProcess UpdatedProcessIdTaskStarted ByWaiting ForDate StartedLast Updated Actions
{rowToUse.username}{rowToUse.process_instance_status} {rowToUse.group_identifier || '-'} {convertSecondsToFormattedDateTime( @@ -95,14 +94,13 @@ export default function TasksWaitingForMyGroups() { - - - - - - - - + + + + + + + diff --git a/spiffworkflow-frontend/src/index.css b/spiffworkflow-frontend/src/index.css index 6985ef9f..88202b6e 100644 --- a/spiffworkflow-frontend/src/index.css +++ b/spiffworkflow-frontend/src/index.css @@ -273,4 +273,5 @@ td.actions-cell { line-height: 18px; letter-spacing: 0.16px; color: #525252; + margin-bottom: 1em; } diff --git a/spiffworkflow-frontend/src/routes/CreateNewInstance.tsx b/spiffworkflow-frontend/src/routes/CreateNewInstance.tsx index fbb3f844..6d6d133f 100644 --- a/spiffworkflow-frontend/src/routes/CreateNewInstance.tsx +++ b/spiffworkflow-frontend/src/routes/CreateNewInstance.tsx @@ -2,8 +2,6 @@ import ProcessModelListTiles from '../components/ProcessModelListTiles'; export default function CreateNewInstance() { return ( - Process models available to you} - /> + Processes you can start} /> ); } diff --git a/spiffworkflow-frontend/src/routes/HomePageRoutes.tsx b/spiffworkflow-frontend/src/routes/HomePageRoutes.tsx index 10d98f95..872a7a69 100644 --- a/spiffworkflow-frontend/src/routes/HomePageRoutes.tsx +++ b/spiffworkflow-frontend/src/routes/HomePageRoutes.tsx @@ -35,12 +35,12 @@ export default function HomePageRoutes() { {/* navigate('/tasks/my-tasks')}>My Tasks */} - navigate('/tasks/grouped')}>Tasks + navigate('/tasks/grouped')}>In Progress navigate('/tasks/completed-instances')}> - Completed Instances + Completed navigate('/tasks/create-new-instance')}> - Create New Instance + + Start New + diff --git a/spiffworkflow-frontend/src/routes/ProcessModelShow.tsx b/spiffworkflow-frontend/src/routes/ProcessModelShow.tsx index d654a51e..32d122f7 100644 --- a/spiffworkflow-frontend/src/routes/ProcessModelShow.tsx +++ b/spiffworkflow-frontend/src/routes/ProcessModelShow.tsx @@ -101,6 +101,7 @@ export default function ProcessModelShow() { ).

+
); } @@ -544,16 +545,17 @@ export default function ProcessModelShow() { a={targetUris.processInstanceActionPath} ability={ability} > - + <> + +
+
+ -
-
{processInstanceRunResultTag()} -
{processInstanceListTableButton()}
+
{processModelButtons()}
Process ModelProcess InstanceTask NameProcess Started ByProcess Instance StatusAssigned GroupProcess StartedProcess UpdatedProcessIdTaskStarted ByWaiting ForDate StartedLast Updated Actions