Skip to content

fix: readable FibreLink loss-budget gauge (v0.3.3)#21

Merged
iamjohnnymac merged 1 commit into
mainfrom
fix/loss-budget-gauge-readability
May 19, 2026
Merged

fix: readable FibreLink loss-budget gauge (v0.3.3)#21
iamjohnnymac merged 1 commit into
mainfrom
fix/loss-budget-gauge-readability

Conversation

@iamjohnnymac

Copy link
Copy Markdown
Owner

Gauge text was unreadable on dark theme (font-size 5.5 viewBox units, near-black fill). Moved numeric readout + percent badge out of the SVG; SVG is now a clean visual bar. One-file template change. Found during the live-verify on CT 109.

Prior gauge inlined the numeric readout INSIDE the SVG at font-size
5.5 viewBox units with a near-black fill (#1a1a1a). On NetBox's dark
theme the text was essentially invisible.

Fixed: numbers move out of the SVG into bold HTML text + a coloured
Bootstrap badge for the percent (text-bg-success/warning/danger
matching the band). SVG is now a pure visual bar — full container
width, 18px tall, no embedded text. Short legend underneath.

Long-standing UX bug spotted during the v0.3.x Chrome walkthrough.
@iamjohnnymac iamjohnnymac merged commit d26f1b3 into main May 19, 2026
2 checks passed
@iamjohnnymac iamjohnnymac deleted the fix/loss-budget-gauge-readability branch May 19, 2026 00:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant