From e4006196569752ba259fa4f05a2650d0d0d52128 Mon Sep 17 00:00:00 2001 From: CaIon Date: Sat, 11 Jul 2026 19:37:34 +0800 Subject: [PATCH] feat: enhance stale instance handling and update theme colors --- .../components/system-instances-panel.tsx | 53 ++++++++++--------- web/default/src/styles/theme.css | 18 +++---- 2 files changed, 36 insertions(+), 35 deletions(-) diff --git a/web/default/src/features/system-info/components/system-instances-panel.tsx b/web/default/src/features/system-info/components/system-instances-panel.tsx index 351f8ab1..ca85b72b 100644 --- a/web/default/src/features/system-info/components/system-instances-panel.tsx +++ b/web/default/src/features/system-info/components/system-instances-panel.tsx @@ -513,6 +513,7 @@ export function SystemInstancesPanel() { const staleInstances = instances.filter( (instance) => instance.status === 'stale' ) + const hasStaleInstances = staleInstances.length > 0 const loading = instancesQuery.isLoading const refreshing = instancesQuery.isFetching && !instancesQuery.isLoading @@ -650,32 +651,32 @@ export function SystemInstancesPanel() { seconds: INSTANCE_POLL_INTERVAL_MS / 1000, })} - + {hasStaleInstances ? ( + + ) : null}