feat(tasks-ui): readability pass, height-budget fix and leftover sweep

The native port is finished off with the readability work the earlier rounds
left open, plus the cleanup of everything the shadcn era or the older canvas
left behind.

- Geometry: node height is now composed from named parts (chrome, two title
  lines, meta row) and per-node extras, so a teammate card that carries a task
  line no longer gets clipped by the old fixed 68px budget; the layout spec
  follows the new model and GRAPH_ROW_STRIDE stays exported for it.
- Readability: row rhythm (28-32px), three ink levels for title/meta/owner,
  truncation with title hints, current-row and hover expressed as an accent bar
  plus a hover fill (no shadows), phase frames and edges back on the l1/l2
  hairlines, control cluster uniformly 28px, drawer durations on tabular
  figures, kill action revealed on hover/focus without shifting the row, no
  horizontal overflow at 360px.
- Task window: the markdown body is pulled onto the page scale (12px body,
  12/13px headings, tightened list indent and paragraph spacing) while the
  shared MarkdownText/markdownTextProps contract is untouched.
- Cleanup: dead stylesheet rules, unused TSX exports and helpers, stale
  comments that still described the retired Variant-D canvas, zero-reference
  i18n keys across the dictionaries, and the Tailwind/shadcn/Variant-D
  narrative in the design doc, AGENTS.md and the plugin guide (kept as one
  short "why it was rolled back" section).

Verified here: typecheck and lint clean; 133 files / 1413 tests; build with no
radix-ui or --tw- strings in lib/client.js (988.9 KiB); the 70-assertion
real-browser contract at 70/70 with the 20 reference screenshots regenerated;
mount e2e 7/7.
This commit is contained in:
Menghuan1918 committed 2026-09-27 22:18:19 +08:00
1 parent ae4280c70e
commit b554665bde
35 files changed
+856 -1388

No files matched your search

