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 hi: 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: 'टर्मिनल कनेक्शन विफल',
@@ -132,10 +119,6 @@ export const hi: Record<string, string> = {
loading: 'लोड हो रहा…',
error: 'लोड विफल',
retry: 'पुनः प्रयास',
splitLeft: 'बाएँ स्प्लिट',
splitRight: 'दाएँ स्प्लिट',
splitUp: 'ऊपर स्प्लिट',
splitDown: 'नीचे स्प्लिट',
notRepo: 'यह डायरेक्टरी एक git रिपॉज़िटरी नहीं है',
noChanges: 'कोई बदलाव नहीं',
statusTruncated: 'बहुत अधिक बदलाव; केवल पहली 2000 प्रविष्टियाँ दिखाई जा रही हैं',
@@ -145,7 +128,6 @@ export const hi: Record<string, string> = {
unstageAll: 'सभी अनस्टेज करें',
commitPlaceholder: 'कमिट संदेश (Ctrl+Enter)',
commit: 'कमिट',
commitError: 'कमिट विफल',
branch: 'ब्रांच',
worktree: 'वर्कट्री',
checkoutError: 'ब्रांच स्विच विफल',
@@ -169,7 +151,6 @@ export const hi: Record<string, string> = {
diffDeleted: 'हटाया',
diffRenamed: 'नाम बदला',
diffExpand: '{count} और पंक्तियाँ विस्तृत करें',
diffCollapse: 'संक्षिप्त करें',
discard: 'बदलाव त्यागें',
discardTitle: 'बदलाव त्यागें',
discardDesc: 'यह "{path}" के वर्कट्री बदलाव त्याग देगा (पुनर्प्राप्त नहीं)।',
@@ -190,18 +171,14 @@ export const hi: Record<string, string> = {
loadMore: 'और लोड करें',
historyLoadError: 'और इतिहास लोड विफल',
produced: 'उत्पादित',
producedOpen: 'साइडबार में खोलें',
disconnected: 'टर्मिनल डिस्कनेक्ट हो गया, पुनः कनेक्ट हो रहा…',
exited: 'टर्मिनल प्रक्रिया बाहर निकली',
noSession: 'साइडबार उपयोग करने के लिए एक वार्तालाप चुनें',
pluginNotLoaded: 'प्लगइन लोड नहीं; टैब अनुपलब्ध:',
hiddenFiles: 'छिपी फ़ाइलें',
parent: 'मूल डायरेक्टरी',
copied: 'कॉपी हो गया',
copy: 'कॉपी',
newFile: 'नई फ़ाइल',
openEditor: 'एडिटर खोलें',
gitDetail: 'बदलाव विवरण देखें',
referenceFile: '@फ़ाइल',
addToConversation: 'वार्तालाप में जोड़ें',
copyRelative: 'सापेक्ष पथ कॉपी',
@@ -245,7 +222,6 @@ export const hi: 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: 'सेटिंग दूसरी विंडो में बदली — कृपया पुनः प्रयास करें',
@@ -268,7 +244,6 @@ export const hi: Record<string, string> = {
settingsFontFamilyPlaceholder: '"JetBrains Mono", monospace',
settingsFontSizeTitle: 'टर्मिनल फ़ॉन्ट आकार',
settingsFontSizeDesc: 'टर्मिनल फ़ॉन्ट आकार px में (9–32, डिफ़ॉल्ट 13)',
settingsFontSizeSuffix: 'px',
settingsShellTitle: 'Shell पथ',
settingsShellDesc: 'UI और मॉडल टर्मिनल के लिए शुरू किया गया shell (निरपेक्ष पथ या निष्पादन योग्य नाम)। खाली पुराना क्रम रखता है: yaml config.shell → $SHELL / लॉगिन shell / Windows powershell.exe। बाद में खुले टर्मिनल पर लागू',
settingsShellPlaceholder: 'जैसे /bin/zsh (खाली = ऑटो)',
@@ -310,19 +285,14 @@ export const hi: 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 hi: Record<string, string> = {
sideChatThink: 'विचार',
sideChatInjection: 'संदर्भ इंजेक्ट किया',
sideChatSend: 'भेजें',
sideChatCancel: 'रोकें',
sideChatCancelTitle: 'चल रहे टर्न को रोकें (कतारबद्ध कार्य रखा जाता है)',
sideChatClose: 'थ्रेड बंद करें',
sideChatCloseTitle: 'थ्रेड का एजेंट रिलीज़ करें (इतिहास रखा जाता है)',
sideChatError: 'साइड चैट त्रुटि: {message}',
sideChatTurnUsage: 'इनपुट {input} टोकन · आउटपुट {output} टोकन',
sideChatBlockCollapse: 'सिकोड़ें',
@@ -382,7 +349,6 @@ export const hi: Record<string, string> = {
jobDurationMinutes: '{minutes}मि {seconds}से',
jobDurationHours: '{hours}घं {minutes}मि',
jobViewOutput: 'आउटपुट देखें',
jobHideOutput: 'आउटपुट छिपाएं',
jobNoOutput: 'अभी कोई आउटपुट नहीं',
jobNotReadYet: 'मॉडल का इस कार्य का आउटपुट पढ़ने की प्रतीक्षा; मॉडल job_output चलाने पर आउटपुट यहाँ दिखेगा',
jobOutputTruncated: 'आउटपुट कटा हुआ',
@@ -400,7 +366,6 @@ export const hi: Record<string, string> = {
settingsViewModeGraphDesc: 'स्तरित नोड ग्राफ़, ज़ूम और पैन के साथ',
settingsViewModeTree: 'ट्री',
settingsViewModeTreeDesc: 'क्लासिक इंडेंटेड ट्री, कीबोर्ड से नेविगेट करने योग्य',
tasksWorkflowMember: 'वर्कफ़्लो सदस्य',
tasksFoldCompleted: '✓ {count} पूर्ण',
tasksFoldExpand: 'पूर्ण नोड्स विस्तारित करें',
tasksFoldCollapse: 'पूर्ण नोड्स संकुचित करें',
@@ -421,7 +386,6 @@ export const hi: Record<string, string> = {
tasksStateError: 'त्रुटि',
teamBoard: 'टीम कार्य बोर्ड',
teamChip: 'टीम {members} सदस्य · {tasks} कार्य',
teamMembers: 'सदस्य',
teamTasksEmpty: 'अभी कोई साझा कार्य नहीं',
teamTaskCreate: 'नया कार्य',
teamTaskSubject: 'विषय',