From ec14f4a8eab9076942c89a9f2f7eb8e3a3d7a177 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=B7=E7=94=B5=E8=8A=BD=E8=A1=A3?= Date: Sun, 22 Mar 2026 16:44:12 -0400 Subject: [PATCH] feat(04-02): restyle RecoveryBanner with design tokens and update NeedsAttention label - Replace all hardcoded Tailwind colors with CSS custom properties (--warn, --warn-soft, --text, --muted, --panel-soft, --success, --danger, --muted-strong) - Use rounded-[10px] instead of rounded-lg for design system consistency - Add aria-label on dismiss button for accessibility - Update NeedsAttention label to 'Needs Your Attention' in en.ts and zh.ts --- .../components/dashboard/RecoveryBanner.tsx | 16 ++++++++-------- src/renderer/i18n/en.ts | 2 +- src/renderer/i18n/zh.ts | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/renderer/components/dashboard/RecoveryBanner.tsx b/src/renderer/components/dashboard/RecoveryBanner.tsx index ac4f5f86..da1fe287 100644 --- a/src/renderer/components/dashboard/RecoveryBanner.tsx +++ b/src/renderer/components/dashboard/RecoveryBanner.tsx @@ -41,33 +41,33 @@ export function RecoveryBanner() { const handleDismissAll = () => setDismissed(true); return ( -
+
-
+
{runs.length} interrupted task(s) detected from previous session
-
{runs.map(run => ( -
+
- {run.taskTitle} - ({run.agentName}) + {run.taskTitle} + ({run.agentName})
diff --git a/src/renderer/i18n/en.ts b/src/renderer/i18n/en.ts index e1c3ed76..6a6a2346 100644 --- a/src/renderer/i18n/en.ts +++ b/src/renderer/i18n/en.ts @@ -558,7 +558,7 @@ export const en: Record = { "dash.workforce": "Workforce", "dash.recentActivity": "Recent Activity", "dash.infrastructure": "Infrastructure", - "dash.needsAttentionSection": "Needs Attention", + "dash.needsAttentionSection": "Needs Your Attention", "dash.daysLeft": "{0} days left", "dash.tasksComplete": "{0}/{1} tasks complete", "dash.people": "People", diff --git a/src/renderer/i18n/zh.ts b/src/renderer/i18n/zh.ts index b153442d..0f38e104 100644 --- a/src/renderer/i18n/zh.ts +++ b/src/renderer/i18n/zh.ts @@ -558,7 +558,7 @@ export const zh: Record = { "dash.workforce": "工作力", "dash.recentActivity": "最近活动", "dash.infrastructure": "基础设施", - "dash.needsAttentionSection": "需要关注", + "dash.needsAttentionSection": "需要您的关注", "dash.daysLeft": "剩余 {0} 天", "dash.tasksComplete": "{0}/{1} 任务完成", "dash.people": "人员",