Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
130 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
1daf400
Test the back morph after leaving an episode by its number
RobbieTheWagner Nov 30, 2026
b06c8c8
Find the back morph's card by the canonical path, not the URL left
RobbieTheWagner Nov 30, 2026
502517b
Test that every feed spelling of a person finds their record
RobbieTheWagner Nov 30, 2026
5dc7f4a
Match every feed spelling of a person to their record
RobbieTheWagner Nov 30, 2026
a2d9117
Test that the palette's host voices match hosts as About does
RobbieTheWagner Nov 30, 2026
7e8496d
Give the palette's hosts their voices by About's matching
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
306153b
Merge media-redesign into fix/people-consistency
RobbieTheWagner Dec 1, 2026
6f98145
Merge main into fix/people-consistency
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
7 changes: 6 additions & 1 deletion packages/starpod/src/components/episode/Onward.astro
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,12 @@ const pager = [
let leaving = '';

document.addEventListener('astro:before-preparation', (event) => {
leaving = event.from.pathname;
// The canonical path, so an episode reached by its number (/123) still
// finds its card, which links to its slug.
leaving = new URL(
document.querySelector<HTMLLinkElement>('link[rel="canonical"]')?.href ??
event.from.href
).pathname;
name(
(event.sourceElement as HTMLElement | undefined)?.closest?.<HTMLElement>(
'[data-ep-card]'
Expand Down
17 changes: 10 additions & 7 deletions packages/starpod/src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import {
RailIcon
} from '../components/icons';

import { hostVoices } from '../lib/cast';
import { getShowInfo } from '../lib/rss';
import starpodConfig from 'virtual:starpod/config';

Expand All @@ -37,13 +38,15 @@ const show = await getShowInfo();
// Only built pages gather them: an on-demand page such as the 404 would fetch
// the feed and query the database on every request, so its palette starts
// with episodes instead.
const hostNames = starpodConfig.hosts.map((host) => host.name);
const people = Astro.isPrerendered
? (await loadPeople()).map((person) => {
const voice = hostNames.indexOf(person.label);
return voice === 0 || voice === 1 ? { ...person, voice } : person;
})
: [];
const everyone = Astro.isPrerendered ? await loadPeople() : [];
const voices = hostVoices(
starpodConfig.hosts.map((host) => host.name),
everyone.map((person) => person.label)
);
const people = everyone.map((person) => {
const voice = voices.get(person.label);
return voice === undefined ? person : { ...person, voice };
});

export interface Props {
/**
Expand Down
30 changes: 30 additions & 0 deletions packages/starpod/src/lib/cast.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,36 @@ export function matchNames(
);
}

/**
* Each of `names` with its surest candidate, as `matchNames` scores them, but
* a candidate can go to any number of names: every spelling of one person
* finds their record. A name whose surest candidates tie stays unmatched.
*/
export function matchEach(names: Array<string>, candidates: Array<string>) {
return new Map(
[...new Set(names)].flatMap((name) => [
...pair([name], candidates, (one, candidate) =>
likeness(one, candidate, false)
)
])
);
}

/**
* The show's first two configured hosts among `names`, matched as the About
* page matches them (`matchNames`), each with the transcript voice they wear:
* name → 0 or 1.
*/
export function hostVoices(hosts: Array<string>, names: Array<string>) {
const recordOf = matchNames(hosts, names);
return new Map(
hosts.slice(0, 2).flatMap((host, voice) => {
const name = recordOf.get(host);
return name ? [[name, voice] as const] : [];
})
);
}

/**
* Who on a page is speaking: `names` are the people a page shows (however
* each element names them), `speakers` the playing transcript's. Names that
Expand Down
4 changes: 2 additions & 2 deletions packages/starpod/src/lib/people.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import avatar from '../assets/avatar.svg?url';
import { createDb } from '../db';
import { HostOrGuest, Person } from '../db/schema';
import { dasherize } from '../utils/dasherize';
import { matchNames, type CastPerson } from './cast';
import { matchEach, type CastPerson } from './cast';
import { getAllEpisodes } from './rss';

interface Records {
Expand Down Expand Up @@ -79,7 +79,7 @@ export function peopleBySlug(): Promise<Map<string, Array<CastPerson>>> {
fromDatabase(),
getAllEpisodes()
]);
const recordOf = matchNames(
const recordOf = matchEach(
episodes.flatMap(
(episode) => episode.people?.map((person) => person.name) ?? []
),
Expand Down
29 changes: 29 additions & 0 deletions tests/e2e/episode.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -994,3 +994,32 @@ test.describe('the stage on phones', () => {
}
});
});

test('going back to an episode left by its number morphs into its card', async ({
page
}) => {
await page.goto(
'/throwback-frameworks-tailwind-fandom-and-css-with-jhey-tompkins'
);
const previous = page.locator('.ep-pager-link[rel="prev"]');
const slugPath = await previous.getAttribute('href');
const number = (await previous.innerText()).match(/Ep (\d+)/)?.[1];
expect(number, 'the previous card names its episode number').toBeTruthy();

await page.evaluate((href) => {
const link = document.createElement('a');
link.href = href;
link.id = 'by-number';
link.textContent = 'by number';
document.body.append(link);
}, `/${number}`);
await page.locator('#by-number').dispatchEvent('click');
await expect(page).toHaveURL(new RegExp(`/${number}$`));

await page.goBack();
await expect(page).toHaveURL(/jhey-tompkins$/);
await expect(
page.locator(`[data-ep-card][href="${slugPath}"] .ep-card-art`),
'the card for the episode left is named so the stage flies home into it'
).toHaveAttribute('data-ep-named', '');
});
39 changes: 39 additions & 0 deletions tests/unit/cast.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { describe, expect, it } from 'vitest';
import {
factGivesCount,
hostVoices,
matchEach,
matchNames,
matchPageNames,
ordinal,
Expand Down Expand Up @@ -239,6 +241,43 @@ describe('matchNames', () => {
});
});

describe('matchEach', () => {
it('gives every spelling of one person their record', () => {
const records = matchEach(
['Robbie Wagner', 'RobbieTheWagner', 'Chuck Carpenter'],
['Robbie Wagner', 'Chuck Carpenter', 'Adam Argyle']
);
expect(Object.fromEntries(records)).toEqual({
'Robbie Wagner': 'Robbie Wagner',
RobbieTheWagner: 'Robbie Wagner',
'Chuck Carpenter': 'Chuck Carpenter'
});
});

it('leaves a name that could be either of two records unmatched', () => {
const records = matchEach(
['Adam', 'Adam Argyle'],
['Adam Argyle', 'Adam Rackis']
);
expect(Object.fromEntries(records)).toEqual({
'Adam Argyle': 'Adam Argyle'
});
});
});

describe('hostVoices', () => {
it('gives the first two configured hosts their voices under the names the episodes use', () => {
const voices = hostVoices(
['Robbie Wagner', 'Chuck Carpenter', 'Adam Argyle'],
['RobbieTheWagner', 'Chuck Carpenter', 'Adam Argyle', 'Travis Wagner']
);
expect(Object.fromEntries(voices)).toEqual({
RobbieTheWagner: 0,
'Chuck Carpenter': 1
});
});
});

describe('matchPageNames', () => {
const speakers = ['Robbie Wagner', 'Adam Argyle'];
const guests = ['Travis Wagner', 'Lane Wagner', 'Adam Rackis', 'Adam Stacoviak'];
Expand Down
Loading