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
@@ -78,29 +78,16 @@ export const vi: Record<string, string> = {
openWithSettingsRemove: 'Xóa',
openWithSettingsInvalidHint: 'Trình soạn thảo thiếu tên hoặc mẫu (cần chứa {path} và bắt đầu bằng scheme://) sẽ không xuất hiện trong menu',
newTab: 'Tab mới',
openExplorer: 'Trình khám phá',
brokenSymlink: 'Symlink hỏng',
openGit: 'Panel Git',
newTerminal: 'Terminal mới',
terminalLimit: 'Đã đạt giới hạn terminal (3)',
close: 'Đóng',
closeOtherTabs: 'Đóng các tab khác',
closeLeftTabs: 'Đóng tab bên trái',
closeRightTabs: 'Đóng tab bên phải',
floatDropHint: 'Thả để mở trong cửa sổ tự do',
dockToSidebar: 'Quay lại thanh bên',
pinTerminal: 'Ghim Terminal',
pinAgentTerminal: 'Ghim Terminal Agent',
pinToWorkspace: 'Ghim vào Workspace',
pinToGlobal: 'Ghim Toàn cục',
unpinTerminal: 'Bỏ ghim',
pinnedTerminalTooltip: '{kind} · {scope} · {cwd}',
pinnedTerminalKindUi: 'Terminal UI',
pinnedTerminalKindAgent: 'Terminal Agent',
pinnedTerminalScopeWorkspace: 'Đã ghim vào workspace',
pinnedTerminalScopeGlobal: 'Đã ghim toàn cục',
pinnedRailLabel: 'Terminal đã ghim',
closePinnedTerminal: 'Đóng Terminal',
collapseBottomPanel: 'Thu gọn panel dưới',
expandBottomPanel: 'Mở rộng panel dưới',
terminalError: 'Kết nối terminal thất bại',
@@ -132,10 +119,6 @@ export const vi: Record<string, string> = {
loading: 'Đang tải…',
error: 'Tải thất bại',
retry: 'Thử lại',
splitLeft: 'Chia bên trái',
splitRight: 'Chia bên phải',
splitUp: 'Chia lên trên',
splitDown: 'Chia xuống dưới',
notRepo: 'Thư mục hiện tại không phải repo git',
noChanges: 'Không có thay đổi',
statusTruncated: 'Quá nhiều thay đổi; chỉ hiển thị 2000 mục đầu tiên',
@@ -145,7 +128,6 @@ export const vi: Record<string, string> = {
unstageAll: 'Unstage tất cả',
commitPlaceholder: 'Thông điệp commit (Ctrl+Enter)',
commit: 'Commit',
commitError: 'Commit thất bại',
branch: 'Branch',
worktree: 'Worktree',
checkoutError: 'Chuyển branch thất bại',
@@ -169,7 +151,6 @@ export const vi: Record<string, string> = {
diffDeleted: 'Xóa',
diffRenamed: 'Đổi tên',
diffExpand: 'Mở rộng {count} dòng còn lại',
diffCollapse: 'Thu gọn',
discard: 'Bỏ thay đổi',
discardTitle: 'Bỏ thay đổi',
discardDesc: 'Sẽ hủy các thay đổi worktree của «{path}» (không thể khôi phục).',
@@ -190,18 +171,14 @@ export const vi: Record<string, string> = {
loadMore: 'Tải thêm',
historyLoadError: 'Tải thêm lịch sử thất bại',
produced: 'Đã tạo',
producedOpen: 'Mở trong thanh bên',
disconnected: 'Terminal mất kết nối, đang kết nối lại…',
exited: 'Tiến trình terminal đã thoát',
noSession: 'Chọn một phiên để dùng thanh bên',
pluginNotLoaded: 'Plugin chưa tải, tab tạm không khả dụng:',
hiddenFiles: 'Tệp ẩn',
parent: 'Thư mục cha',
copied: 'Đã sao chép',
copy: 'Sao chép',
newFile: 'Tệp mới',
openEditor: 'Mở trình soạn thảo',
gitDetail: 'Xem chi tiết thay đổi',
referenceFile: '@tệp',
addToConversation: 'Thêm vào cuộc trò chuyện',
copyRelative: 'Sao chép đường dẫn tương đối',
@@ -245,7 +222,6 @@ export const vi: Record<string, string> = {
settingsSchemeCustomDesc: 'Toàn quyền kiểm soát: chèn CSS tùy chỉnh (có thể ghi đè style built-in), và chỉ định khoảng dịch chuyển thanh tiêu đề',
settingsSchemeDetectedSuffix: 'đã phát hiện',
settingsCustomCssTitle: 'CSS tùy chỉnh',
settingsCustomCssDesc: 'Style追加 vào cuối trang (cùng ưu tiên thì viết sau thắng; ghi đè biến inline JS cần !important)',
settingsCustomCssPlaceholder: '/* vd: dành sẵn 36px cho shell tự vẽ thanh tiêu đề */\nhtml[data-dsh-title-bar-height="36"] {\n --dsh-title-bar-strip: 36px !important;\n}',
settingsSaveFailed: 'Lưu thất bại',
settingsConflict: 'Cài đặt đã bị sửa bởi cửa sổ khác, vui lòng thử lại',
@@ -268,7 +244,6 @@ export const vi: Record<string, string> = {
settingsFontFamilyPlaceholder: '"JetBrains Mono", monospace',
settingsFontSizeTitle: 'Cỡ chữ terminal',
settingsFontSizeDesc: 'Cỡ chữ terminal (9–32, mặc định 13)',
settingsFontSizeSuffix: 'px',
settingsShellTitle: 'Đường dẫn shell',
settingsShellDesc: 'Shell khởi động cho terminal UI và mô hình (đường dẫn tuyệt đối hoặc tên thực thi). Để trống sẽ phân tích theo thứ tự: yaml config.shell → $SHELL / login shell / powershell.exe trên Windows. Áp dụng cho terminal mở sau đó',
settingsShellPlaceholder: 'vd: /bin/zsh (để trống = tự động)',
@@ -310,19 +285,14 @@ export const vi: Record<string, string> = {
browserEmbedBlockedDesc: 'Trang này cấm hiển thị trong trang khác qua X-Frame-Options / frame-ancestors, không thể tải trong thanh bên. Mở trực tiếp trong trình duyệt',
browserEmbedAnyway: 'Vẫn tải',
subagent: 'Quản lý tác vụ',
openSubagent: 'Quản lý tác vụ',
subagentMainAgent: 'Tác nhân chính',
subagentEmpty: 'Không có tác nhân con',
subagentEmptyDesc: 'Tác nhân con do tác nhân chính tạo ra sẽ hiển thị ở đây',
subagentRunning: 'Đang chạy',
subagentInactive: 'Nghỉ',
subagentModeOneShot: 'Một lần',
subagentModeContinuable: 'Có thể tiếp tục',
subagentCount: '{count} tác nhân con',
subagentCountRunning: '{count} tác nhân con · {running} đang chạy',
subagentDiagCorrupt: 'Bị hỏng',
subagentDiagUnsupported: 'Không hỗ trợ',
subagentDiagUnavailable: 'Không khả dụng',
subagentThinking: 'Đang suy nghĩ…',
sideChat: 'Chat bên (beta)',
sideChatNew: 'Luồng mới',
@@ -343,10 +313,7 @@ export const vi: Record<string, string> = {
sideChatThink: 'Suy nghĩ',
sideChatInjection: 'Đã tiêm ngữ cảnh',
sideChatSend: 'Gửi',
sideChatCancel: 'Dừng',
sideChatCancelTitle: 'Hủy vòng hiện tại (giữ hàng đợi)',
sideChatClose: 'Đóng luồng',
sideChatCloseTitle: 'Giải phóng agent của luồng (lịch sử được giữ)',
sideChatError: 'Lỗi chat bên: {message}',
sideChatTurnUsage: 'Vào {input} tok · Ra {output} tok',
sideChatBlockCollapse: 'Thu gọn',
@@ -382,7 +349,6 @@ export const vi: Record<string, string> = {
jobDurationMinutes: '{minutes}m {seconds}s',
jobDurationHours: '{hours}h {minutes}m',
jobViewOutput: 'Xem đầu ra',
jobHideOutput: 'Ẩn đầu ra',
jobNoOutput: 'Chưa có đầu ra',
jobNotReadYet: 'Đang chờ mô hình đọc đầu ra tác vụ này (sau khi mô hình chạy job_output, đầu ra sẽ hiển thị ở đây)',
jobOutputTruncated: 'Đầu ra quá dài, đã cắt bớt',
@@ -400,7 +366,6 @@ export const vi: Record<string, string> = {
settingsViewModeGraphDesc: 'Đồ thị nút phân tầng với thu phóng và di chuyển',
settingsViewModeTree: 'Cây',
settingsViewModeTreeDesc: 'Cây thụt lề cổ điển, điều hướng được bằng bàn phím',
tasksWorkflowMember: 'Thành viên quy trình',
tasksFoldCompleted: '✓ {count} hoàn thành',
tasksFoldExpand: 'Mở rộng các nút đã hoàn thành',
tasksFoldCollapse: 'Thu gọn các nút đã hoàn thành',
@@ -421,7 +386,6 @@ export const vi: Record<string, string> = {
tasksStateError: 'Lỗi',
teamBoard: 'Bảng tác vụ nhóm',
teamChip: 'Nhóm {members} thành viên · {tasks} tác vụ',
teamMembers: 'Thành viên',
teamTasksEmpty: 'Chưa có tác vụ dùng chung',
teamTaskCreate: 'Tác vụ mới',
teamTaskSubject: 'Chủ đề',