fix(tasks-ui): postmodern chrome, working clicks, adaptive layout, lean cards
Review feedback from the live 3384 install, fixed at the root: - COLORS: the new stylesheet used var(--dsw-alias-accent) in 17 places — a token the DSH theme does NOT define, so every declaration was dropped (older files only survived because they carry fallbacks); container edges used border-l1 (4% black, invisible). Accent now rides --dsw-alias-state-business-primary, container edges --dsw-alias-border-l4. - CLICKS: the canvas called setPointerCapture on pointerdown, which retargets the derived click to the container and killed every node (and ⓘ) interaction; jsdom cannot see this, a real browser can. Capture is gone and panning only starts from the background. - LAYOUT: fit gave up silently at zero container size and never retried, centered only horizontally, and capped at 100% while a five-child level scaled to 35%. Now: ResizeObserver + first non-zero fit, both axes centered, a 0.78 readability floor, and layoutTasksGraphForWidth picks the flattest sibling arrangement that still meets that floor. - CARDS: title (one line) + mono meta + live line only; display title, team role, full model id and latest text moved into the ⓘ popover. - PANEL: metrics follow the approved 360x660 mockup (132x46 cards, 112 row stride), explicit line-heights, user-select:none, horizontal control cluster with a labelled mode button, always-visible team board strip. - Tokens for two new popover headings across all 20 dictionaries. Tests: 3 new page-interaction specs (click after background pointerdown, node gestures never pan, team board visible without a click) and a rewritten 9-case layout suite (band wrap, row reservation, width solver, reserved live row). Full suite 1400 passed / 133 files.
This commit is contained in:
@@ -420,6 +420,8 @@ export const zh = {
|
||||
tasksZoomOut: '缩小',
|
||||
tasksZoomFit: '适应画布',
|
||||
tasksNodeJump: '查看转录',
|
||||
tasksNodeDetail: '节点详情',
|
||||
workflowRun: '工作流',
|
||||
tasksNodeState: '状态',
|
||||
tasksNodeMode: '模式',
|
||||
tasksNodeModel: '模型',
|
||||
@@ -913,6 +915,8 @@ export const en: Record<keyof typeof zh, string> = {
|
||||
tasksZoomOut: 'Zoom out',
|
||||
tasksZoomFit: 'Fit to canvas',
|
||||
tasksNodeJump: 'Open transcript',
|
||||
tasksNodeDetail: 'Node detail',
|
||||
workflowRun: 'Workflow',
|
||||
tasksNodeState: 'State',
|
||||
tasksNodeMode: 'Mode',
|
||||
tasksNodeModel: 'Model',
|
||||
|
||||
Reference in New Issue
Block a user