From b0c3b8de19c73a459171ce557e4e73e2f3918ad1 Mon Sep 17 00:00:00 2001 From: ciregenz Date: Wed, 10 Jun 2026 00:56:43 -0700 Subject: [PATCH] [eric] frontend: status chips speak plain english, working / needs your OK / done instead of enum values --- .../app/components/overlays/GlobalSearchPalette.tsx | 3 ++- frontend/src/app/pages/AgentChat/AgentChat.tsx | 3 ++- .../src/app/pages/Dashboard/canvas/DashboardHeader.tsx | 3 ++- frontend/src/app/pages/Dashboard/cards/AgentCard.tsx | 3 ++- frontend/src/shared/statusLabel.ts | 10 ++++++++++ 5 files changed, 18 insertions(+), 4 deletions(-) create mode 100644 frontend/src/shared/statusLabel.ts diff --git a/frontend/src/app/components/overlays/GlobalSearchPalette.tsx b/frontend/src/app/components/overlays/GlobalSearchPalette.tsx index c685aff0..b9c67482 100644 --- a/frontend/src/app/components/overlays/GlobalSearchPalette.tsx +++ b/frontend/src/app/components/overlays/GlobalSearchPalette.tsx @@ -14,6 +14,7 @@ import { setPendingFocusAgentId } from '@/shared/state/tempStateSlice'; import { createDashboard } from '@/shared/state/dashboardsSlice'; import { openSettingsModal } from '@/shared/state/settingsSlice'; import { useClaudeTokens } from '@/shared/styles/ThemeContext'; +import { friendlyStatusLabel } from '@/shared/statusLabel'; interface Props { open: boolean; @@ -301,7 +302,7 @@ const GlobalSearchPalette: React.FC = ({ open, onClose }) => { const dashName = r.dashboardId ? dashboards[r.dashboardId]?.name : null; const subtitle = [ dashName && `in ${dashName}`, - r.closedAt ? 'closed' : r.status, + r.closedAt ? 'closed' : friendlyStatusLabel(r.status), ].filter(Boolean).join(' ยท '); return ( = ({ sessionId: sessionIdProp, onClose {session.name} {!isDraft && statusStyle && ( = ({ - {item.status.replace('_', ' ')} + {friendlyStatusLabel(item.status)} ))} diff --git a/frontend/src/app/pages/Dashboard/cards/AgentCard.tsx b/frontend/src/app/pages/Dashboard/cards/AgentCard.tsx index 8b8c19ca..f693636c 100644 --- a/frontend/src/app/pages/Dashboard/cards/AgentCard.tsx +++ b/frontend/src/app/pages/Dashboard/cards/AgentCard.tsx @@ -37,6 +37,7 @@ import { useOverlayScrollPassthrough } from '../hooks/interaction/useOverlayScro import { useStreamingMessage } from '@/shared/state/streamingSlice'; import { isCanvasInteractionActive, onCanvasInteractionEnd } from '@/shared/canvasInteractionState'; import { getAgentWorkTime, fmtSeconds } from '@/shared/agentWorkTime'; +import { friendlyStatusLabel } from '@/shared/statusLabel'; const GoogleServiceIcon: React.FC<{ service: string; size?: number }> = ({ service, size = 16 }) => { if (service === 'gmail') { @@ -757,7 +758,7 @@ const AgentCard: React.FC = ({ {session.name}