From df6b4d71c21687dbee14959848d95cd74629812f Mon Sep 17 00:00:00 2001 From: Robert Wagner Date: Fri, 20 Nov 2026 06:42:22 -0500 Subject: [PATCH 1/6] Design context and docs for the redesign The last slice of the media-first redesign (#76): PRODUCT.md and DESIGN.md (the Stage system's direction and tokens), the .impeccable design context, and the README and CLAUDE.md updates describing the media engine, the stage and the new styles. Co-Authored-By: Claude Opus 5.5 --- CLAUDE.md | 21 +- packages/starpod/.impeccable/config.json | 3 + packages/starpod/.impeccable/design.json | 820 ++++++++++++++++++ .../surfaces/src-layouts-layout-astro.md | 71 ++ packages/starpod/DESIGN.md | 448 ++++++++++ packages/starpod/PRODUCT.md | 97 +++ packages/starpod/README.md | 51 +- 7 files changed, 1505 insertions(+), 6 deletions(-) create mode 100644 packages/starpod/.impeccable/config.json create mode 100644 packages/starpod/.impeccable/design.json create mode 100644 packages/starpod/.impeccable/surfaces/src-layouts-layout-astro.md create mode 100644 packages/starpod/DESIGN.md create mode 100644 packages/starpod/PRODUCT.md diff --git a/CLAUDE.md b/CLAUDE.md index 4ddd7fa5..4b5fb907 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -20,7 +20,7 @@ Whatnot podcast). - **Lint fix:** `pnpm lint:fix` - **All tests:** `pnpm test` (runs unit + e2e concurrently) - **Unit tests only:** `pnpm test:unit` (Vitest) -- **Single unit test:** `pnpm exec vitest run tests/unit/Player.test.tsx` +- **Single unit test:** `pnpm exec vitest run tests/unit/Dock.test.tsx` - **E2E tests only:** `pnpm test:e2e` (Playwright, auto-starts dev server) - **Seed remote DB:** `pnpm db:seed` - **Push schema to DB:** `pnpm db:push` @@ -64,9 +64,24 @@ connection is configured in `db/index.ts`. `Accept: text/markdown` clients, and the styled 404 page otherwise. API routes return structured JSON errors via `src/lib/api-errors.ts`. - `src/components/` — Mix of `.astro` (static) and `.tsx` (Preact interactive) - components. The audio player (`src/components/player/`) and search dialog are + components. The media player (`src/components/media/`) and search dialog are Preact. -- `src/components/state.ts` — Preact signals for shared player state. +- `src/components/state.ts` — Preact signals for shared player state + (current episode, Watch/Listen preference, playback readouts). +- `src/components/media/engine.ts` — one persistent `