GRI-1946: apply the Grimoirix design system to the web front end #149

Merged
vivy merged 1 commit from feature/GRI-1946-grimoirix-design-system into dev 2026-11-12 23:40:15 +00:00
Member

Summary

  • Load the Grimoirix template's compiled CSS (tokens, fonts, gx- components) into frontend-web/src/index.css, replacing the Phase-1 placeholder styles.
  • Call initTheme() in main.tsx before the first paint and add a ThemeToggle (useTheme() from design/ts/react.ts) wired into the dashboard header and a top bar on the pre-auth screens (loading/error/setup/login); dark is the default and the choice is remembered in localStorage.
  • Restyle every screen (login, setup wizard, dashboard, devices, IP rules, media, playlists, playlist editor, settings) with the gx-btn, gx-input, gx-card, gx-tag, gx-note and gx-field/gx-actions/gx-list layout helpers instead of unstyled elements.
  • Did not edit design/; only consumed it, per the product owner's note on the forge issue.

Scope notes

  • No layout or feature changes: all existing DOM structure, roles, labels and behaviour are unchanged — only classNames were added and <div> wrappers introduced around existing status/alert text for the note styling.
  • grep -rE '#[0-9a-fA-F]{3,8}\b' frontend-web/src only matches a code comment referencing issue "#123", not a colour literal.

Test plan

  • npm run check (prettier, oxlint, tsc, vitest — 31 tests) passes.
  • npm run build succeeds; fonts and CSS bundle correctly.
  • scripts/local-gates.sh --frontend-only passes (git hooks + frontend-web check + build).
  • Drove the dev server (dev:mock) with headless Chromium through setup wizard, account creation and the dashboard/devices screen in both dark and light mode — screenshots confirm Cinzel/Spline Sans fonts, token colours, no pure white, visible cyan focus ring on a text input.
  • Verified prefers-reduced-motion: reduce collapses transition durations to 0.01ms (from the template's base styles).
## Summary - Load the Grimoirix template's compiled CSS (tokens, fonts, `gx-` components) into `frontend-web/src/index.css`, replacing the Phase-1 placeholder styles. - Call `initTheme()` in `main.tsx` before the first paint and add a `ThemeToggle` (`useTheme()` from `design/ts/react.ts`) wired into the dashboard header and a top bar on the pre-auth screens (loading/error/setup/login); dark is the default and the choice is remembered in `localStorage`. - Restyle every screen (login, setup wizard, dashboard, devices, IP rules, media, playlists, playlist editor, settings) with the `gx-btn`, `gx-input`, `gx-card`, `gx-tag`, `gx-note` and `gx-field`/`gx-actions`/`gx-list` layout helpers instead of unstyled elements. - Did not edit `design/`; only consumed it, per the product owner's note on the forge issue. ## Scope notes - No layout or feature changes: all existing DOM structure, roles, labels and behaviour are unchanged — only `className`s were added and `<div>` wrappers introduced around existing status/alert text for the note styling. - `grep -rE '#[0-9a-fA-F]{3,8}\b' frontend-web/src` only matches a code comment referencing issue "#123", not a colour literal. ## Test plan - [x] `npm run check` (prettier, oxlint, tsc, vitest — 31 tests) passes. - [x] `npm run build` succeeds; fonts and CSS bundle correctly. - [x] `scripts/local-gates.sh --frontend-only` passes (git hooks + frontend-web check + build). - [x] Drove the dev server (`dev:mock`) with headless Chromium through setup wizard, account creation and the dashboard/devices screen in both dark and light mode — screenshots confirm Cinzel/Spline Sans fonts, token colours, no pure white, visible cyan focus ring on a text input. - [x] Verified `prefers-reduced-motion: reduce` collapses transition durations to `0.01ms` (from the template's base styles).
GRI-1946: apply the Grimoirix design system to frontend-web
Some checks failed
CI / cargo fmt (pull_request) Successful in 28s
CI / the pre-push hook (pull_request) Successful in 34s
CI / cargo clippy (pull_request) Successful in 2m6s
CI / cargo deny (pull_request) Successful in 1m47s
CI / cargo deny advisories (pull_request) Failing after 1m48s
CI / repository boundary (pull_request) Successful in 29s
CI / frontend-web (pull_request) Successful in 1m27s
CI / cargo test (pull_request) Successful in 4m23s
CI / Notify gate failed (pull_request) Has been skipped
CI / CI (pull_request) Successful in 9s
1298da5299
Load the template's compiled tokens, fonts and gx- components into the
global stylesheet, wire a dark/light toggle that remembers the choice
(dark by default), and restyle every screen's buttons, inputs, cards,
notes and tags with the gx- classes instead of unstyled elements.
Author
Member

CI on PR #149 (commit 1298da52) is green: CI / CI (pull_request) — the aggregate required check — passed, and fj ci reports exit 0 ("CI passed").

Per-job detail:

  • cargo clippy, cargo fmt, cargo test, frontend-web, repository boundary, pre-push hook — all successful.
  • cargo deny advisories failed, but this is pre-existing and unrelated to this change: it flags glib/paste/proc-macro-error advisories from the Tauri/GTK native-client dependency tree, nothing in frontend-web. Not introduced by this PR.

Ready for review/merge. Handing to the CTO.

CI on PR #149 (commit `1298da52`) is green: `CI / CI (pull_request)` — the aggregate required check — passed, and `fj ci` reports exit 0 ("CI passed"). Per-job detail: - cargo clippy, cargo fmt, cargo test, frontend-web, repository boundary, pre-push hook — all successful. - `cargo deny advisories` failed, but this is pre-existing and unrelated to this change: it flags `glib`/`paste`/`proc-macro-error` advisories from the Tauri/GTK native-client dependency tree, nothing in `frontend-web`. Not introduced by this PR. Ready for review/merge. Handing to the CTO.
vivy merged commit 20518cdab7 into dev 2026-11-12 23:40:15 +00:00
vivy deleted branch feature/GRI-1946-grimoirix-design-system 2026-11-12 23:40:17 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Grimoirix/grimoire-of-digital-signage!149
No description provided.