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
@@ -79,29 +79,16 @@ export const ar: 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: 'واجهة طرفية',
pinnedTerminalKindAgent: 'طرفية Agent',
pinnedTerminalScopeWorkspace: 'مثبتة في مساحة العمل',
pinnedTerminalScopeGlobal: 'مثبتة عام',
pinnedRailLabel: 'الطرفيات المثبتة',
closePinnedTerminal: 'إغلاق الطرفية',
collapseBottomPanel: 'طي اللوحة السفلية',
expandBottomPanel: 'توسيع اللوحة السفلية',
terminalError: 'فشل اتصال الطرفية',
@@ -133,10 +120,6 @@ export const ar: Record<string, string> = {
loading: 'جارٍ التحميل…',
error: 'فشل التحميل',
retry: 'إعادة المحاولة',
splitLeft: 'تقسيم يساراً',
splitRight: 'تقسيم يميناً',
splitUp: 'تقسيم لأعلى',
splitDown: 'تقسيم لأسفل',
notRepo: 'هذا الدليل ليس مستودع git',
noChanges: 'لا تغييرات',
statusTruncated: 'التغييرات كثيرة جدًا؛ يتم عرض أول 2000 إدخال فقط',
@@ -146,7 +129,6 @@ export const ar: Record<string, string> = {
unstageAll: 'إلغاء إدراج الكل',
commitPlaceholder: 'رسالة التثبيت (Ctrl+Enter)',
commit: 'تثبيت',
commitError: 'فشل التثبيت',
branch: 'الفرع',
worktree: 'شجرة العمل',
checkoutError: 'فشل تبديل الفرع',
@@ -170,7 +152,6 @@ export const ar: Record<string, string> = {
diffDeleted: 'محذوف',
diffRenamed: 'إعادة تسمية',
diffExpand: 'إظهار {count} صفوف أخرى',
diffCollapse: 'طي',
discard: 'تجاهل التغييرات',
discardTitle: 'تجاهل التغييرات',
discardDesc: 'هذا يتجاهل تغييرات مساحة العمل في "{path}" (غير قابل للاستعادة).',
@@ -191,18 +172,14 @@ export const ar: Record<string, string> = {
loadMore: 'تحميل المزيد',
historyLoadError: 'فشل تحميل المزيد من السجل',
produced: 'النواتج',
producedOpen: 'فتح في الشريط الجانبي',
disconnected: 'انقطع اتصال الطرفية، جارٍ إعادة الاتصال…',
exited: 'خرجت عملية الطرفية',
noSession: 'اختر محادثة لاستخدام الشريط الجانبي',
pluginNotLoaded: 'الإضافة غير محمّلة؛ التبويب غير متاح:',
hiddenFiles: 'ملفات مخفية',
parent: 'الدليل الأصل',
copied: 'تم النسخ',
copy: 'نسخ',
newFile: 'ملف جديد',
openEditor: 'فتح المحرّر',
gitDetail: 'عرض تفاصيل التغيير',
referenceFile: '@ملف',
addToConversation: 'إضافة إلى المحادثة',
copyRelative: 'نسخ المسار النسبي',
@@ -246,7 +223,6 @@ export const ar: Record<string, string> = {
settingsSchemeCustomDesc: 'تحكّم كامل: حقن CSS مخصّص (يمكن أن يلغي الأنماط المدمجة) وتحديد مسافة إزاحة الشريط العلوي',
settingsSchemeDetectedSuffix: 'تم الكشف',
settingsCustomCssTitle: 'CSS مخصّص',
settingsCustomCssDesc: 'أنماط تُضاف في نهاية الصفحة (المكتوب لاحقاً يكسر التعادل في نفس الأولوية؛ استخدم !important لتلغي المتغيرات المكتوبة بواسطة JS)',
settingsCustomCssPlaceholder: '/* مثال: حجز 36px لغلاف له شريط علوي مرسوم ذاتياً */\nhtml[data-dsh-title-bar-height="36"] {\n --dsh-title-bar-strip: 36px !important;\n}',
settingsSaveFailed: 'فشل الحفظ',
settingsConflict: 'تغيّر الإعداد في نافذة أخرى — يُرجى إعادة المحاولة',
@@ -269,7 +245,6 @@ export const ar: Record<string, string> = {
settingsFontFamilyPlaceholder: '"JetBrains Mono", monospace',
settingsFontSizeTitle: 'حجم خط الطرفية',
settingsFontSizeDesc: 'حجم خط الطرفية بالبكسل (9–32، افتراضي 13)',
settingsFontSizeSuffix: 'px',
settingsShellTitle: 'مسار الصدفة',
settingsShellDesc: 'الصدفة التي تُطلق لطرفيات الواجهة والنموذج (مسار مطلق أو اسم تنفيذي مجرّد). الفراغ يحافظ على الترتيب القائم: yaml config.shell ← $SHELL / صدفة الدخول / Windows powershell.exe. يسري على الطرفيات المفتوحة لاحقاً',
settingsShellPlaceholder: 'مثل /bin/zsh (فارغ = تلقائي)',
@@ -311,19 +286,14 @@ export const ar: 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: 'خيط جديد',
@@ -344,10 +314,7 @@ export const ar: Record<string, string> = {
sideChatThink: 'التفكير',
sideChatInjection: 'تم حقن السياق',
sideChatSend: 'إرسال',
sideChatCancel: 'إيقاف',
sideChatCancelTitle: 'إلغاء الدور الجاري (يُحتفظ بالعمل في قائمة الانتظار)',
sideChatClose: 'إغلاق الخيط',
sideChatCloseTitle: 'تحرير وكيل الخيط (يُحتفظ بالسجل)',
sideChatError: 'خطأ في المحادثة الجانبية: {message}',
sideChatTurnUsage: 'إدخال {input} توكن · إخراج {output} توكن',
sideChatBlockCollapse: 'طي',
@@ -383,7 +350,6 @@ export const ar: Record<string, string> = {
jobDurationMinutes: '{minutes}د {seconds}ث',
jobDurationHours: '{hours}س {minutes}د',
jobViewOutput: 'عرض الإخراج',
jobHideOutput: 'إخفاء الإخراج',
jobNoOutput: 'لا إخراج بعد',
jobNotReadYet: 'في انتظار قراءة النموذج لإخراج هذه المهمة؛ سيظهر الإخراج هنا بمجرد أن يشغّل النموذج job_output',
jobOutputTruncated: 'الإخراج مقطوع',
@@ -401,7 +367,6 @@ export const ar: Record<string, string> = {
settingsViewModeGraphDesc: 'مخطط عُقد متدرج مع تكبير وتحريك',
settingsViewModeTree: 'شجرة',
settingsViewModeTreeDesc: 'شجرة كلاسيكية بمسافات بادئة، قابلة للتنقل بلوحة المفاتيح',
tasksWorkflowMember: 'عضو سير العمل',
tasksFoldCompleted: '✓ {count} مكتمل',
tasksFoldExpand: 'توسيع العُقد المكتملة',
tasksFoldCollapse: 'طي العُقد المكتملة',
@@ -422,7 +387,6 @@ export const ar: Record<string, string> = {
tasksStateError: 'خطأ',
teamBoard: 'لوحة مهام الفريق',
teamChip: 'فريق {members} أعضاء · {tasks} مهام',
teamMembers: 'الأعضاء',
teamTasksEmpty: 'لا مهام مشتركة بعد',
teamTaskCreate: 'مهمة جديدة',
teamTaskSubject: 'الموضوع',