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
2026-09-27 22:18:14 +08:00
parent fdc4520080
commit 6448d8bad9
38 changed files with 4190 additions and 1387 deletions
+58
View File
@@ -381,6 +381,64 @@ export const it: Record<string, string> = {
jobKill: 'Termina',
jobKillConfirm: 'Faccia di nuovo clic per confermare la terminazione',
jobKillError: 'Terminazione non riuscita',
tasksViewGraph: 'Grafo del workflow',
tasksViewTree: 'Albero',
tasksViewSwitchToGraph: 'Passa al grafo del workflow',
tasksViewSwitchToTree: 'Passa all’albero',
settingsViewModeTitle: 'Vista predefinita della pagina Attività',
settingsViewModeDesc: 'Come si apre la pagina Attività (l’interruttore in pagina permette comunque di cambiare al volo)',
settingsViewModeGraph: 'Grafo del workflow',
settingsViewModeGraphDesc: 'Grafo di nodi a livelli, con zoom e pan',
settingsViewModeTree: 'Albero',
settingsViewModeTreeDesc: 'Albero a rientri classico, navigabile da tastiera',
tasksWorkflowMember: 'Membro del workflow',
tasksFoldCompleted: '✓ {count} completati',
tasksFoldExpand: 'Espandi i nodi completati',
tasksFoldCollapse: 'Comprimi i nodi completati',
tasksZoomIn: 'Ingrandisci',
tasksZoomOut: 'Riduci',
tasksZoomFit: 'Adatta all’area di disegno',
tasksNodeJump: 'Apri trascrizione',
tasksNodeState: 'Stato',
tasksNodeMode: 'Modalità',
tasksNodeModel: 'Modello',
tasksNodeTeamRole: 'Ruolo nel team',
tasksNodeActivity: 'Ultima attività',
tasksStateRunning: 'In esecuzione',
tasksStateIdle: 'In attesa',
tasksStateDone: 'Completato',
tasksStateError: 'Errore',
teamBoard: 'Bacheca delle attività del team',
teamChip: 'Team {members} membri · {tasks} attività',
teamMembers: 'Membri',
teamTasksEmpty: 'Ancora nessuna attività condivisa',
teamTaskCreate: 'Nuova attività',
teamTaskSubject: 'Titolo',
teamTaskDescription: 'Descrizione',
teamTaskOwner: 'Responsabile',
teamTaskUnowned: 'Non assegnata',
teamTaskPending: 'Da fare',
teamTaskInProgress: 'In corso',
teamTaskCompleted: 'Completata',
teamTaskBlocked: 'Bloccata',
teamTaskComplete: 'Completa',
teamTaskReopen: 'Riapri',
teamTaskDelete: 'Elimina',
teamTaskDeleteConfirm: 'Conferma eliminazione',
teamTaskEdit: 'Modifica',
teamTaskSave: 'Salva',
teamTaskCancel: 'Annulla',
teamTaskConflict: 'L’attività è stata modificata da altri; aggiornata',
teamTaskError: 'Operazione non riuscita: {message}',
teamTaskDeleted: 'Eliminata',
workflowRunning: 'In corso',
workflowCompleted: 'Completato',
workflowCancelled: 'Annullato',
workflowFailed: 'Non riuscito',
workflowPhaseUnnamed: 'Fase senza nome',
workflowMembers: '{done}/{total} membri',
jobsAutoCollapsed: 'Compresso automaticamente (molti agenti)',
catalogLoadFailed: 'Impossibile caricare {count} branch',
addPluginsTabCard: 'Aggiungi plugin scheda',
addPluginsTabCardDesc: 'Registri una nuova pagina della barra laterale',
addPluginsViewerCard: 'Aggiungi plugin di anteprima',