feat: US-004 - Role node redesign with clinical record pill badges

Role nodes now render as rounded rectangle pills (104x32px) with orgColor
badge styling, connector lines to timeline, and SVG drop shadow effects
on hover/pinned states.
This commit is contained in:
2026-02-16 02:37:16 +00:00
parent 832c904376
commit 46cc22500b
3 changed files with 107 additions and 21 deletions
+1 -1
View File
@@ -77,7 +77,7 @@
"Verify in browser — role nodes appear as labelled pill badges along the timeline"
],
"priority": 4,
"passes": false,
"passes": true,
"notes": "This changes role nodes from <circle> to <rect> with rounded corners. The nodeSelection code that filters d.type === 'role' (lines ~354-380) needs to append 'rect' instead of 'circle'. Position with x = -ROLE_WIDTH/2 and y = -ROLE_HEIGHT/2 so they centre on the force simulation position. The focus-ring can also become a rect. The text element stays largely the same but needs its positioning adjusted (no more dy offset needed if dominant-baseline is middle). The collision force for roles should use a radius roughly equal to Math.max(ROLE_WIDTH, ROLE_HEIGHT)/2 + padding. The connector line should go from the timeline X position to the left edge of the pill node. Use the d3-viz skill for implementation."
},
{