Rebuild the web UI in React and Tailwind #279

Merged
naps62-yolo merged 4 commits from 278-react-tailwind-ui into main 2026-11-11 16:34:48 +00:00
Owner

Requested by naps · project thread

Summary

  • Ports every view in web/ from hand-built document.createElement code to React 19 components. The markup, class names, routes and behaviour are the same as before. The data modules (releases.ts, series.ts, subtitles.ts and the rest) are unchanged.
  • Adds Tailwind v4 with its theme reset to the design tokens, so a utility can only produce a token value. The existing stylesheet is now components.css in a components cascade layer, and utilities sit above it. Preflight is left out.
  • check-tokens now scans .tsx, accepts React style keys as token definitions, and rejects Tailwind arbitrary values unless they name a token.

The bespoke CSS has not been converted to utility classes. That can be done one component at a time.

Issue

Closes #278

Test plan

  • just ci passes.
  • Compared the new UI's DOM against production on live data, at 1280 and 390 wide. Library, queues, settings, search, a movie, a series and a season deck all match. The only differences are the dropped data-glyph, data-check and data-role hooks, which no CSS reads.
  • Ran the same comparison after interactions: search typing, the list toggle, the ⋯ panel with the remove confirmation open, season expand, the subtitle panel, the TMDB add panel, the queue info notes and Esc from each layer.
  • Walked the keyboard flows on the new build: /, ArrowDown into rows, Enter, Esc stepping back one layer, back/forward, the tab bar search and focus return.
  • Nothing that writes was clicked against production.
Bundle size

JS is 349 kB (105 kB gzip), mostly React. CSS is 40 kB.

🤖 Generated with Claude Code

<!-- claude-projects-attribution: {"github_login":"naps62"} --> _Requested by **naps** · [project thread](https://claude.ai/code/project/chan_01UYLqY2bRGpRgeywoBE6jwE?thread=cmsg_01UYLqY2bRGpRgeywoBE6jwE95cFpdceZzfydH266rwm1d)_ ## Summary - Ports every view in `web/` from hand-built `document.createElement` code to React 19 components. The markup, class names, routes and behaviour are the same as before. The data modules (`releases.ts`, `series.ts`, `subtitles.ts` and the rest) are unchanged. - Adds Tailwind v4 with its theme reset to the design tokens, so a utility can only produce a token value. The existing stylesheet is now `components.css` in a `components` cascade layer, and utilities sit above it. Preflight is left out. - `check-tokens` now scans `.tsx`, accepts React `style` keys as token definitions, and rejects Tailwind arbitrary values unless they name a token. The bespoke CSS has not been converted to utility classes. That can be done one component at a time. ## Issue Closes #278 ## Test plan - `just ci` passes. - Compared the new UI's DOM against production on live data, at 1280 and 390 wide. Library, queues, settings, search, a movie, a series and a season deck all match. The only differences are the dropped `data-glyph`, `data-check` and `data-role` hooks, which no CSS reads. - Ran the same comparison after interactions: search typing, the list toggle, the ⋯ panel with the remove confirmation open, season expand, the subtitle panel, the TMDB add panel, the queue info notes and Esc from each layer. - Walked the keyboard flows on the new build: `/`, ArrowDown into rows, Enter, Esc stepping back one layer, back/forward, the tab bar search and focus return. - Nothing that writes was clicked against production. <details><summary>Bundle size</summary> JS is 349 kB (105 kB gzip), mostly React. CSS is 40 kB. </details> 🤖 Generated with [Claude Code](https://claude.com/claude-code)
naps62-yolo added 4 commits 2026-11-11 00:43:40 +00:00
Tailwind's theme is reset to the design tokens and the existing
stylesheet moves under a components cascade layer, so utilities can
only produce token values and still win over component rules.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Same markup, class names and behaviour as the hand-built views; the
data modules are reused unchanged.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Covers React style keys and Tailwind arbitrary values.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
fix(web): settle toggles, retries and stale routes
ci / web (pull_request) Successful in 23s
ci / rust (pull_request) Successful in 1m23s
ci / image (pull_request) Skipped
769a59e15c
Toggles and failed deletes re-enable, an override grab ends a running
sweep watch, the pack retry ignores a second click, a deep-link fetch
yields to a later navigation, and the search tab focuses the box.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
naps62-yolo merged commit 5528ac8aa8 into main 2026-11-11 16:34:48 +00:00
naps62-yolo deleted branch 278-react-tailwind-ui 2026-11-11 16:34:48 +00:00
Sign in to join this conversation.