-36
View File
@@ -93,29 +93,16 @@ export const zhTW: Record<string, string> = {
openWithSettingsRemove: '刪除',
openWithSettingsInvalidHint: '名稱或範本(需含 {path} 且以 scheme:// 開頭)未填寫的編輯器不會出現在選單中',
newTab: '新增標籤',
openExplorer: '檔案總管',
brokenSymlink: '失效的符號連結',
openGit: 'Git 面板',
newTerminal: '新終端',
terminalLimit: '終端數量已達上限 (3)',
close: '關閉',
closeOtherTabs: '關閉其他標籤',
closeLeftTabs: '關閉左側標籤',
closeRightTabs: '關閉右側標籤',
floatDropHint: '放開以在自由視窗中開啟',
dockToSidebar: '返回側邊欄',
pinTerminal: '固定終端',
pinAgentTerminal: '固定 Agent 終端',
pinToWorkspace: '固定到工作區',
pinToGlobal: '固定到全域',
unpinTerminal: '取消固定',
pinnedTerminalTooltip: '{kind} · {scope} · {cwd}',
pinnedTerminalKindUi: 'UI 終端',
pinnedTerminalKindAgent: 'Agent 終端',
pinnedTerminalScopeWorkspace: '固定到工作區',
pinnedTerminalScopeGlobal: '固定到全域',
pinnedRailLabel: '固定終端',
closePinnedTerminal: '關閉終端',
collapseBottomPanel: '收起底部面板',
expandBottomPanel: '展開底部面板',
terminalError: '終端連線失敗',
@@ -147,10 +134,6 @@ export const zhTW: Record<string, string> = {
loading: '載入中…',
error: '載入失敗',
retry: '重試',
splitLeft: '向左分欄',
splitRight: '向右分欄',
splitUp: '向上分欄',
splitDown: '向下分欄',
notRepo: '目前目錄不是 git 倉庫',
noChanges: '沒有變更',
statusTruncated: '變更過多,僅顯示前 2000 條',
@@ -160,7 +143,6 @@ export const zhTW: Record<string, string> = {
unstageAll: '全部取消暫存',
commitPlaceholder: '提交訊息 (Ctrl+Enter)',
commit: '提交',
commitError: '提交失敗',
branch: '分支',
worktree: '工作樹',
checkoutError: '切換分支失敗',
@@ -184,7 +166,6 @@ export const zhTW: Record<string, string> = {
diffDeleted: '刪除',
diffRenamed: '重新命名',
diffExpand: '展開其餘 {count} 行',
diffCollapse: '收起',
discard: '放棄變更',
discardTitle: '放棄變更',
discardDesc: '將丟棄「{path}」的工作區修改(不可復原)。',
@@ -205,18 +186,14 @@ export const zhTW: Record<string, string> = {
loadMore: '載入更多',
historyLoadError: '載入更多歷史失敗',
produced: '本次產出',
producedOpen: '在側邊欄中開啟',
disconnected: '終端連線斷開,重新連線中…',
exited: '終端程序已退出',
noSession: '選擇一個工作階段以使用側邊欄',
pluginNotLoaded: '插件未載入,標籤暫不可用:',
hiddenFiles: '隱藏檔案',
parent: '上層目錄',
copied: '已複製',
copy: '複製',
newFile: '新檔案',
openEditor: '開啟編輯器',
gitDetail: '檢視變更詳情',
referenceFile: '@檔案',
addToConversation: '新增到對話',
copyRelative: '複製相對位址',
@@ -260,7 +237,6 @@ export const zhTW: Record<string, string> = {
settingsSchemeCustomDesc: '完全由你控制:注入自訂 CSS(可覆寫內建樣式),並指定標題欄下移距離',
settingsSchemeDetectedSuffix: '已偵測',
settingsCustomCssTitle: '自訂 CSS',
settingsCustomCssDesc: '附加到頁面末尾的樣式(同優先級下後寫勝出;覆寫 JS 內聯變數需用 !important)',
settingsCustomCssPlaceholder: '/* 例:為自繪標題欄的殼預留 36px */\nhtml[data-dsh-title-bar-height="36"] {\n --dsh-title-bar-strip: 36px !important;\n}',
settingsSaveFailed: '儲存失敗',
settingsConflict: '設定已被其他視窗修改,請重試',
@@ -283,7 +259,6 @@ export const zhTW: Record<string, string> = {
settingsFontFamilyPlaceholder: '"JetBrains Mono", monospace',
settingsFontSizeTitle: '終端字型大小',
settingsFontSizeDesc: '終端字型大小(9–32,預設 13)',
settingsFontSizeSuffix: 'px',
settingsShellTitle: 'Shell 路徑',
settingsShellDesc: 'UI 與模型終端啟動的 shell(絕對路徑或可執行名)。留空按既有順序解析:yaml 的 config.shell → $SHELL / 登入 shell / Windows 的 powershell.exe。對之後開啟的終端生效',
settingsShellPlaceholder: '如 /bin/zsh(留空自動解析)',
@@ -325,19 +300,14 @@ export const zhTW: Record<string, string> = {
browserEmbedBlockedDesc: '該網站透過 X-Frame-Options / frame-ancestors 禁止在其它頁面中顯示,無法在側邊欄內載入。可在瀏覽器中直接開啟',
browserEmbedAnyway: '仍然載入',
subagent: '任務管理',
openSubagent: '任務管理',
subagentMainAgent: '主代理',
subagentEmpty: '暫無子代理',
subagentEmptyDesc: '目前主代理派生的子代理將顯示在這裡',
subagentRunning: '執行中',
subagentInactive: '閒置',
subagentModeOneShot: '一次性',
subagentModeContinuable: '可續接',
subagentCount: '{count} 個子代理',
subagentCountRunning: '{count} 個子代理 · {running} 執行中',
subagentDiagCorrupt: '目錄損壞',
subagentDiagUnsupported: '不支援的條目',
subagentDiagUnavailable: '不可用',
subagentThinking: '思考中…',
sideChat: '側邊對話(beta)',
sideChatNew: '新增對話',
@@ -358,10 +328,7 @@ export const zhTW: Record<string, string> = {
sideChatThink: '思考過程',
sideChatInjection: '已注入上下文',
sideChatSend: '發送',
sideChatCancel: '停止',
sideChatCancelTitle: '中止目前回合(保留佇列)',
sideChatClose: '關閉執行緒',
sideChatCloseTitle: '釋放執行緒的 agent(歷史保留)',
sideChatError: '側邊對話出錯:{message}',
sideChatTurnUsage: '輸入 {input} tok · 輸出 {output} tok',
sideChatBlockCollapse: '收起',
@@ -397,7 +364,6 @@ export const zhTW: Record<string, string> = {
jobDurationMinutes: '{minutes} 分 {seconds} 秒',
jobDurationHours: '{hours} 小時 {minutes} 分',
jobViewOutput: '檢視輸出',
jobHideOutput: '收起輸出',
jobNoOutput: '暫無輸出',
jobNotReadYet: '等待模型讀取該任務的輸出(模型執行 job_output 後,輸出會顯示在這裡)',
jobOutputTruncated: '輸出過長,已截斷顯示',
@@ -415,7 +381,6 @@ export const zhTW: Record<string, string> = {
settingsViewModeGraphDesc: '分層節點圖,可縮放平移',
settingsViewModeTree: '樹狀圖',
settingsViewModeTreeDesc: '經典縮排樹,可用鍵盤導航',
tasksWorkflowMember: '工作流成員',
tasksFoldCompleted: '✓ {count} 已完成',
tasksFoldExpand: '展開已完成的節點',
tasksFoldCollapse: '收起已完成的節點',
@@ -436,7 +401,6 @@ export const zhTW: Record<string, string> = {
tasksStateError: '出錯',
teamBoard: '團隊任務板',
teamChip: '團隊 {members} 成員 · {tasks} 任務',
teamMembers: '成員',
teamTasksEmpty: '暫無共用任務',
teamTaskCreate: '新增任務',
teamTaskSubject: '標題',