From cceda4fdea5f6c2072e8641d33fffe160613dcf7 Mon Sep 17 00:00:00 2001 From: garethgeorge Date: Wed, 4 Sep 2024 22:16:04 -0700 Subject: [PATCH] fix: bugs in displaying repo / plan / activity status --- webui/src/components/ActivityBar.tsx | 2 +- webui/src/views/App.tsx | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/webui/src/components/ActivityBar.tsx b/webui/src/components/ActivityBar.tsx index 397457b8..faa76f66 100644 --- a/webui/src/components/ActivityBar.tsx +++ b/webui/src/components/ActivityBar.tsx @@ -65,7 +65,7 @@ export const ActivityBar = () => { const displayName = displayTypeToString(getTypeForDisplay(op)); return ( - + {displayName} in progress for plan {op.planId} to {op.repoId} for{" "} {formatDuration(Date.now() - Number(op.unixTimeStartMs))} diff --git a/webui/src/views/App.tsx b/webui/src/views/App.tsx index c7b214d0..e354f8f9 100644 --- a/webui/src/views/App.tsx +++ b/webui/src/views/App.tsx @@ -313,7 +313,11 @@ const IconForResource = ({ case "createdOperations": case "updatedOperations": const ops = event.event.value.operations; - if (ops.find((op) => op.planId === planId && op.repoId === repoId)) { + if ( + ops.find( + (op) => (!planId || op.planId === planId) && op.repoId === repoId + ) + ) { refresh(); } break;