Repository navigation
Goals/DGCA/DGA: add native title tooltips on node hover - #622
Conversation
📊 Metrics Regression Report✅ All metrics within tolerance Summary
Detailsai-expense-approval.bpmn.transitrix.yaml
feature-release.bpmn.transitrix.yaml
large-cyclic-workflow.bpmn.transitrix.yaml
order-fulfillment.bpmn.transitrix.yaml
parallel-tracks.bpmn.transitrix.yaml
simple-approval.bpmn.transitrix.yaml
simple-linear.bpmn.transitrix.yaml
small-dense-approval.bpmn.transitrix.yaml
xlarge-stress-test.bpmn.transitrix.yaml
|
…hange When an Action reaches its Goal directly (no real CHANGE covers it), render a pale virtual Change box at that position instead of a direct edge. This prevents goal→activity skip edges from crossing the Change column visually. Changes: - Add VIRTUAL_ENTITY theme token (pale/neutral fill, dashed border) - Synthesize virtual Change nodes in preview-layout.ts with 1:1 mapping to activities: goal→virtualChange→activity edges replace goal→activity direct edges - Mark virtual nodes with a 'virtual' flag and apply 'layer-virtual' CSS class - Update theme CSS to render virtual nodes with the new token - Update preview-layout tests to account for new virtual nodes Virtual nodes use em-dash placeholder labels and are excluded from edge crossing logic by design (the edge now routes through the Change column). This approach replaces the prior skip-edge arcing strategy. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Hovering any node in the Goals tree, DGCA, or DGA preview now shows a native SVG <title> tooltip with the full untruncated name and entity ID, even when the visible label is truncated/ellipsized. For Goals nodes, tooltip also includes the level (e.g. 'Name — ID — level 2'). For Change nodes (DGCA), includes the count of activity_ids (related to badge work in #543). For Action/Activity nodes, includes the type when present. Implementation: - Wrap node SVG (rect + text) in a <g> element - Insert <title> child before the rect - Content: full name + ID + notation-specific metadata - No visual change to the node box itself Covers Goals/DGCA/DGA. DGA uses the same renderer as DGCA via hideChanges option, so both are updated by modifications to render-fgca.ts. All tests passing. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
0e5d876 to
e14252c
Compare
📊 Metrics Regression Report✅ All metrics within tolerance Summary
Detailsai-expense-approval.bpmn.transitrix.yaml
feature-release.bpmn.transitrix.yaml
large-cyclic-workflow.bpmn.transitrix.yaml
order-fulfillment.bpmn.transitrix.yaml
parallel-tracks.bpmn.transitrix.yaml
simple-approval.bpmn.transitrix.yaml
simple-linear.bpmn.transitrix.yaml
small-dense-approval.bpmn.transitrix.yaml
xlarge-stress-test.bpmn.transitrix.yaml
|
Keep native SVG title tooltips on this branch and virtual Change node styling from main. Co-authored-by: Cursor <cursoragent@cursor.com>
📊 Metrics Regression Report✅ All metrics within tolerance Summary
Detailsai-expense-approval.bpmn.transitrix.yaml
feature-release.bpmn.transitrix.yaml
large-cyclic-workflow.bpmn.transitrix.yaml
order-fulfillment.bpmn.transitrix.yaml
parallel-tracks.bpmn.transitrix.yaml
simple-approval.bpmn.transitrix.yaml
simple-linear.bpmn.transitrix.yaml
small-dense-approval.bpmn.transitrix.yaml
xlarge-stress-test.bpmn.transitrix.yaml
|
Summary
Hovering any node in the Goals tree, DGCA, or DGA preview now shows a native SVG
<title>tooltip with the full untruncated name and entity ID, even when thevisible label is truncated/ellipsized.
Implementation
<g>element<title>child before the rect with:{Name} — {ID}plus notation-specific metadata<title>renders nothing until hovered)Tooltip content per notation
Name — ID — level N(includes level)Name — ID — N activities(count of covered activities)Name — ID — {type}(Initiative/Programme/Project/Task when present)Name — IDCovers
Acceptance
✓ Hovering any node shows full name via tooltip
✓ Node ID is included in tooltip
✓ Notation-specific metadata included (level, activity count, type)
✓ No visual change to nodes
✓ All tests passing
Notes
transitrix render#545 (virtual Change nodes): virtual node tooltipwill say "No CHANGE recorded for this Action's path to its Goal"
both notations are covered by this PR
Name — ID — metadatais readable and parseable🤖 Generated with Claude Code