Skip to content

Redesign UI: lively minimalist, light-default theme, IMDb/RT discover filters - #1

Merged
sudoquasar merged 4 commits into
mainfrom
feature/lively-minimalist-redesign
Sep 28, 2026
Merged

sudoquasar merged 4 commits into
mainfrom
feature/lively-minimalist-redesign

Conversation

@sudoquasar

Copy link
Copy Markdown
Owner

Summary

A two-round UI redesign plus a follow-up feature, all built on top of Phase 1's static catalogue:

Round 1 — lively minimalist redesign

  • Full interactivity restored (hover lifts, score-tier glows, count-up scores, staggered entrances) after Phase 1's deliberately quiet, single-accent chrome
  • Curated 5-accent colour family (marigold, verdigris, coral, violet, azure), each with exactly one job — score tiers, genre chips, saved states, badges
  • Poster corners stay sharp (2px) while interactive chrome (buttons, dialogs, chips) moved to softer radii, so content and touch targets read as two different materials

Round 2 — light-default theme, decluttered home page

  • Light is now the default theme; the original dark palette is preserved behind a header toggle rather than replaced. Both themes independently clear the 4.5:1 WCAG contrast floor — light isn't a filtered/lightened version of dark, it's a second palette held to the same bar
  • Theme persists to localStorage and applies before first paint via an inline script in index.html, so there's no flash of the wrong theme
  • Home page trimmed from ten rails to six, each retitled with a dry, specific voice ("Everyone's already seen this") instead of a literal label
  • New DiscoverBar: pick any number of genres (OR'd via TMDB's with_genres pipe syntax) plus a rating floor, and it swaps the curated rails for a live /discover grid — replacing the old one-rail-per-genre approach entirely
  • Fixed three theme-unsafe hardcoded values found along the way (text-ground used where text-on-accent was meant; three hardcoded shadow rgba() literals replaced with theme-adaptive color-mix())

Follow-up — IMDb and Rotten Tomatoes floors on the discover bar

  • The discover bar's rating filter only covered TMDB's own score, because TMDB's /discover endpoint has no idea what IMDb or Rotten Tomatoes think — those live in our own nightly-built ratings shards, keyed by IMDb ID, which a live discover result doesn't carry
  • Added two more floors: each candidate is resolved to its IMDb ID and cross-referenced against the same ratings shards the rest of the app already uses, deduplicated per shard
  • Filtering can only narrow a page of results, so a second TMDB page is pulled in whenever either floor is active
  • Fetching ratings and applying a threshold are split into a query and a memo respectively, so moving a rating floor re-filters already-resolved data instantly instead of re-running lookups on every dropdown change

docs/DECISIONS.md and PLAN.md §6/§7.1 are updated throughout to keep the living spec in sync with what shipped.

Test plan

  • tsc -b — typecheck clean
  • biome check — lint clean
  • vitest run — 53/53 unit tests passing
  • vite build — production build succeeds
  • check:bundle — first-load JS 108 KB gzipped, within the 180 KB budget
  • Playwright visual verification: home page, title detail, command palette, genre browse, both themes, discover bar filter-replaces-rails behavior, and the new IMDb/RT rating floors (confirmed correct result counts and score values, and that combining floors narrows results instantly without a new network fetch)

🤖 Generated with Claude Code

sudoquasar and others added 4 commits September 28, 2026 14:39
…rome

Full interactivity direction (see docs/DECISIONS.md, 2026-09-28): PLAN.md's old anti-motion rule (one orchestrated moment, no hover lifts, no card glows) is deliberately relaxed. The accent family grows from one gold to five jewel-tone colours (marigold/verdigris/coral/violet/azure), each with one job, so variety stays systemic rather than decorative.

- src/lib/scoreTier.ts: shared great/good/low tier colouring, reused by PosterCard ratings and the Scorecard so a colour always means the same thing.

- src/lib/accents.ts: cycles genre chips through the accent family (home page and title page).

- PosterCard/PosterImage: hover glow in the card's own score-tier colour, image zoom, title colour shift; Rail/PosterGrid stagger their entrance.

- Scorecard: scores count up on arrival and colour by tier; Tomatometer dot is now a real dot.

- Button/Dialog/Select/Kbd: interactive chrome moves off the 2px poster-corner radius onto Tailwind's default md/lg/full scale, so content and touch targets read as two different materials; posters themselves stay sharp.

- Header: glass blur, glowing search trigger, decluttered region control (no more boxed <select>), a coral pop-in badge for the watchlist count.

- Hero: slow Ken Burns zoom, staggered text entrance.

- Verified with a full typecheck/lint/test/build pass and a Playwright screenshot pass (desktop + 375px mobile) across home, title, command palette and genre pages — no console errors, all tier colours confirmed via computed styles.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…ed home page

Light becomes the default palette (warm paper ground, independently-tuned accents), with the original dark palette preserved behind a header toggle rather than replaced. Theme choice persists to localStorage and applies before first paint via an inline head script, so there is no flash of the wrong theme.

Home page trimmed from ten rails to six, each retitled with a dry, specific voice instead of a literal label. The six genre-specific rails are replaced by a new inline discover bar (src/features/browse/DiscoverBar.tsx): pick any number of genres, OR'd via TMDB's with_genres pipe syntax, plus a rating floor, and it swaps the curated rails for a live /discover grid; clearing every genre brings the rails back.

Fixed three theme-unsafe hardcoded values found during the pass: text-ground used where text-on-accent was meant (Button, Layout skip link, GenrePage checked state), and three hardcoded shadow rgba() literals replaced with color-mix(in oklab, var(--color-x) N%, transparent) so glows and shadows respond to the active theme.

Updated PLAN.md section 6 and docs/DECISIONS.md to record the theme system, the accessibility-driven colour choices, and the home page decluttering rationale.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The discover bar's rating filter only ever covered TMDB's own score, because TMDB's /discover endpoint has no idea what IMDb or Rotten Tomatoes think of a title — those live in our own nightly-built ratings shards, keyed by IMDb ID, which a live discover result doesn't carry.

Added two more floors (IMDb, Rotten Tomatoes) alongside the existing TMDB one. Each candidate TMDB returns is resolved to its IMDb ID (tmdb.ts: getImdbId) and looked up in the same ratings shards the rest of the app already uses (ratings.ts: fetchRatingsByImdbIds, deduplicated per shard). Since this can only narrow a page of results, a second TMDB page is pulled in whenever either floor is active (queries.ts: useDiscoverPages), and matched titles get their real IMDb score attached so the card shows it instead of falling back to TMDB's.

Fetching ratings and applying a threshold are split into a query and a memo respectively, so moving a rating floor re-filters already-resolved data instantly instead of re-running the external lookups on every dropdown change.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The 2026-09-28 redesign renamed the home rail titles for a drier, more specific voice (e.g. 'Trending this week' -> 'Everyone's already seen this'), but the Playwright smoke suite still asserted the old titles as region accessible names. Two of four e2e tests were failing in CI as a result: the rail-population test and the title-page navigation test, which depends on the same region to find its link.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@sudoquasar
sudoquasar merged commit 77aac8d into main Sep 28, 2026
2 checks passed
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