Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
122 commits
Select commit Hold shift + click to select a range
76a1d98
Redesign foundations: tokens, motion, and the libraries the new UI reads
RobbieTheWagner Nov 20, 2026
f880c10
Address CodeRabbit on the foundations
RobbieTheWagner Nov 22, 2026
3492991
Media engine and the player island
RobbieTheWagner Nov 20, 2026
c5c5b25
Tighten name, cue and flip edges found in review
RobbieTheWagner Nov 22, 2026
1e09ab0
Address CodeRabbit's review of the media engine and player (#79)
RobbieTheWagner Nov 21, 2026
9ad863d
Merge pull request #83 from shipshapecode/split/1-foundations
RobbieTheWagner Nov 22, 2026
63d62c5
Fix playback edges found in review of the media engine
RobbieTheWagner Nov 22, 2026
f709f65
Merge pull request #79 from shipshapecode/split/2-media
RobbieTheWagner Nov 22, 2026
1233ffe
The episode page, built around its stage
RobbieTheWagner Nov 20, 2026
5b9f652
Hold a landed section under the bar where there's no scroll anchoring
RobbieTheWagner Nov 20, 2026
dc14fdc
Hold a landed section in WebKit too, which accepts overflow-anchor
RobbieTheWagner Nov 20, 2026
7603296
Hold a landed section to the pixel
RobbieTheWagner Nov 20, 2026
05c64b7
Address CodeRabbit on the episode page
RobbieTheWagner Nov 23, 2026
13e5615
Fix episode page edges found in review
RobbieTheWagner Nov 23, 2026
9d1ad41
Put the phone script limits after the base script rules
RobbieTheWagner Nov 24, 2026
d6c3b2d
Expect the redesigned transcript in the transcript tests
RobbieTheWagner Nov 24, 2026
cd01e81
Merge pull request #80 from shipshapecode/split/3-episode
RobbieTheWagner Nov 24, 2026
d240365
The home page becomes an episode explorer
RobbieTheWagner Nov 20, 2026
c799f2f
Keep the open card's parts on their slots in Firefox
RobbieTheWagner Nov 20, 2026
53d275b
Show the close-up's resume line by the engine's resume rule
RobbieTheWagner Nov 21, 2026
8ea5661
Measure the close-up's anchor gap in a frame, confirmed over two
RobbieTheWagner Nov 21, 2026
9f34036
Give explorer faces without a photo the light-or-dark avatar
RobbieTheWagner Nov 23, 2026
d729623
Address CodeRabbit and review on the explorer
RobbieTheWagner Nov 24, 2026
e448e27
Name each episode's people from the database or the feed
RobbieTheWagner Nov 24, 2026
c8fa4a4
Keep the explorer's state in the hash, through Astro's router
RobbieTheWagner Nov 24, 2026
03ed73a
Say the explorer's state lives in the hash
RobbieTheWagner Nov 24, 2026
16a29c8
Look for the home page's first card art in the explorer's markup
RobbieTheWagner Nov 24, 2026
5550a9b
Merge pull request #81 from shipshapecode/split/4-explorer
RobbieTheWagner Nov 24, 2026
7663e48
The new shell: rail, layout and the pages around the media
RobbieTheWagner Nov 20, 2026
97ccdaa
Give client-side navigations in e2e the time CI's Firefox takes
RobbieTheWagner Nov 20, 2026
46b62a8
Play a generated WAV in the audio e2e tests
RobbieTheWagner Nov 20, 2026
73fe3b0
Skip the audio e2e tests in CI's Firefox, which has no audio output
RobbieTheWagner Nov 20, 2026
92ab1aa
Space the rail's synthetic throw by waiting in place
RobbieTheWagner Nov 20, 2026
ff7c3d0
Give the jump to episode 184 the navigation timeout too
RobbieTheWagner Nov 20, 2026
e63c4ed
Land a section within a pixel of 16px under the bar in e2e
RobbieTheWagner Nov 21, 2026
7f9575a
Expect focus to open a clamped transcript only on what it cuts off
RobbieTheWagner Nov 23, 2026
d1f25ca
Give hosts without a photo the light-or-dark avatar
RobbieTheWagner Nov 24, 2026
a6b1d22
Remove the avatar PNGs now that avatar.svg carries both
RobbieTheWagner Nov 24, 2026
f82253d
Count the hosts' episodes on About wherever episodes name them
RobbieTheWagner Nov 24, 2026
8ade50a
Link to the explorer's cuts by hash, and let the router take skip links
RobbieTheWagner Nov 24, 2026
a0099be
Address CodeRabbit on the shell
RobbieTheWagner Nov 24, 2026
53a4d30
Keep a squeezed follow flyout to one scrolling column, without a caret
RobbieTheWagner Nov 24, 2026
7245bc7
Let the mobile header's title go home for a pointer, as the artwork's…
RobbieTheWagner Nov 24, 2026
f14bf66
Merge pull request #82 from shipshapecode/split/5-shell
RobbieTheWagner Nov 25, 2026
df6b4d7
Design context and docs for the redesign
RobbieTheWagner Nov 20, 2026
6c66edf
Name the explorer's hash in the design notes
RobbieTheWagner Nov 24, 2026
1b97a52
Address CodeRabbit on the design docs
RobbieTheWagner Nov 25, 2026
e8d6d62
Bring the design docs in line with the code
RobbieTheWagner Nov 25, 2026
bf8e1c8
Lay the preview's more button over the fade from the start
RobbieTheWagner Nov 25, 2026
08676cb
Keep holding a landed section when the page shrinks to it
RobbieTheWagner Nov 25, 2026
3287b06
Merge pull request #84 from shipshapecode/split/6-docs
RobbieTheWagner Nov 26, 2026
a3317ac
Move the stage's plain layout and type to Tailwind
RobbieTheWagner Nov 23, 2026
82eb7cb
Move the episode and About pages' plain spacing and type to Tailwind
RobbieTheWagner Nov 23, 2026
89cdd7c
Move the top bar, crumbs and sheet titles' plain styles to Tailwind
RobbieTheWagner Nov 23, 2026
27d15f0
Move the home hero and toolbar's plain spacing and type to Tailwind
RobbieTheWagner Nov 23, 2026
5ce114f
Move the Up next board's plain text and grid styles to Tailwind
RobbieTheWagner Nov 23, 2026
7778f73
Move the search palette's plain row text styles to Tailwind
RobbieTheWagner Nov 23, 2026
5e10bd4
Move the archive chips, toolbar row and dock times' plain styles to T…
RobbieTheWagner Nov 23, 2026
8c59416
Draw every colour from the theme
RobbieTheWagner Nov 25, 2026
4fa71e7
Add utilities for the modern CSS Tailwind doesn't ship
RobbieTheWagner Nov 25, 2026
29c4852
Move the stage's grid, frame and title plain styles to Tailwind
RobbieTheWagner Nov 25, 2026
8ca90e8
Move the shell's plain styles to Tailwind
RobbieTheWagner Nov 25, 2026
38a95f9
Put element defaults under utilities, and use Tailwind's own utilities
RobbieTheWagner Nov 25, 2026
01f1696
Move the episode page's plain styles to Tailwind
RobbieTheWagner Nov 25, 2026
c7dc725
Move the player's plain styles to Tailwind
RobbieTheWagner Nov 25, 2026
a8e6752
Read the player home's hook class, not its whole class list
RobbieTheWagner Nov 25, 2026
f688ec1
Move the rail's plain styles to Tailwind
RobbieTheWagner Nov 26, 2026
f7a9aa8
Move the explorer's plain styles to Tailwind
RobbieTheWagner Nov 26, 2026
72f1b60
Keep the hook classes sites style through customCss
RobbieTheWagner Nov 26, 2026
5de1554
Measure Tailwind's spacing and breakpoints in px
RobbieTheWagner Nov 26, 2026
f055da9
Drop the hook classes again
RobbieTheWagner Nov 26, 2026
600c895
Give Starpod its own Tailwind type, leading and radius scales
RobbieTheWagner Nov 26, 2026
80a2fc3
Fold near-duplicate sizes into the scale steps
RobbieTheWagner Nov 26, 2026
18b95e6
Document theming through CSS variables
RobbieTheWagner Nov 26, 2026
9bf2c60
Name the easings, fonts, layout spacing and hairline in the theme
RobbieTheWagner Nov 27, 2026
83ec05d
Size the player card's title row to the title
RobbieTheWagner Nov 27, 2026
be04cc9
Make the playback speed a plain control like the icons beside it
RobbieTheWagner Nov 27, 2026
4038d92
Outline every outlined button the same way, and line up the hosts
RobbieTheWagner Nov 28, 2026
9d37f47
Keep the host photos whole; size the posters instead
RobbieTheWagner Nov 28, 2026
49cc054
Merge pull request #87 from shipshapecode/split/7-tailwind
RobbieTheWagner Nov 30, 2026
1bf1a1a
Make the contact form placeholder generic
RobbieTheWagner Nov 30, 2026
97b7ba3
Gather the palette's people only on prerendered pages
RobbieTheWagner Nov 30, 2026
cb9d025
Load the search palette's episodes when it opens, from a slim endpoint
RobbieTheWagner Nov 30, 2026
d33508f
Treat --slomo 0 as 0 so reduced motion skips the motion waits
RobbieTheWagner Nov 30, 2026
f9d8584
Keep the live script off the clock unless its episode is playing
RobbieTheWagner Nov 30, 2026
1d96fdd
Make the contact form placeholder generic (#88)
RobbieTheWagner Nov 30, 2026
7e13c4f
Serve the stylesheets as cached files, and load page CSS only where used
RobbieTheWagner Nov 30, 2026
4fa57f0
Keep the scroll reveals in the shared sheet
RobbieTheWagner Nov 30, 2026
7bde971
Treat a failed palette.json response as a failed load
RobbieTheWagner Nov 30, 2026
7387790
Merge pull request #89 from shipshapecode/fix/404-people
RobbieTheWagner Nov 30, 2026
9765576
Merge pull request #90 from shipshapecode/fix/palette-payload
RobbieTheWagner Nov 30, 2026
2840c82
Merge pull request #92 from shipshapecode/fix/livescript-clock
RobbieTheWagner Nov 30, 2026
8bdf42d
Merge pull request #93 from shipshapecode/fix/css-weight
RobbieTheWagner Nov 30, 2026
680d20c
Time the rail re-form only in Chromium; unit test slomo()
RobbieTheWagner Nov 30, 2026
4d7a323
Let e2e run on any port and pin Playwright to the CI image
RobbieTheWagner Nov 30, 2026
5b2a8b1
Delete dead code and stale references
RobbieTheWagner Nov 30, 2026
2449ab7
Search the palette the way the explorer does
RobbieTheWagner Nov 30, 2026
87c6245
Leave each typed word plain in palette results
RobbieTheWagner Nov 30, 2026
dd1a65f
Name the explorer filter, its clear buttons and the palette's groups
RobbieTheWagner Nov 30, 2026
152664a
Stagger palette rows from a per-row --i
RobbieTheWagner Nov 30, 2026
40344ba
Render the feed transcript on the server, not as a load island
RobbieTheWagner Nov 30, 2026
b9889b3
Point CLAUDE.md at packages/starpod and list PageHeader in the README
RobbieTheWagner Nov 30, 2026
e3044bc
Do a keystroke's explorer work once, not three times
RobbieTheWagner Nov 30, 2026
a3ebea3
Fetch the feed once per build and load sponsors in one batch
RobbieTheWagner Nov 30, 2026
9f278c0
Mark the current section from the page, not Chromium's :target-current
RobbieTheWagner Nov 30, 2026
524c1f7
Cap hls.js to the player's size
RobbieTheWagner Nov 30, 2026
1ad976e
Merge pull request #101 from shipshapecode/docs/claude-md-readme
RobbieTheWagner Dec 1, 2026
a1931f4
Merge pull request #95 from shipshapecode/chore/dead-code
RobbieTheWagner Dec 1, 2026
ec0eaa2
Merge pull request #91 from shipshapecode/fix/reduced-motion-slomo
RobbieTheWagner Dec 1, 2026
ac04a4b
Test that typing keeps its words in the explorer's search box
RobbieTheWagner Dec 1, 2026
7a56480
Merge pull request #105 from shipshapecode/perf/explorer-typing
RobbieTheWagner Dec 1, 2026
1134aa0
Merge pull request #108 from shipshapecode/test/ci-flakes
RobbieTheWagner Dec 1, 2026
12c795f
Merge branch 'media-redesign' into chore/e2e-port
RobbieTheWagner Dec 1, 2026
dc81c20
Install CI's browsers from the repo's own Playwright
RobbieTheWagner Dec 1, 2026
2f1d0d3
Merge pull request #94 from shipshapecode/chore/e2e-port
RobbieTheWagner Dec 1, 2026
80ea3e7
Merge pull request #106 from shipshapecode/perf/build-data
RobbieTheWagner Dec 1, 2026
c8a82e2
Merge pull request #98 from shipshapecode/fix/search-a11y
RobbieTheWagner Dec 1, 2026
6e5cabb
Merge remote-tracking branch 'origin/media-redesign' into perf/rss-tr…
RobbieTheWagner Dec 1, 2026
055932b
Merge pull request #102 from shipshapecode/perf/rss-transcript
RobbieTheWagner Dec 1, 2026
d377fcd
Merge pull request #97 from shipshapecode/fix/search-matching
RobbieTheWagner Dec 1, 2026
c3f3caa
Find the explorer's search box by its new name in the typing tests
RobbieTheWagner Dec 1, 2026
24f1518
Merge pull request #109 from shipshapecode/fix/explorer-test-label
RobbieTheWagner Dec 1, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 24 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,13 @@ jobs:
run: pnpm test:unit run

e2e:
timeout-minutes: 60
# Playwright 1.60 can't install browsers on ubuntu-latest (26.04) yet.
name: e2e (${{ matrix.project }})
timeout-minutes: 30
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
project: [chromium, firefox, webkit]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
Expand All @@ -77,17 +81,31 @@ jobs:
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install
- name: Install Playwright Browsers
run: pnpm exec playwright install --with-deps
# The browsers match whatever @playwright/test pnpm-lock.yaml resolves.
- name: Get Playwright version
shell: bash
run: echo "PLAYWRIGHT_VERSION=$(pnpm exec playwright --version | awk '{print $2}')" >> $GITHUB_ENV
- uses: actions/cache@v4
id: playwright-cache
with:
path: ~/.cache/ms-playwright
key: ${{ runner.os }}-playwright-${{ env.PLAYWRIGHT_VERSION }}-${{ matrix.project }}
- name: Install Playwright browser
if: steps.playwright-cache.outputs.cache-hit != 'true'
run: pnpm exec playwright install --with-deps ${{ matrix.project }}
# System libraries live outside the cache.
- name: Install Playwright system dependencies
if: steps.playwright-cache.outputs.cache-hit == 'true'
run: pnpm exec playwright install-deps ${{ matrix.project }}
- name: Run Playwright tests
run: pnpm exec playwright test
run: pnpm exec playwright test --project=${{ matrix.project }}
env:
ASTRO_DB_REMOTE_URL: ${{ secrets.ASTRO_DB_REMOTE_URL }}
ASTRO_DB_APP_TOKEN: ${{ secrets.ASTRO_DB_APP_TOKEN }}
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
name: playwright-report-${{ matrix.project }}
path: playwright-report/
retention-days: 30

Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,6 @@ test-results/
# macOS-specific files
.DS_Store
package-lock.json

# Impeccable hook cache
packages/starpod/.impeccable/hook.cache.json
98 changes: 74 additions & 24 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,34 @@ Whatnot podcast).
## Commands

