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:
1 parent
fdc4520080
commit
6448d8bad9
38 files changed
+4190
-1387
No files matched your search
@@ -390,6 +390,64 @@ export const vi: Record<string, string> = {
|
||||
jobKill: 'Hủy',
|
||||
jobKillConfirm: 'Nhấp lại để xác nhận hủy',
|
||||
jobKillError: 'Hủy thất bại',
|
||||
tasksViewGraph: 'Đồ thị quy trình',
|
||||
tasksViewTree: 'Cây',
|
||||
tasksViewSwitchToGraph: 'Chuyển sang đồ thị quy trình',
|
||||
tasksViewSwitchToTree: 'Chuyển sang chế độ cây',
|
||||
settingsViewModeTitle: 'Chế độ xem mặc định của trang tác vụ',
|
||||
settingsViewModeDesc: 'Cách trang tác vụ hiển thị khi mở (nút chuyển trên trang vẫn đổi tùy lúc)',
|
||||
settingsViewModeGraph: 'Đồ thị quy trình',
|
||||
settingsViewModeGraphDesc: 'Đồ thị nút phân tầng với thu phóng và di chuyển',
|
||||
settingsViewModeTree: 'Cây',
|
||||
settingsViewModeTreeDesc: 'Cây thụt lề cổ điển, điều hướng được bằng bàn phím',
|
||||
tasksWorkflowMember: 'Thành viên quy trình',
|
||||
tasksFoldCompleted: '✓ {count} hoàn thành',
|
||||
tasksFoldExpand: 'Mở rộng các nút đã hoàn thành',
|
||||
tasksFoldCollapse: 'Thu gọn các nút đã hoàn thành',
|
||||
tasksZoomIn: 'Phóng to',
|
||||
tasksZoomOut: 'Thu nhỏ',
|
||||
tasksZoomFit: 'Vừa khung vẽ',
|
||||
tasksNodeJump: 'Mở bản ghi hội thoại',
|
||||
tasksNodeState: 'Trạng thái',
|
||||
tasksNodeMode: 'Chế độ',
|
||||
tasksNodeModel: 'Mô hình',
|
||||
tasksNodeTeamRole: 'Vai trò trong nhóm',
|
||||
tasksNodeActivity: 'Hoạt động gần đây',
|
||||
tasksStateRunning: 'Đang chạy',
|
||||
tasksStateIdle: 'Nhàn rỗi',
|
||||
tasksStateDone: 'Hoàn thành',
|
||||
tasksStateError: 'Lỗi',
|
||||
teamBoard: 'Bảng tác vụ nhóm',
|
||||
teamChip: 'Nhóm {members} thành viên · {tasks} tác vụ',
|
||||
teamMembers: 'Thành viên',
|
||||
teamTasksEmpty: 'Chưa có tác vụ dùng chung',
|
||||
teamTaskCreate: 'Tác vụ mới',
|
||||
teamTaskSubject: 'Chủ đề',
|
||||
teamTaskDescription: 'Mô tả',
|
||||
teamTaskOwner: 'Người phụ trách',
|
||||
teamTaskUnowned: 'Chưa nhận',
|
||||
teamTaskPending: 'Chờ xử lý',
|
||||
teamTaskInProgress: 'Đang tiến hành',
|
||||
teamTaskCompleted: 'Hoàn thành',
|
||||
teamTaskBlocked: 'Bị chặn',
|
||||
teamTaskComplete: 'Hoàn tất',
|
||||
teamTaskReopen: 'Mở lại',
|
||||
teamTaskDelete: 'Xóa',
|
||||
teamTaskDeleteConfirm: 'Xác nhận xóa',
|
||||
teamTaskEdit: 'Sửa',
|
||||
teamTaskSave: 'Lưu',
|
||||
teamTaskCancel: 'Hủy',
|
||||
teamTaskConflict: 'Tác vụ đã bị người khác thay đổi, đã làm mới',
|
||||
teamTaskError: 'Thao tác thất bại: {message}',
|
||||
teamTaskDeleted: 'Đã xóa',
|
||||
workflowRunning: 'Đang chạy',
|
||||
workflowCompleted: 'Hoàn thành',
|
||||
workflowCancelled: 'Đã hủy',
|
||||
workflowFailed: 'Thất bại',
|
||||
workflowPhaseUnnamed: 'Giai đoạn chưa đặt tên',
|
||||
workflowMembers: '{done}/{total} thành viên',
|
||||
jobsAutoCollapsed: 'Tự động thu gọn (nhiều agent)',
|
||||
catalogLoadFailed: '{count} nhánh không tải được',
|
||||
addPluginsTabCard: 'Thêm plugin tab',
|
||||
addPluginsTabCardDesc: 'Đăng ký trang thanh bên mới',
|
||||
addPluginsViewerCard: 'Thêm plugin xem trước',
|
||||
|
||||
Reference in new issue
Block a user