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 th: Record<string, string> = {
openWithSettingsRemove: 'ลบ',
openWithSettingsInvalidHint: 'ตัวแก้ไขที่ไม่มีชื่อหรือเทมเพลตที่ไม่มี {path} / scheme:// จะไม่ปรากฏในเมนู',
newTab: 'Tab ใหม่',
openExplorer: 'ตัวสำรวจ',
brokenSymlink: 'Symlink เสีย',
openGit: 'พาเนล Git',
newTerminal: 'เทอร์มินัลใหม่',
terminalLimit: 'ถึงขีดจำกัดเทอร์มินัลแล้ว (3)',
close: 'ปิด',
closeOtherTabs: 'ปิด Tab อื่น',
closeLeftTabs: 'ปิด Tab ด้านซ้าย',
closeRightTabs: 'ปิด Tab ด้านขวา',
floatDropHint: 'ปล่อยเพื่อเปิดในหน้าต่างอิสระ',
dockToSidebar: 'กลับไปที่แถบข้าง',
pinTerminal: 'ปักหมุดเทอร์มินัล',
pinAgentTerminal: 'ปักหมุดเทอร์มินัล Agent',
pinToWorkspace: 'ปักหมุดไปยังพื้นที่ทำงาน',
pinToGlobal: 'ปักหมุดแบบ Global',
unpinTerminal: 'ยกเลิกการปักหมุด',
pinnedTerminalTooltip: '{kind} · {scope} · {cwd}',
pinnedTerminalKindUi: 'เทอร์มินัล UI',
pinnedTerminalKindAgent: 'เทอร์มินัล Agent',
pinnedTerminalScopeWorkspace: 'ปักหมุดไปยังพื้นที่ทำงาน',
pinnedTerminalScopeGlobal: 'ปักหมุดแบบ Global',
pinnedRailLabel: 'เทอร์มินัลที่ปักหมุด',
closePinnedTerminal: 'ปิดเทอร์มินัล',
collapseBottomPanel: 'ย่อพาเนลด้านล่าง',
expandBottomPanel: 'ขยายพาเนลด้านล่าง',
terminalError: 'การเชื่อมต่อเทอร์มินัลล้มเหลว',
@@ -132,10 +119,6 @@ export const th: Record<string, string> = {
loading: 'กำลังโหลด…',
error: 'โหลดล้มเหลว',
retry: 'ลองอีกครั้ง',
splitLeft: 'แยกซ้าย',
splitRight: 'แยกขวา',
splitUp: 'แยกขึ้น',
splitDown: 'แยกลง',
notRepo: 'ไดเรกทอรีนี้ไม่ใช่ git repository',
noChanges: 'ไม่มีการเปลี่ยนแปลง',
statusTruncated: 'การเปลี่ยนแปลงมากเกินไป แสดงเพียง 2000 รายการแรก',
@@ -145,7 +128,6 @@ export const th: Record<string, string> = {
unstageAll: 'Unstage ทั้งหมด',
commitPlaceholder: 'ข้อความ commit (Ctrl+Enter)',
commit: 'Commit',
commitError: 'Commit ล้มเหลว',
branch: 'Branch',
worktree: 'เวิร์กทรี',
checkoutError: 'สลับ branch ล้มเหลว',
@@ -169,7 +151,6 @@ export const th: Record<string, string> = {
diffDeleted: 'ลบ',
diffRenamed: 'เปลี่ยนชื่อ',
diffExpand: 'ขยายอีก {count} บรรทัด',
diffCollapse: 'ย่อ',
discard: 'ยกเลิกการเปลี่ยนแปลง',
discardTitle: 'ยกเลิกการเปลี่ยนแปลง',
discardDesc: 'จะยกเลิกการเปลี่ยนแปลง worktree ของ "{path}" (ไม่สามารถกู้คืนได้)',
@@ -190,18 +171,14 @@ export const th: Record<string, string> = {
loadMore: 'โหลดเพิ่มเติม',
historyLoadError: 'โหลดประวัติเพิ่มเติมล้มเหลว',
produced: 'ผลลัพธ์ที่สร้าง',
producedOpen: 'เปิดในแถบด้านข้าง',
disconnected: 'เทอร์มินัลถูกตัดการเชื่อมต่อ กำลังเชื่อมต่อใหม่…',
exited: 'กระบวนการเทอร์มินัลออกแล้ว',
noSession: 'เลือกแชทเพื่อใช้แถบด้านข้าง',
pluginNotLoaded: 'ปลั๊กอินไม่ได้โหลด; tab ไม่พร้อมใช้งาน:',
hiddenFiles: 'ไฟล์ที่ซ่อนอยู่',
parent: 'ไดเรกทอรีหลัก',
copied: 'คัดลอกแล้ว',
copy: 'คัดลอก',
newFile: 'ไฟล์ใหม่',
openEditor: 'เปิดตัวแก้ไข',
gitDetail: 'ดูรายละเอียดการเปลี่ยนแปลง',
referenceFile: '@ไฟล์',
addToConversation: 'เพิ่มไปยังแชท',
copyRelative: 'คัดลอกพาธสัมพัทธ์',
@@ -245,7 +222,6 @@ export const th: Record<string, string> = {
settingsSchemeCustomDesc: 'ควบคุมเต็ม: ฉีด CSS ที่กำหนดเอง (สามารถแทนที่สไตล์ built-in) และตั้งระยะการเลื่อนไตเติลบาร์',
settingsSchemeDetectedSuffix: 'ตรวจพบแล้ว',
settingsCustomCssTitle: 'CSS ที่กำหนดเอง',
settingsCustomCssDesc: 'สไตล์ที่เพิ่มต่อท้ายหน้า (ที่มาทีหลังใน cascade ชนะ; ใช้ !important เพื่อแทนที่ตัวแปร inline ที่เขียนโดย JS)',
settingsCustomCssPlaceholder: '/* เช่น สำรอง 36px สำหรับเชลล์ที่มีไตเติลบาร์ที่วาดเอง */\nhtml[data-dsh-title-bar-height="36"] {\n --dsh-title-bar-strip: 36px !important;\n}',
settingsSaveFailed: 'บันทึกล้มเหลว',
settingsConflict: 'การตั้งค่าถูกเปลี่ยนในหน้าต่างอื่น — โปรดลองอีกครั้ง',
@@ -268,7 +244,6 @@ export const th: Record<string, string> = {
settingsFontFamilyPlaceholder: '"JetBrains Mono", monospace',
settingsFontSizeTitle: 'ขนาดฟอนต์เทอร์มินัล',
settingsFontSizeDesc: 'ขนาดฟอนต์เทอร์มินัลเป็น px (9–32, ค่าเริ่มต้น 13)',
settingsFontSizeSuffix: 'px',
settingsShellTitle: 'พาธ Shell',
settingsShellDesc: 'Shell ที่เรียกสำหรับเทอร์มินัล UI และโมเดล (พาธ absolute หรือ executable ลำพัง) ว่างจะคงลำดับเดิม: yaml config.shell → $SHELL / login shell / Windows powershell.exe มีผลกับเทอร์มินัลที่เปิดภายหลัง',
settingsShellPlaceholder: 'เช่น /bin/zsh (ว่าง = อัตโนมัติ)',
@@ -310,19 +285,14 @@ export const th: 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: 'แชทด้านข้าง (เบต้า)',
sideChatNew: 'เธรดใหม่',
@@ -343,10 +313,7 @@ export const th: Record<string, string> = {
sideChatThink: 'กำลังคิด',
sideChatInjection: 'แทรกบริบทแล้ว',
sideChatSend: 'ส่ง',
sideChatCancel: 'หยุด',
sideChatCancelTitle: 'ยกเลิกการทำงานรอบปัจจุบัน (งานในคิวยังคงอยู่)',
sideChatClose: 'ปิดเธรด',
sideChatCloseTitle: 'ปล่อยตัวแทนของเธรด (ประวัติยังคงอยู่)',
sideChatError: 'ข้อผิดพลาดแชทด้านข้าง: {message}',
sideChatTurnUsage: 'อินพุต {input} tok · เอาต์พุต {output} tok',
sideChatBlockCollapse: 'ย่อ',
@@ -382,7 +349,6 @@ export const th: Record<string, string> = {
jobDurationMinutes: '{minutes} นาที {seconds} วิ',
jobDurationHours: '{hours} ชม. {minutes} นาที',
jobViewOutput: 'ดูเอาต์พุต',
jobHideOutput: 'ซ่อนเอาต์พุต',
jobNoOutput: 'ยังไม่มีเอาต์พุต',
jobNotReadYet: 'รอให้โมเดลอ่านงานนี้; เอาต์พุตจะปรากฏที่นี่เมื่อโมเดลเรียก job_output',
jobOutputTruncated: 'เอาต์พุตถูกตัดทิ้ง',
@@ -400,7 +366,6 @@ export const th: Record<string, string> = {
settingsViewModeGraphDesc: 'กราฟโหนดแบบชั้น ซูมและเลื่อนได้',
settingsViewModeTree: 'มุมมองต้นไม้',
settingsViewModeTreeDesc: 'ต้นไม้แบบเยื้องคลาสสิก นำทางด้วยคีย์บอร์ดได้',
tasksWorkflowMember: 'สมาชิกเวิร์กโฟลว์',
tasksFoldCompleted: '✓ เสร็จแล้ว {count}',
tasksFoldExpand: 'ขยายโหนดที่เสร็จแล้ว',
tasksFoldCollapse: 'ย่อโหนดที่เสร็จแล้ว',
@@ -421,7 +386,6 @@ export const th: Record<string, string> = {
tasksStateError: 'ข้อผิดพลาด',
teamBoard: 'บอร์ดงานของทีม',
teamChip: 'ทีม {members} สมาชิก · {tasks} งาน',
teamMembers: 'สมาชิก',
teamTasksEmpty: 'ยังไม่มีงานที่แชร์',
teamTaskCreate: 'งานใหม่',
teamTaskSubject: 'หัวข้อ',