From 7c3d0f62abf861faae82d84cf1d25213d1791dc5 Mon Sep 17 00:00:00 2001 From: Jonathan Kilzi Date: Mon, 29 Jan 2024 11:23:03 +0200 Subject: [PATCH] fix(orchestrator): fixes sorting workflow runs (#1136) fix(orchestrator): workflow runs table should be sorted by started date in descending order Addresses: - https://issues.redhat.com/browse/FLPATH-888 --- .../orchestrator/src/components/WorkflowRunsTabContent.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/orchestrator/src/components/WorkflowRunsTabContent.tsx b/plugins/orchestrator/src/components/WorkflowRunsTabContent.tsx index 2876bc3d55..aefe964445 100644 --- a/plugins/orchestrator/src/components/WorkflowRunsTabContent.tsx +++ b/plugins/orchestrator/src/components/WorkflowRunsTabContent.tsx @@ -61,6 +61,7 @@ export const WorkflowRunsTabContent = () => { (): TableColumn[] => [ { title: 'ID', + field: 'id', render: data => ( {ellipsis(data.id)} @@ -73,6 +74,7 @@ export const WorkflowRunsTabContent = () => { }, { title: 'Status', + field: 'status', render: data => ( { }, { title: 'Category', + field: 'category', render: data => capitalize(data.category ?? VALUE_UNAVAILABLE), }, - { title: 'Started', field: 'started' }, + { title: 'Started', field: 'started', defaultSort: 'desc' }, { title: 'Duration', field: 'duration' }, ], [workflowInstanceLink],