- **Dev server:** `pnpm dev` (runs on localhost:4321)
- **Build:** `pnpm build` (runs `astro check`, `astro build`, then
`scripts/vercel-md-negotiation.mjs`, which injects `Accept: text/markdown`
content-negotiation routes into the Vercel build output)
- **Build:** `pnpm build` (runs `astro check` and `astro build`; the
integration's `astro:build:done` hook then runs
`packages/starpod/src/vercel-md-negotiation.mjs`, which injects
`Accept: text/markdown` content-negotiation routes into the Vercel build
output)
- **Lint:** `pnpm lint` (ESLint with caching)
- **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/Island.test.tsx`
- **E2E tests only:** `pnpm test:e2e` (Playwright, auto-starts dev server)
- **E2E on another port:** `E2E_PORT=4340 pnpm test:e2e` (default 4321, where
outside CI Playwright reuses whatever server is running; use a free port in a worktree)
- **Seed remote DB:** `pnpm db:seed`
- **Push schema to DB:** `pnpm db:push`
- **Drizzle Studio:** `pnpm db:studio`

## Architecture

Starpod ships as the `starpod` Astro integration in `packages/starpod/`. The
repo root is the whiskey.fm reference site that consumes it: its config files,
`db/seed.ts` and `db/data/`, and a `src/` holding only the sponsor page,
images and transcripts. Below, `src/...` means `packages/starpod/src/...`
unless it says the site's `src/`.

### Framework Stack

- **Astro 5** with static output, deployed to Vercel
- **Astro 6** with static output, deployed to Vercel
- **Preact** for interactive components (player, search, contact form)
- **Tailwind CSS v4** via Vite plugin
- **Drizzle ORM** with Turso/libSQL for episode guests and sponsors
Expand All @@ -49,10 +59,13 @@ Whatnot podcast).
### Data Flow

Episodes are fetched from the RSS feed at build time via `src/lib/rss.ts`.
Each episode's hosts and guests come from the database where it lists the
episode, else from the feed's `<podcast:person>` tags (`src/lib/people.ts`);
with neither, the pieces that show people leave themselves out.
Guest/sponsor data lives in `db/data/` as TypeScript files and is seeded to
Turso via `db/seed.ts`. The DB schema is in `db/schema.ts` (Drizzle ORM) with
tables: Episode, Person, HostOrGuest, Sponsor, SponsorForEpisode. The DB
connection is configured in `db/index.ts`.
Turso via `db/seed.ts`. The DB schema is in `src/db/schema.ts` (Drizzle ORM)
with tables: Episode, Person, HostOrGuest, Sponsor, SponsorForEpisode. The DB
connection is configured in `src/db/index.ts`.

### Source Structure

Expand All @@ -64,23 +77,59 @@ 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
Preact.
- `src/components/state.ts` — Preact signals for shared player state.
components. The media player (`src/components/media/`) and search dialog are
Preact. `src/components/explorer/` is the home page's episode explorer.
- `src/components/state.ts` — Preact signals for shared player state
(current episode, Watch/Listen preference, playback readouts).
- `src/components/media/engine.ts` — one persistent `<video>` element for the
whole visit. It plays the episode's HLS video (hls.js outside Safari) or MP3,
and physically moves between an episode stage's `[data-media-slot]` and the
persisted dock's `[data-media-dock]`. It mirrors playback state onto
`<html data-*>` attributes so CSS can react without islands; progress is
the media clock's `--live-progress`, written on elements that opt in with
`data-props-for="media-clock"` (`src/components/media/publish.ts`).
- `src/motion/propflip.ts` and `propflip.css` — the FLIP motion layer, a port
of PropFLIP: the invert goes to typed custom properties and plays as a CSS
transition.
- `prop-for-that` (a dependency) publishes live values, such as pointer
position and the media clock, as CSS custom properties.
- Styling: `src/styles/global.css` imports the shared styles in cascade order:
`tailwind.css`, `anchored-auto-layout`, `motion/propflip.css`, `tilt.css`
and `search-icon.css` first, then tokens in `tokens.css`, the people
identity in `people.css`, the app shell in `shell.css`, the episode stage
in `stage.css` and `worlds.css` (rules
still scoped to `<html data-world="stage">`), hover/press states in
`interactions.css`, then the rail and player (`rail.css`, `player.css`).
Pages import their own: `index.astro` imports `explorer.css`, and the
episode and standalone pages import `episode.css`. Prefer Tailwind
utilities for new work; the palette is exposed as Tailwind colors via
`@theme inline` in `tailwind.css`. The type, leading, measure, blur,
tracking, weight, shadow and radius scales are Starpod's own (`text-sm`
is 13px, `font-demibold` is 650, `rounded-card` is `--r-card`) and live in
`tailwind.css`; use those named steps rather than arbitrary values, and
`var(--text-sm)` and the like in the stylesheets.
- Video comes from the feed's `<podcast:alternateEnclosure>` (HLS or another
video type), and people from its `<podcast:person>` tags; `rss-to-json`
drops both, so `src/lib/feed-media.ts` scans the raw XML.
`/api/cues/[episode].json` serves timed transcript lines for the stage's
live transcript (`src/lib/cues.ts`).
- `src/lib/` — Core utilities: RSS fetching, image optimization, LLM content
generation.
- `src/content/transcripts/` — Markdown transcript files named by episode
number. When one is absent, the site falls back to the transcript referenced
by the feed's `<podcast:transcript>` tag (fetched/parsed in
`src/lib/transcript.ts`). Both sources render with clickable timestamps that
seek the player: RSS paragraphs via the `episode/Transcript` island, and
markdown `[HH:MM:SS]` timestamps via the `rehype-transcript-timestamps`
plugin (registered in `astro.config.mjs`) plus the `episode/MarkdownTranscript`
island. Note: changing that rehype plugin needs a dev server restart to take
effect, since Astro's content render cache doesn't reload it on hot-reload.
- The site's `src/content/transcripts/` — Markdown transcript files named by
episode number. When one is absent, the site falls back to the transcript
referenced by the feed's `<podcast:transcript>` tag (fetched/parsed in
`src/lib/transcript.ts`). Both sources are rendered on the server, with
timestamp chips that seek the player through one delegated handler in the
`episode/MarkdownTranscript` island: RSS paragraphs via the static
`episode/Transcript` component, and markdown `[HH:MM:SS]` timestamps via the
`rehype-transcript-timestamps` plugin (registered by the integration in
`src/index.ts`). Note: changing that rehype plugin needs a dev server
restart to take effect, since Astro's content render cache doesn't reload
it on hot-reload.
- `src/layouts/Layout.astro` — Single shared layout.
- `db/` — Database schema (`schema.ts`), connection (`index.ts`), seed script
(`seed.ts`), and static data files (`data/`).
- `src/db/` — Database schema (`schema.ts`) and connection (`index.ts`). The
site's `db/` holds the seed script (`seed.ts`) and static data files
(`data/`).

### Testing

Expand All @@ -91,8 +140,9 @@ connection is configured in `db/index.ts`.

### TypeScript

Strict mode with `baseUrl: "."` allowing bare `src/...` imports. JSX is
configured for Preact (`jsxImportSource: "preact"`).
Strict mode. The root `tsconfig.json` maps `starpod/src/*` to
`packages/starpod/src/*`. JSX is configured for Preact
(`jsxImportSource: "preact"`).

## Environment Variables

Expand Down
3 changes: 3 additions & 0 deletions packages/starpod/.impeccable/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"buildPath": "code"
}
Loading
Loading