Commit a200ac0
fix(dashboard): firing edge keeps enabled style + overlay fades smoothly
Two related polishes:
1. Edge retains its enabled style during firing
buildEdges short-circuited to DEFAULT_EDGE_STYLE whenever
isFiring=true, discarding the cf-accent-tint enabled-input
styling. User saw enabled arcs lose their accent the moment
firing started. Removed the firing branch from the
style/marker/className decision; isEnabledInput drives the base
styling regardless of firing state.
2. Overlay fades in/out instead of snapping
OrthogonalEdgeImpl's overlay path previously only rendered while
firing (mount on firing start, unmount on end), which snapped the
accent color in and out. Overlay is now always mounted with
opacity transitioned via CSS:
- opacity: 0 when not firing.
- opacity: 1 when firing. transition: opacity 200ms ease-out.
- strokeDashoffset still drives the progress-bar fill while
opacity handles the smooth color emergence.
- Added cf-edge-overlay class + data-firing attribute for
selector clarity. pointerEvents: none so the overlay never
intercepts clicks.
Test updated: enabled-input arc retains cf-edge-enabled className
during firing.
172/172 vitest + 177/177 mix + dialyzer 0; lib/coloured_flow
byte-identical.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 67b9a56 commit a200ac0
2 files changed
Lines changed: 16 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | | - | |
157 | | - | |
158 | | - | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
475 | 475 | | |
476 | 476 | | |
477 | 477 | | |
478 | | - | |
479 | 478 | | |
480 | | - | |
| 479 | + | |
481 | 480 | | |
482 | 481 | | |
483 | 482 | | |
484 | 483 | | |
485 | 484 | | |
486 | | - | |
487 | | - | |
488 | | - | |
| 485 | + | |
489 | 486 | | |
490 | 487 | | |
491 | 488 | | |
| |||
588 | 585 | | |
589 | 586 | | |
590 | 587 | | |
| 588 | + | |
591 | 589 | | |
592 | | - | |
593 | | - | |
594 | | - | |
595 | | - | |
596 | | - | |
597 | | - | |
598 | | - | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
599 | 595 | | |
600 | 596 | | |
601 | 597 | | |
602 | 598 | | |
603 | | - | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
604 | 602 | | |
605 | 603 | | |
606 | 604 | | |
607 | 605 | | |
608 | 606 | | |
609 | 607 | | |
610 | 608 | | |
611 | | - | |
| 609 | + | |
612 | 610 | | |
613 | 611 | | |
614 | 612 | | |
| 613 | + | |
615 | 614 | | |
616 | 615 | | |
617 | 616 | | |
| |||
0 commit comments