Repository navigation
[Dashboard] Refresh the default look: theme Clear - #296
Merged
Merged
Conversation
LarsLaskowski
marked this pull request as ready for review
November 28, 2026 11:59
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Pull Request
📖 Description
The dashboard gets its refined default look, "Clear", in a light and a dark palette: the same ten cards, header, banner, dialogs and data, but every emoji is now an inline stroke SVG, all colours are palette tokens with separate ink (text) and fill variants for the status colours, the per-card colour sits only on a 28 px icon chip, and header, card, bar, sparkline and gauge styling follow the issue. The light/dark switch is now called "mode" in code and docs; "theme" names the visual design. No API, configuration or Go code changes, and CSP, the
innerHTMLrule and mode behaviour are unchanged. The openHAB card, which the issue's tables omit, gets a house icon and the chip colours#0369a1/#38bdf8, and the light tint of the updates button is 8 % so its label reaches 4.5:1.🎫 Issues
Closes #217
Decision records: docs/decisions/0038-dashboard-mode-and-theme-as-token-overrides.md, docs/decisions/0039-card-colour-only-on-icon-chip.md, docs/decisions/0040-dashboard-icons-inline-svg.md
💬 Reviewer Notes
Touched:
internal/web/assets/(style.css,index.html,app.js,chart.js,gauge.js), tests underinternal/web,docs/areas/dashboard.md(Mode and a new Look section), the decision records 0038–0040 and wording inREADME.md,docs/ARCHITECTURE.md,docs/areas/README.md,docs/UNIT_TESTS.md. No route, config key, collector or packaging file changes. Smoke test: open the dashboard in light and dark mode at phone width (320 px) and desktop; check that the mode button swaps moon and sun and redraws charts and gauges. A real Pi was not available: temperature and live hardware data were not seen in the browser check. The README screenshot is tracked in #295.📑 Test Plan
New static-asset tests under
internal/web:palette_test.go(tokens, colour literals, status ink rules, chips, contrast),icons_test.go(emoji scan, inline SVG, chevrons, mode icon, network names),look_test.go(touch targets, bar label split, no inline style or other origin), plus sparkline and gauge tests inchart_test.goandgauge_test.go. A manual check in headless Chrome at 320, 900 and 1400 px in both modes confirmed the sparkline fade, the gauge value inside the arc, the mode switch and no CSP violations. The full suite passes with-race; the coverage and analyzer gates pass.✅ Checklist
.squad/stack.md, and the Analyzer gate reports no diagnostic in a changed file..squad/stack.mdpasses (new or changed production code with the branch conditions its report records, line coverage overall).README.md,ARCHITECTURE.md) and the area document of every changed behavior to reflect my changes..squad/stack.mdprescribes (none added).breaking-changeand says so in the Description.⏭ Next Steps