feat(web): packages.wheels.dev static site (#2271)#2278
Merged
Conversation
Brainstorm output for the deferred wheels.dev half of #2271. Proposes a fifth Astro static site alongside blog/api/guides under web/sites/, deployed to Cloudflare Pages as wheels-packages, rebuilt via repository_dispatch fired from the wheels-packages registry repo on manifest merges. Card-grid listing, detail pages with rendered README through the unified/remark/rehype pipeline. No runtime, build-time fetch, fail-loud on registry errors.
Adds two SITES entries (packages-index + packages-wheels-sentry) to the visual-regression harness and captures their baseline PNGs. Without these baselines the visual-regression CI job fails for the new packages.wheels.dev site. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This was referenced Apr 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
packages.wheels.devas a fifth Astro static site alongsidewheels.dev/blog.wheels.dev/guides.wheels.dev/api.wheels.dev. Fed by thewheels-dev/wheels-packagesregistry at build time; rebuilt on registry merges viarepository_dispatch.Closes the wheels.dev half of #2271. (The in-app
/wheels/packageshalf shipped in #2277.)Changes
web/sites/packages/— new Astro site:[name].astrodetail pages with version history table, homepage link (gated^https?://), and rendered READMEweb/sites/packages/src/lib/registry.ts+ tests (10 tests) — fetcher +listAllwith manifest/directory-name drift guardweb/sites/packages/src/lib/markdown.ts+ tests (6 tests) —unified/remark/rehype-sanitize/rehype-shikipipeline; sanitizer runs BEFORE shikiweb/vitest.config.ts+ per-site configs — first unit-test runner in theweb/workspace.github/workflows/web-deploy.yml— addedpackagesto deploy matrix, addedrepository_dispatch: [registry-updated]trigger, gated registry-triggered runs to thepackagesslot onlyweb/tests/visual-baselines/packages-*.png— new visual-regression baselinesSecurity posture
^https?://on both listing + detailrehype-sanitizewithdefaultSchema(relaxed only forpre/code/spanclass+style so shiki's output survives). Empirically verified: with the sanitizer removed,javascript:URLs slip through — confirming the sanitizer is load-bearing.set:htmlin detail page receives only sanitizer output; two independent gates (allowDangerousHtml: falseon remark-rehype +rehype-sanitize)data-searchhaystack on cards uses Astro attribute escapingOne-time prep status
wheels-packages+packages.wheels.devcustom domain — done by @bpamiriwheels-dev/wheels-packages: wheels-packages#2 — adds thenotify-site.ymlworkflow that firesrepository_dispatchon manifest merges. NeedsNOTIFY_WHEELS_TOKENPAT secret created before merging (detailed in that PR)Test plan
cd web/sites/packages && pnpm test→ 16 passpnpm --filter @wheels-dev/site-packages build→ 5 pages (index + 4 detail)pnpm visual:testgreenpackages.wheels.dev, confirm all 4 current packages renderNotes
*.actual.pngfrom the diffs artifact and commit as the new baselines (standard recovery per the workflow comment).feat(docs)/fix(docs)etc. scopes. Thecommitlintconfig allowsdocsbroadly; the site-specificweb/packagesscope doesn't exist yet and can be added in a follow-up if desired.Spec & plan
docs/superpowers/specs/2026-04-23-wheels-packages-phase4-site-design.mddocs/superpowers/plans/2026-04-23-wheels-packages-phase4-site.mdRefs #2271, #2243