Skip to content

[Dashboard] Refresh the default look: theme Clear - #296

Merged
LarsLaskowski merged 43 commits into
mainfrom
claude/squad-feature-217-vz9kx1
Nov 28, 2026
Merged

LarsLaskowski merged 43 commits into
mainfrom
claude/squad-feature-217-vz9kx1

Conversation

@LarsLaskowski

@LarsLaskowski LarsLaskowski commented Nov 28, 2026 •

Copy link
Copy Markdown
Owner

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 innerHTML rule 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 under internal/web, docs/areas/dashboard.md (Mode and a new Look section), the decision records 0038–0040 and wording in README.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 in chart_test.go and gauge_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

  • I have added or updated Unit Tests for the change.
  • I have tested my changes.
  • I have run Format and Build from .squad/stack.md, and the Analyzer gate reports no diagnostic in a changed file.
  • The Coverage gate in .squad/stack.md passes (new or changed production code with the branch conditions its report records, line coverage overall).
  • I have updated the project documentation (README.md, ARCHITECTURE.md) and the area document of every changed behavior to reflect my changes.
  • Each decision with lasting weight has its decision record, committed with the change.
  • I have read the CONTRIBUTING documentation and followed the project's code style guidelines.
  • New dependencies, if any, were added the way Dependencies in .squad/stack.md prescribes (none added).
  • The PR carries its release-notes label (CONTRIBUTING); a change that breaks existing users carries breaking-change and says so in the Description.
  • Reviewer Notes name the touched routes, config keys, collectors or packaging files, and a smoke test on a Pi (or what only real hardware can verify).

⏭ Next Steps

@LarsLaskowski LarsLaskowski added the enhancement New feature or request label Nov 28, 2026 — with Claude
@LarsLaskowski
LarsLaskowski marked this pull request as ready for review November 28, 2026 11:59
@sonarqubecloud

Copy link
Copy Markdown

@LarsLaskowski
LarsLaskowski merged commit d05bb19 into main Nov 28, 2026
14 checks passed
@LarsLaskowski
LarsLaskowski deleted the claude/squad-feature-217-vz9kx1 branch November 28, 2026 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Dashboard] Refresh the default look: theme "Clear" (light and dark)

2 participants