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 th: Record<string, string> = {
jobKill: 'Kill',
jobKillConfirm: 'คลิกอีกครั้งเพื่อยืนยันการ kill',
jobKillError: 'Kill ล้มเหลว',
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: 'เพิ่มปลั๊กอิน tab',
addPluginsTabCardDesc: 'ลงทะเบียนหน้าแถบด้านข้างใหม่',
addPluginsViewerCard: 'เพิ่มปลั๊กอินพรีวิว',