refactor(ui): 收敛设计 token 并迁移到 shadcn/Tailwind — 基于 #118 rebase - #119
Conversation
There was a problem hiding this comment.
Code Review
This pull request implements a comprehensive UI/UX refactoring of the AgentDock frontend to align with the "Operator Console" design system. It integrates Tailwind CSS, Radix UI primitives, and Sonner toasts, replacing several legacy custom components and styling sheets. It also introduces robust E2E testing suites for accessibility (axe-core), visual regression, and targeted UI fixes. However, a few issues remain: the terminal add menu in TerminalManager.tsx has not been fully migrated to a Radix DropdownMenu (causing a regression test failure), some inputs in ConfigEditor.tsx lack accessible labels, a Tailwind class conflict exists in CustomTitleBar.tsx, and DirBrowserModal.tsx fails to utilize the effectiveTriggerRef for focus restoration.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
c6477c3 to
d6f8e4e
Compare
d6f8e4e to
a37e6a5
Compare
背景
基于 #118 (修复单实例生命周期并清理旧架构测试) rebase 的 UI 重构 PR。#118 已独立修复了端口恢复逻辑;本 PR 聚焦于视觉体系收敛。
设计 token 收敛
globals.css: 删除双:root死代码与 dark 块--color-*硬编码重定义;写入最终色板(primary#C62A45/ destructive#D92D20/ info#356AE6/ canvas#F6F7F9),补全 success/warning/destructive/info 的-bg/-text/-border变体(light+dark)。@theme inline→@theme,修复 dark 下--color-card冻结为浅色的问题。修复的 bug
#fffheatmap 遮罩var(--card)*{margin:0;padding:0}覆盖 Tailwind utilities组件迁移
标题栏、TabBar、IconSidebar、SessionSidebar、工作区信息条、终端面板/设置栏、配置编辑器、目录浏览器、HookErrorModal、OrphanCleanModal、FilePicker、TodoDropdown、ErrorBoundary 全部迁到 Tailwind+shadcn。终端 "+" 菜单迁到 Radix DropdownMenu(键盘可达)。
端口修复说明
本 PR 的 port-pool release 引用计数 + restoreSession 保留,因为 #118 的 release 无引用计数存在共享端口误释放风险(单测已验证)。
验证
🤖 Generated with Claude Code