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
@@ -390,6 +390,64 @@ export const hi: 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: 'पूर्वावलोकन प्लगइन जोड़ें',