feat(client): workflow-graph Tasks page with teams board and jobs drawer

The Subagent page becomes the Tasks page per the approved Variant-D design:

- tasks-model.ts feeds BOTH modes from one pre-order node list: graph
  canvas (TasksGraph: layered nodes over bezier edges, drag-pan,
  wheel-zoom-to-cursor, phase frames, bottom-right control cluster) and
  the classic tree (TasksTree: keyboard navigable) — the view toggle and
  fold toggle stay reachable in both modes.
- Workflow runs (workflows.list) hang under their origin agent; member
  agents re-parent under the run node, missing ones synthesize from run
  data; completed leaf agents fold into per-parent aggregate nodes
  (click or cluster toggle to expand/re-collapse).
- Agent Teams (experimental): roster enriches nodes; a header chip opens
  the shared task board popover with basic CAS operations (complete /
  reopen / delete / reassign / create / edit); no experimental layer →
  the whole block hides (structural degradation).
- Background jobs move into a bottom drawer that auto-collapses at 8+
  agents (manual toggle wins); job output opens as an anchored popover
  (event replay, never the model's cursor); two-click kill preserved.
- Live activity lines render as glyph + tool + args (tool-icons map onto
  host primitive icons).
- Node click jumps to the transcript; ⓘ opens the detail popover;
  popovers follow the selection-popup dismissal contract (Escape /
  outside click / anchor off-screen via IntersectionObserver).
- tasksViewMode pref (graph default) with a select row in settings;
  58 new copy keys across zh/en/ja + 18 third-language dictionaries;
  dead CSS from the old tree/dock pruned.
- Tests: 6 new page-interaction specs (auto-collapse, both-mode toggle,
  jump, fold, popover); jobs-view suite re-pointed at the popover;
  prefs/builtins/smoke lock tests updated for the new pref.
This commit is contained in:
Menghuan1918 committed 2026-09-27 22:18:14 +08:00
1 parent fdc4520080
commit 6448d8bad9
38 files changed
+4190 -1387

No files matched your search

+58
View File
@@ -391,6 +391,64 @@ export const ar: Record<string, string> = {
jobKill: 'إنهاء',
jobKillConfirm: 'انقر مجدداً للتأكيد على الإنهاء',
jobKillError: 'فشل الإنهاء',
tasksViewGraph: 'مخطط سير العمل',
tasksViewTree: 'شجرة',
tasksViewSwitchToGraph: 'التبديل إلى مخطط سير العمل',
tasksViewSwitchToTree: 'التبديل إلى الشجرة',
settingsViewModeTitle: 'العرض الافتراضي لصفحة المهام',
settingsViewModeDesc: 'كيف تُعرض صفحة المهام عند الفتح (زر التبديل داخل الصفحة يظل يبدّلها مؤقتًا)',
settingsViewModeGraph: 'مخطط سير العمل',
settingsViewModeGraphDesc: 'مخطط عُقد متدرج مع تكبير وتحريك',
settingsViewModeTree: 'شجرة',
settingsViewModeTreeDesc: 'شجرة كلاسيكية بمسافات بادئة، قابلة للتنقل بلوحة المفاتيح',
tasksWorkflowMember: 'عضو سير العمل',
tasksFoldCompleted: '✓ {count} مكتمل',
tasksFoldExpand: 'توسيع العُقد المكتملة',
tasksFoldCollapse: 'طي العُقد المكتملة',
tasksZoomIn: 'تكبير',
tasksZoomOut: 'تصغير',
tasksZoomFit: 'ملاءمة اللوحة',
tasksNodeJump: 'فتح النسخة',
tasksNodeState: 'الحالة',
tasksNodeMode: 'الوضع',
tasksNodeModel: 'الطراز',
tasksNodeTeamRole: 'دور الفريق',
tasksNodeActivity: 'آخر نشاط',
tasksStateRunning: 'قيد التشغيل',
tasksStateIdle: 'خامل',
tasksStateDone: 'مكتمل',
tasksStateError: 'خطأ',
teamBoard: 'لوحة مهام الفريق',
teamChip: 'فريق {members} أعضاء · {tasks} مهام',
teamMembers: 'الأعضاء',
teamTasksEmpty: 'لا مهام مشتركة بعد',
teamTaskCreate: 'مهمة جديدة',
teamTaskSubject: 'الموضوع',
teamTaskDescription: 'الوصف',
teamTaskOwner: 'المسؤول',
teamTaskUnowned: 'غير مُسندة',
teamTaskPending: 'معلّقة',
teamTaskInProgress: 'قيد التنفيذ',
teamTaskCompleted: 'مكتملة',
teamTaskBlocked: 'محجوبة',
teamTaskComplete: 'إكمال',
teamTaskReopen: 'إعادة فتح',
teamTaskDelete: 'حذف',
teamTaskDeleteConfirm: 'تأكيد الحذف',
teamTaskEdit: 'تحرير',
teamTaskSave: 'حفظ',
teamTaskCancel: 'إلغاء',
teamTaskConflict: 'تم تعديل المهمة من جهة أخرى، تم التحديث',
teamTaskError: 'فشلت العملية: {message}',
teamTaskDeleted: 'محذوفة',
workflowRunning: 'قيد التشغيل',
workflowCompleted: 'مكتمل',
workflowCancelled: 'أُلغي',
workflowFailed: 'فشل',
workflowPhaseUnnamed: 'مرحلة بدون اسم',
workflowMembers: '{done}/{total} أعضاء',
jobsAutoCollapsed: 'تم الطي تلقائيًا (وكلاء كثيرون)',
catalogLoadFailed: 'فشل تحميل {count} من الفروع',
addPluginsTabCard: 'إضافة إضافات تبويب',
addPluginsTabCardDesc: 'تسجيل صفحة شريط جانبي جديدة',
addPluginsViewerCard: 'إضافة إضافات معاينة',