From 7663e48184753ef9be73167175283535ff9a4a1f Mon Sep 17 00:00:00 2001 From: Robert Wagner Date: Fri, 20 Nov 2026 06:42:16 -0500 Subject: [PATCH 01/15] The new shell: rail, layout and the pages around the media The fifth slice of the media-first redesign (#76), where it comes together. The layout gains a resizable rail (drag, throw, double-click or step its divider), mounts the player island in place of the old player, and imports the redesign's styles. The about, contact, sponsor, 404 and for-LLMs pages and the search dialog move onto the new tokens; the old player components and their assets go. The e2e suites for the shell, the player, the explorer and the episode page land here, where the whole redesign runs. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/ci.yml | 20 +- packages/starpod/package.json | 2 +- packages/starpod/src/assets/avatar-dark.png | Bin 4359 -> 4532 bytes packages/starpod/src/assets/avatar-light.png | Bin 4001 -> 4174 bytes packages/starpod/src/assets/dots-dark.svg | 1117 --------- packages/starpod/src/assets/dots-light.svg | 1116 --------- packages/starpod/src/assets/forward-icon.svg | 25 - packages/starpod/src/assets/mute-icon.svg | 26 - packages/starpod/src/assets/rewind-icon.svg | 25 - packages/starpod/src/assets/rocket-dark.svg | 3 - packages/starpod/src/assets/rocket-light.svg | 3 - packages/starpod/src/assets/unmute-icon.svg | 24 - .../src/components/AdPackageCard.astro | 16 +- .../starpod/src/components/Breadcrumbs.astro | 60 +- .../starpod/src/components/ContactForm.tsx | 127 +- packages/starpod/src/components/Dots.astro | 3 - packages/starpod/src/components/Hosts.astro | 117 +- .../starpod/src/components/InfoCard.astro | 81 +- .../src/components/LargePlatforms.astro | 115 +- .../src/components/NotFoundContent.astro | 69 +- .../starpod/src/components/PageHeader.astro | 26 + .../starpod/src/components/Platforms.astro | 113 +- packages/starpod/src/components/Player.tsx | 157 -- .../starpod/src/components/SearchButton.tsx | 38 +- .../starpod/src/components/SearchDialog.tsx | 638 ++++-- .../starpod/src/components/ShowArtwork.astro | 53 +- .../illustrations/404Illustration.astro | 31 +- .../illustrations/UFOIllustration.astro | 28 +- .../components/player/ForwardButton/index.tsx | 23 - .../player/ForwardButton/styles.css | 3 - .../components/player/MuteButton/index.tsx | 15 - .../components/player/MuteButton/styles.css | 7 - .../src/components/player/PlayButton.tsx | 70 - .../components/player/PlaybackRateButton.tsx | 38 - .../components/player/RewindButton/index.tsx | 23 - .../components/player/RewindButton/styles.css | 3 - .../src/components/player/Slider/index.tsx | 64 - .../src/components/player/Slider/styles.css | 125 - packages/starpod/src/index.ts | 34 +- packages/starpod/src/layouts/Layout.astro | 1131 +++++++++- packages/starpod/src/pages/about.astro | 250 +- packages/starpod/src/pages/contact.astro | 19 +- packages/starpod/src/pages/for-llms.astro | 78 +- packages/starpod/src/styles/buttons.css | 43 - packages/starpod/src/styles/global.css | 102 +- packages/starpod/src/styles/gradient-icon.css | 45 - packages/starpod/src/styles/interactions.css | 238 ++ packages/starpod/src/styles/rail.css | 2006 +++++++++++++++++ packages/starpod/src/styles/shell.css | 1065 +++++++++ packages/starpod/src/styles/tailwind.css | 68 +- packages/starpod/src/styles/tilt.css | 77 + playwright.config.ts | 5 +- pnpm-lock.yaml | 9 - src/pages/sponsor.astro | 61 +- starpod.config.ts | 4 +- tests/e2e/episode.spec.ts | 810 ++++++- tests/e2e/explorer.spec.ts | 796 +++++++ tests/e2e/player-phone.spec.ts | 101 + tests/e2e/player.spec.ts | 354 +++ tests/e2e/shell.spec.ts | 1009 +++++++++ tests/unit/ForwardButton.test.tsx | 92 - tests/unit/MuteButton.test.tsx | 80 - tests/unit/PlayButton.test.tsx | 114 - tests/unit/PlaybackRateButton.test.tsx | 125 - tests/unit/Player.test.tsx | 170 -- tests/unit/RewindButton.test.tsx | 92 - tests/unit/SearchButton.test.tsx | 37 +- tests/unit/SearchDialog.test.tsx | 199 +- tests/unit/Slider.test.tsx | 146 -- tests/unit/delight.test.tsx | 125 + 70 files changed, 9212 insertions(+), 4677 deletions(-) delete mode 100644 packages/starpod/src/assets/dots-dark.svg delete mode 100644 packages/starpod/src/assets/dots-light.svg delete mode 100644 packages/starpod/src/assets/forward-icon.svg delete mode 100644 packages/starpod/src/assets/mute-icon.svg delete mode 100644 packages/starpod/src/assets/rewind-icon.svg delete mode 100644 packages/starpod/src/assets/rocket-dark.svg delete mode 100644 packages/starpod/src/assets/rocket-light.svg delete mode 100644 packages/starpod/src/assets/unmute-icon.svg delete mode 100644 packages/starpod/src/components/Dots.astro create mode 100644 packages/starpod/src/components/PageHeader.astro delete mode 100644 packages/starpod/src/components/Player.tsx delete mode 100644 packages/starpod/src/components/player/ForwardButton/index.tsx delete mode 100644 packages/starpod/src/components/player/ForwardButton/styles.css delete mode 100644 packages/starpod/src/components/player/MuteButton/index.tsx delete mode 100644 packages/starpod/src/components/player/MuteButton/styles.css delete mode 100644 packages/starpod/src/components/player/PlayButton.tsx delete mode 100644 packages/starpod/src/components/player/PlaybackRateButton.tsx delete mode 100644 packages/starpod/src/components/player/RewindButton/index.tsx delete mode 100644 packages/starpod/src/components/player/RewindButton/styles.css delete mode 100644 packages/starpod/src/components/player/Slider/index.tsx delete mode 100644 packages/starpod/src/components/player/Slider/styles.css delete mode 100644 packages/starpod/src/styles/buttons.css delete mode 100644 packages/starpod/src/styles/gradient-icon.css create mode 100644 packages/starpod/src/styles/interactions.css create mode 100644 packages/starpod/src/styles/rail.css create mode 100644 packages/starpod/src/styles/shell.css create mode 100644 packages/starpod/src/styles/tilt.css create mode 100644 tests/e2e/explorer.spec.ts create mode 100644 tests/e2e/player-phone.spec.ts create mode 100644 tests/e2e/player.spec.ts create mode 100644 tests/e2e/shell.spec.ts delete mode 100644 tests/unit/ForwardButton.test.tsx delete mode 100644 tests/unit/MuteButton.test.tsx delete mode 100644 tests/unit/PlayButton.test.tsx delete mode 100644 tests/unit/PlaybackRateButton.test.tsx delete mode 100644 tests/unit/Player.test.tsx delete mode 100644 tests/unit/RewindButton.test.tsx delete mode 100644 tests/unit/Slider.test.tsx create mode 100644 tests/unit/delight.test.tsx diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c4b7dc04..26f2cd67 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -56,9 +56,19 @@ 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 + # The browsers and their system libraries come with the image, so nothing + # is installed from apt on each run. Keep the tag on the exact + # @playwright/test version in pnpm-lock.yaml. + container: + image: mcr.microsoft.com/playwright:v1.60.0-noble + options: --user 1001 + strategy: + fail-fast: false + matrix: + project: [chromium, firefox, webkit] steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 @@ -77,17 +87,15 @@ jobs: ${{ runner.os }}-pnpm-store- - name: Install dependencies run: pnpm install - - name: Install Playwright Browsers - run: pnpm exec playwright install --with-deps - 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 diff --git a/packages/starpod/package.json b/packages/starpod/package.json index 19feb7d2..66eff30f 100644 --- a/packages/starpod/package.json +++ b/packages/starpod/package.json @@ -31,6 +31,7 @@ "./db/schema": "./src/db/schema.ts", "./layout": "./src/layouts/Layout.astro", "./components/AdPackageCard": "./src/components/AdPackageCard.astro", + "./components/PageHeader": "./src/components/PageHeader.astro", "./rss": "./src/lib/rss.ts", "./src/*": "./src/*" }, @@ -45,7 +46,6 @@ "@vercel/speed-insights": "^1.3.1", "anchored-auto-layout": "^1.0.0", "astro-seo-schema": "^5.2.0", - "atropos": "^2.0.2", "drizzle-orm": "^0.45.2", "hls.js": "1.6.15", "html-to-text": "^9.0.5", diff --git a/packages/starpod/src/assets/avatar-dark.png b/packages/starpod/src/assets/avatar-dark.png index 5f79c33c26c0ac9db1a156a97e8d3269aff5fdb3..ce4f64b4009987872d9bbbca710135df8306d5ef 100644 GIT binary patch delta 191 zcmW;EF;0R(6a-*uE06G^H3TRi!OloQLntkIyF32-blKhPKGcqch9gjO0YbqIxQ1sj zZk+O)$s8W8kC)&3-AU)KDw_;z*#yjTNt>*_RY4!$QdMF{&E8>^xK`+la$pOefykb3`bw0p45YC)0`Y-wjbPq4Bk?~e>EPCC;icgrUedFy7)vfDRqb_tnEZ% Z+esy}mEZ<<$D8@-wJhe#m-F*_{|7~kMcDuV delta 17 Ycmdm@+^)3Yp8zL=r>mdKI;Vst06FglIsgCw diff --git a/packages/starpod/src/assets/avatar-light.png b/packages/starpod/src/assets/avatar-light.png index 1882cdb1dcb49214d501c7708b9a6287f1c32b66..c50bbbe46a0a57953a6860b98d276e1edd575453 100644 GIT binary patch delta 191 zcmW;EJq|%Z6a`?l#uD5O5ELYILZK0*(!81D&E>tB$;|cBNo<1F2E-opR$wtEPWhda z^JstQb#GlBGG7bV0a~k~!Z<`<2WhM#IyiF@b|q!oK?|vrAY%%Z(y+cVh-7`repI3& zCCeee(22#8SWwCuyrH1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/packages/starpod/src/assets/dots-light.svg b/packages/starpod/src/assets/dots-light.svg deleted file mode 100644 index 63309392..00000000 --- a/packages/starpod/src/assets/dots-light.svg +++ /dev/null @@ -1,1116 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/packages/starpod/src/assets/forward-icon.svg b/packages/starpod/src/assets/forward-icon.svg deleted file mode 100644 index f8f4b23c..00000000 --- a/packages/starpod/src/assets/forward-icon.svg +++ /dev/null @@ -1,25 +0,0 @@ - - - - - \ No newline at end of file diff --git a/packages/starpod/src/assets/mute-icon.svg b/packages/starpod/src/assets/mute-icon.svg deleted file mode 100644 index 00fd4821..00000000 --- a/packages/starpod/src/assets/mute-icon.svg +++ /dev/null @@ -1,26 +0,0 @@ - - - - - \ No newline at end of file diff --git a/packages/starpod/src/assets/rewind-icon.svg b/packages/starpod/src/assets/rewind-icon.svg deleted file mode 100644 index db545935..00000000 --- a/packages/starpod/src/assets/rewind-icon.svg +++ /dev/null @@ -1,25 +0,0 @@ - - - - - \ No newline at end of file diff --git a/packages/starpod/src/assets/rocket-dark.svg b/packages/starpod/src/assets/rocket-dark.svg deleted file mode 100644 index 428c1c6c..00000000 --- a/packages/starpod/src/assets/rocket-dark.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/packages/starpod/src/assets/rocket-light.svg b/packages/starpod/src/assets/rocket-light.svg deleted file mode 100644 index 67a607d4..00000000 --- a/packages/starpod/src/assets/rocket-light.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/packages/starpod/src/assets/unmute-icon.svg b/packages/starpod/src/assets/unmute-icon.svg deleted file mode 100644 index e10fed40..00000000 --- a/packages/starpod/src/assets/unmute-icon.svg +++ /dev/null @@ -1,24 +0,0 @@ - - - - - \ No newline at end of file diff --git a/packages/starpod/src/components/AdPackageCard.astro b/packages/starpod/src/components/AdPackageCard.astro index 893e1251..d90835ec 100644 --- a/packages/starpod/src/components/AdPackageCard.astro +++ b/packages/starpod/src/components/AdPackageCard.astro @@ -8,30 +8,30 @@ export interface Props { const { bullets, heading, price } = Astro.props; --- -
+

{heading}

-
    +
      { bullets.map((bullet) => { - return
    • {bullet}
    • ; + return
    • {bullet}
    • ; }) }

      {price} / - + per episode

      @@ -39,7 +39,7 @@ const { bullets, heading, price } = Astro.props; - )} - - )) + )} + + {crumb.name} + + + ); + }) } diff --git a/packages/starpod/src/components/ContactForm.tsx b/packages/starpod/src/components/ContactForm.tsx index c883eef9..382017d5 100644 --- a/packages/starpod/src/components/ContactForm.tsx +++ b/packages/starpod/src/components/ContactForm.tsx @@ -1,11 +1,21 @@ import { useState } from 'preact/hooks'; +type Status = + | { state: 'idle' } + | { state: 'sending' } + | { state: 'sent'; message: string } + | { state: 'error'; message: string }; + +const FIELD = + 'block w-full rounded-(--r-thumb) border border-line bg-surface px-4 py-3 text-ink placeholder:text-muted outline-none! transition-[border-color,box-shadow] duration-200 focus:border-accent focus:ring-4 focus:ring-accent-soft'; +const LABEL = 'text-ink mb-2 block text-sm font-semibold'; + export default function ContactForm() { - const [formSubmitted, setFormSubmitted] = useState(false); - const [responseMessage, setResponseMessage] = useState(''); + const [status, setStatus] = useState({ state: 'idle' }); async function submit(e: SubmitEvent) { e.preventDefault(); + setStatus({ state: 'sending' }); const formData = new FormData(e.target as HTMLFormElement); try { @@ -13,58 +23,91 @@ export default function ContactForm() { method: 'POST', body: formData }); + const data = await response.json().catch(() => ({})); + const message: string | undefined = data.message ?? data.error?.message; - const data = await response.json(); + setStatus( + response.ok + ? { state: 'sent', message: message ?? 'Thanks! Your message is on its way.' } + : { + state: 'error', + message: message ?? 'Your message didn’t go through. Please try again.' + } + ); + } catch { + setStatus({ + state: 'error', + message: 'We couldn’t reach the server. Check your connection and try again.' + }); + } + } - if (data.message) { - setResponseMessage(data.message); - } - if (response.ok) { - setFormSubmitted(true); - } - } catch {} + if (status.state === 'sent') { + return ( +
      +

      Message sent

      +

      {status.message}

      +
      + ); } + const sending = status.state === 'sending'; + return ( - <> - {formSubmitted ? ( - `${responseMessage}` - ) : ( -
      + +
      +
      + + +
      +
      + - +
      +
      -