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
@@ -383,6 +383,64 @@ export const fr: Record<string, string> = {
jobKill: 'Interrompre',
jobKillConfirm: 'Cliquez à nouveau pour confirmer l’interruption',
jobKillError: 'Échec de l’interruption',
tasksViewGraph: 'Diagramme de workflow',
tasksViewTree: 'Arbre',
tasksViewSwitchToGraph: 'Passer au diagramme de workflow',
tasksViewSwitchToTree: 'Passer à l’arbre',
settingsViewModeTitle: 'Vue par défaut de la page Tâches',
settingsViewModeDesc: 'Comment la page Tâches s’affiche à l’ouverture (le bouton dans la page permet toujours de basculer à la volée)',
settingsViewModeGraph: 'Diagramme de workflow',
settingsViewModeGraphDesc: 'Graphe de nœuds en couches, avec zoom et panoramique',
settingsViewModeTree: 'Arbre',
settingsViewModeTreeDesc: 'Arbre à indentation classique, navigable au clavier',
tasksWorkflowMember: 'Membre du workflow',
tasksFoldCompleted: '✓ {count} terminés',
tasksFoldExpand: 'Déplier les nœuds terminés',
tasksFoldCollapse: 'Replier les nœuds terminés',
tasksZoomIn: 'Zoom avant',
tasksZoomOut: 'Zoom arrière',
tasksZoomFit: 'Ajuster au canevas',
tasksNodeJump: 'Ouvrir la transcription',
tasksNodeState: 'État',
tasksNodeMode: 'Mode',
tasksNodeModel: 'Modèle',
tasksNodeTeamRole: 'Rôle dans l’équipe',
tasksNodeActivity: 'Dernière activité',
tasksStateRunning: 'En cours',
tasksStateIdle: 'Inactif',
tasksStateDone: 'Terminé',
tasksStateError: 'Erreur',
teamBoard: 'Tableau des tâches d’équipe',
teamChip: 'Équipe {members} membres · {tasks} tâches',
teamMembers: 'Membres',
teamTasksEmpty: 'Aucune tâche partagée pour l’instant',
teamTaskCreate: 'Nouvelle tâche',
teamTaskSubject: 'Sujet',
teamTaskDescription: 'Description',
teamTaskOwner: 'Responsable',
teamTaskUnowned: 'Non réclamée',
teamTaskPending: 'À faire',
teamTaskInProgress: 'En cours',
teamTaskCompleted: 'Terminée',
teamTaskBlocked: 'Bloquée',
teamTaskComplete: 'Terminer',
teamTaskReopen: 'Rouvrir',
teamTaskDelete: 'Supprimer',
teamTaskDeleteConfirm: 'Confirmer la suppression',
teamTaskEdit: 'Modifier',
teamTaskSave: 'Enregistrer',
teamTaskCancel: 'Annuler',
teamTaskConflict: 'La tâche a été modifiée ailleurs ; actualisée',
teamTaskError: 'Échec de l’opération : {message}',
teamTaskDeleted: 'Supprimée',
workflowRunning: 'En cours',
workflowCompleted: 'Terminé',
workflowCancelled: 'Annulé',
workflowFailed: 'Échoué',
workflowPhaseUnnamed: 'Phase sans nom',
workflowMembers: '{done}/{total} membres',
jobsAutoCollapsed: 'Replié automatiquement (nombreux agents)',
catalogLoadFailed: '{count} branches n’ont pas pu être chargées',
addPluginsTabCard: 'Ajouter un plugin d’onglet',
addPluginsTabCardDesc: 'Enregistrer une nouvelle page de la barre latérale',
addPluginsViewerCard: 'Ajouter un plugin d’aperçu',