Repository navigation
PinZheng(release): promote dev to main — CodeQL entity fix, wall overflow, template a11y - #396
Conversation
Adds a `blog` collection (defineCollections + author/date frontmatter) alongside the existing docs collection, a flat `/blog/[slug]` post route and `/blog` index card grid styled to the shadcn + emerald brand, RootProvider/SiteHeader layout, and Blog nav links. Seeds two real posts bylined Ducksss: a friendly "Hello" welcome and an "Anatomy of an install" deep-dive. zod is promoted to a direct devDependency (4.4.3, the version fumadocs-core already resolves) so the blog frontmatter schema can extend pageSchema. The blog is independent of the docs llms.txt/geo contract. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Summary: - Bump TypeScript from 5.7.3 to 5.9.3 and refresh pnpm lock. - Bump registry verification failure artifact uploads to v7. Rationale: - Keep Dependabot maintenance updates on dev with a small scoped diff. - Next is already at 16.2.6 on dev, so no package diff was needed. Tests: - pnpm install --frozen-lockfile - pnpm build - E2E_PORT=3100 pnpm test:release (fails locally: e2e route sweep timeout and Darwin homepage snapshot delta; lint, source build, typecheck, registry check, and integration tests passed before e2e) - E2E_PORT=3100 pnpm exec cross-env NODE_OPTIONS="--no-deprecation --import=tsx/esm" playwright test --config=playwright.config.ts tests/e2e/frontend.e2e.spec.ts -g "landing page keeps its desktop and mobile visual contract" (fails locally: same Darwin snapshot delta)
Import the tailark "faqs" category as Payload Components, adapted to the site's light/emerald token system. Ships 6 distinct structural variants — faq-accordion, faq-split, faq-card, faq-icons, faq-grouped, faq-grid — each with source config + Component, manifest, registry entry, docs page, and demo twin. Shared family code: faqFields.ts and faqIcons.ts (icon-name select → lucide map, mirroring the Content family's contentIcons pattern). Activates the previously-empty `faq` catalog category, registers the FAQ docs sidebar family, and bumps the page-block count 38 → 44 (copy + guard). Adds `accordion` to the public shadcn dependency allowlist so the accordion variants pass the registry import-derivation test. Co-authored-by: Claude Opus 4.8 <[email protected]>
Summary: - Replace public alpha labels with neutral open-source and MIT copy. - Rename the internal alpha component template to component-template. - Refresh homepage screenshots for the visible copy changes. Rationale: - The site, CLI, docs, and package metadata should not present the project as alpha. - The template rename prevents future component docs from reintroducing alpha language. Tests: - rg -n -i "\\balpha\\b|alpha-" --glob '!node_modules/**' --glob '!public/r/**' --glob '!.next/**' --glob '!test-results/**' - git diff --check - pnpm lint - pnpm exec tsc --noEmit - pnpm run test:int - pnpm run test:e2e - pnpm test:registry - pnpm build
Summary: - Merge the alpha messaging cleanup on top of latest dev. - Resolve homepage snapshot conflicts against the current FAQ catalog state. - Remove newly introduced FAQ alpha status fields from component metadata. Rationale: - Dev should not expose public alpha labels in copy, CLI output, docs, metadata, or internal templates. - Regenerated snapshots reflect the merged landing page rather than either side of the binary conflict. Tests: - pnpm test:release
Make the @payload-components registry submission-ready for the official shadcn registry directory — all 44 items, including the FAQ family merged from dev. - Replace the <your-domain> placeholder with https://www.payload-components.xyz across every item's docs URL; point registry.json homepage at the live site. - Add a registry:validate gate (ajv + vendored shadcn draft-07 schemas) folded into test:registry, since [email protected] has no validate command. - Document the @payload-components namespace install path in the install/registry docs and README. - Stage the shadcn-ui/ui directory entry + submission steps in AGENTS.md. Verified locally: registry reproducible + schema-valid (44 items), lint, tsc, test:int (68 passed). Landed via admin merge (dev's review gate is unsatisfiable for the sole owner; the Registry Verification workflow startup-fails repo-wide and Vercel was rate-limited). Co-Authored-By: Claude Opus 4.8 <[email protected]>
Summary: - Rework the README around open-source SaaS-style positioning. - Add the existing social card, contributor links, and community framing. - Split consumer install guidance from local repository setup. Rationale: - The README is the front door for contributors and early adopters. - Keeping the content MIT-first and community-first avoids stale commercial framing while making the install contract easier to scan. Tests: - pnpm lint - git diff --check -- README.md - curl -fsSI https://www.payload-components.xyz/opengraph-image - rg stale commercial framing scan
Summary: - Update FAQ registry, manifest, and installed Payload labels to use the proper acronym capitalization. - Add the new FAQ slugs to CLI help and correct the blog component count. - Clip page-level horizontal overflow and refresh the stale Linux landing desktop screenshot baseline. - Document why TypeScript remains pinned to 5.x until the tsconfck peer range supports TypeScript 6. Rationale: - The PR was fast-forwardable but blocked by release-gate visual and overflow failures plus review metadata drift. - Keeping TypeScript 5.x avoids shipping an unmet peer dependency from vite-tsconfig-paths through tsconfck. Tests: - pnpm test:release
Summary: - Replace the stale Linux mobile landing screenshot baseline with the release-gate actual image from PR #152. Rationale: - The Linux mobile baseline was still taller than the current rendered landing page, matching the same stale-baseline issue fixed for desktop. - The actual image was stable across CI retries. Tests: - pnpm test:release - verified CI artifact actual image was stable across retries
…ift (#153) * repo(chore): close CI visual-regression gap and clear review bloat/drift Repo review follow-ups (no behavior change to the shipped site or CLI): - CI visual gap: the components-visual suite silently skipped on every CI run (only darwin baselines existed; CI is linux). Add a visual-baselines workflow_dispatch that mints per-platform baselines in the CI renderer and opens a PR, plus a coverage guard that fails loudly once a platform is minted but a component lacks a baseline (instead of silently skipping). - Drop 3 dead pnpm.overrides (dompurify, drizzle-orm, uuid): Payload-runtime residue with no package in the lockfile. - Remove the unreachable layout='stack' branch in ComponentFamilyHeader. - Derive the not-found 'Known components' list from componentEntries. - Guard componentFamilies.posts.countLabel (the one unguarded catalog count). - Hoist the duplicated baseManifest into a dependency-free manifest-factory module (the two copies had drifted; import-light so it can't defeat the manifest spec's mock). Co-Authored-By: Claude Opus 4.8 <[email protected]> * ci(fix): restore actions/upload-artifact@v4 (v7 doesn't exist) PR #146 bumped upload-artifact v4→v7, but that major doesn't exist. An unresolvable action reference makes the workflow fail at startup (startup_failure, 0s), which has blocked every dev push and PR gate since that merge. Restore the known-good v4. Co-Authored-By: Claude Opus 4.8 <[email protected]> * Revert "ci(fix): restore actions/upload-artifact@v4 (v7 doesn't exist)" This reverts commit d1392ea. * test(ci): refresh stale linux landing baseline (desktop) The linux landing baselines went stale during the day the CI gate was down (broken allowlist): the family-teaser landing change shrank the page, the darwin baseline was refreshed but linux never was. This restores the desktop linux baseline from the gate's own actual render; mobile follows. Co-Authored-By: Claude Opus 4.8 <[email protected]> * test(ci): refresh stale linux landing baseline (mobile) Companion to the desktop refresh: restores the mobile linux landing baseline from the gate's own actual render (390x14444, matching the current darwin baseline). Both linux landing baselines now reflect the family-teaser landing. Co-Authored-By: Claude Opus 4.8 <[email protected]> --------- Co-authored-by: Claude Opus 4.8 <[email protected]>
The renderBlocks/pagesLayout patcher deduped on exact full lines while the verifier checked loose substrings, so the two could disagree. A consumer whose anchor region was reformatted (Prettier reflow, hand-edit, double quotes, no trailing comma) could slip past the writer's exact-line dedup — appending a duplicate object key / import — while the verifier still reported it present, so 'add' wrote a broken RenderBlocks.tsx and 'doctor' called it healthy. Give apply (dedup) and verify one shared structural matcher per fragment (tolerant of quote style, trailing semicolons, indentation, spacing) so they can't disagree. Adds a regression test that pre-seeds a reformatted registration and asserts apply doesn't duplicate it and verify reads it present. Co-authored-by: Claude Opus 4.8 <[email protected]>
…160) installedFiles was recorded in .payload-components/state.json but never read for any decision — add/doctor re-derive install validity from the manifest, so the stored copy was just a duplicate of manifest.files that could only drift. Remove it from the state entry type, the three record functions, the v1->v2 migration, normalizeState, and the install assertions/specs. Backward-compatible: normalizeState no longer reads the field, so existing v2 state files that still carry it load fine (the dead field is ignored on read). No state version bump. Co-authored-by: Claude Opus 4.8 <[email protected]>
) Ports tailark's MIT comparator category as comparator-table, comparator-grid, and comparator-stack — new comparator page-family, page-block count 44 to 47. Co-Authored-By: Claude Opus 4.8 <[email protected]>
…count (#172) * registry(fix): use canonical www URL for comparator install commands The Comparator family (#158) shipped its three registry-item docs with the literal https://<your-domain>/r/comparator-*.json placeholder, and its three MDX manual-install snippets used the bare apex https://payload-components.xyz (no www). Every other one of the 44 published items uses the canonical https://www.payload-components.xyz that #150/#155 standardized on; the placeholder is a copy-pasteable-but-broken install command and the bare apex is inconsistent. Replace both with https://www.payload-components.xyz in the three comparator entries of payload-components/registry.json and the three comparator docs pages. Source-only change; public/r/*.json is gitignored and rebuilt from this source by registry:build. Found during the dev->main promote review (PR #162). Co-Authored-By: Claude Opus 4.8 <[email protected]> * a11y(comparator): label state icons + table headers, refresh blog count - Add role="img" + aria-label ("Included"/"Not included") to the Check/Minus state icons in all three Comparator blocks so screen readers announce the yes/no meaning of each matrix cell (previously icon-only). - Add scope="col" to the ComparatorTable plan header cells. - Bump the (non-test-pinned) blog copy "About 44" -> "About 47" page blocks to match the count now installable after the Comparator family. Attribute-only on the block source (no className change), so the demo-twin class-mirror guard is unaffected and the visual baselines are unchanged; the blog count is prose, not a pinned assertion. Co-Authored-By: Claude Opus 4.8 <[email protected]> --------- Co-authored-by: Claude Opus 4.8 <[email protected]>
…163) Code-review remediation (P1 hardening + P2 trims + a11y gate): - a11y: add tests/e2e/a11y.e2e.spec.ts (axe-core WCAG 2.1 A/AA over /, /docs, /components; serious+critical). Fixes it surfaced: darken --muted-foreground 50%->46% (was 4.41:1, sub-AA), text-brand-600 on light-emerald catalog pills, raise reduced-opacity small labels to full opacity, logo placeholders /55->/70, tabIndex on scrollable code blocks. - cli: atomic state writes (temp+rename) + corrupt-state fallback in loadState; fix latent shared-defaultState mutation (createDefaultState factory). Add fragment-patching failure-mode tests. - ci: unify GitHub Action versions across workflows; main-only push gate; add fast-fail quick-checks (lint+tsc) job. Co-authored-by: Claude Opus 4.8 <[email protected]>
…159) * components(feat): add testimonials family (6 tailark-derived blocks) Imports the distinct testimonial layouts from tailark/blocks (MIT), re-implemented as wired Payload blocks in this repo's idiom (Media avatars, editable fields, light tokens): testimonials-quote, -spotlight, -grid, -rating, -bento, -wall. Full contract each — source, manifest, registry entry, demo twin, docs — plus catalog, count (38->44), family-teaser, and enumeration wiring. Co-Authored-By: Claude Opus 4.8 <[email protected]> * test(ci): raise e2e dev-server heap to clear route-loop OOM The frontend route-loop (frontend.e2e:159) visits every component doc page against `next dev`; at 50 routes the dev server hit its memory threshold and restarted mid-test (ERR_CONNECTION_RESET on the last routes), failing the linux release gate even through retries:2. Bump --max-old-space-size to 8192 for the dev server so it doesn't restart while compiling all routes in one pass. Co-Authored-By: Claude Opus 4.8 <[email protected]> * test(chore): mint darwin landing baseline for testimonials teaser Co-Authored-By: Claude Opus 4.8 <[email protected]> * test(ci): mint linux landing baseline for testimonials teaser Rendered on the ubuntu gate via the visual-baselines workflow so the landing visual test compares (not fails) on the linux release gate. Co-Authored-By: Claude Opus 4.8 <[email protected]> * test(ci): raise e2e dev-server heap to 12GB for the 53-route loop 8192MB held at 50 routes but the dev server still hit its memory threshold and restarted at 53 (faq+comparator+testimonials), resetting mid-route-loop. Give real headroom on the 16GB CI runner. Co-Authored-By: Claude Opus 4.8 <[email protected]> --------- Co-authored-by: Claude Opus 4.8 <[email protected]>
Serves /google44d8f9f26e2e2367.html for the new GSC property, alongside the existing googleda94848bf7de62aa.html and BingSiteAuth.xml. Co-authored-by: Claude Opus 4.8 <[email protected]>
…#181) * catalog(chore): reorder /components to showcase best components first Lead the catalog with the most-wanted, most visually striking blocks. Categories now rank landing-page essentials first: Hero, Features, Comparator (pricing), Call to action, then social proof (Integration, Logo cloud, Testimonials), then FAQ, then the deep Content set, trailing Team and Embed. Within each category the showpiece variant (per familyRepresentatives) leads. Applied consistently across the wall + sidebar (componentEntries, componentCategories) and the docs nav (FAMILIES); the landing teaser inherits componentCategories order automatically. Pure data reorder of all 53 page blocks — no schema/logic change. Fixes the prior wall/sidebar disagreement, surfaces Comparator (was last) and Testimonials, and de-emphasizes the single-purpose Embed (was 3rd). Co-Authored-By: Claude Opus 4.8 <[email protected]> * test(chore): mint Linux visual baselines (frontend) --------- Co-authored-by: Claude Opus 4.8 <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Applies the genuinely-new increments from the four Dependabot PRs (#167-#170) directly on dev, the integration branch, since merging them into main would be reverted by the next dev->main promote. - actions/checkout v6 -> v7 across all workflows (lockstep, allowlist admits v7) - cross-env ^7.0.3 -> ^10.1.0 (minimal lockfile delta: +@epic-web/invariant) setup-node@v6 and pnpm/action-setup@v6 (#168, #169) were already on dev, so those PRs are redundant. Also points Dependabot at dev (target-branch) so future bumps land on the integration branch instead of main. Co-authored-by: Claude Opus 4.8 <[email protected]>
Resolves all six open Dependabot security alerts (undici < 7.28.0): - CVE-2026-6734, CVE-2026-9697 (high) - CVE-2026-9679, CVE-2026-9678 (medium) - CVE-2026-11525, CVE-2026-6733 (low) undici is an optional transitive of the jsdom/test chain; the parent range already admits 7.28.0, so a plain re-resolve picks it up (no override needed). The sibling bumps are all within that same optional cluster. Co-authored-by: Claude Opus 4.8 <[email protected]>
Lands @highoncomputers' #173 onto dev. Resolves #138. Co-authored-by: highoncomputers <[email protected]>
Print stage-specific recovery guidance when `payload-components add` fails mid-install, a "retrying partial install" notice when re-running a partial entry, and owned/patched file detail in `payload-components doctor`. Docs in both READMEs cover fix-and-retry without deleting patched host files. Rebuilds the intent of #94 on the current install-state model: owned files come from `manifest.files` and patched files from the existing patchedFiles var / `entry.patchedFiles` (the `installedFiles` field #94 relied on was removed from the state model). Co-authored-by: Claude Opus 4.8 <[email protected]>
Clarify that `payload-components init` delegates to `shadcn init` to create the `components.json` baseline, and that `payload-components add` expects that baseline and does not run init automatically as a side effect. Lands the docs fix from #165 with authorship preserved for @tysoul574-spec. Closes #104 Co-Authored-By: Claude Opus 4.8 <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…190) * frontend(feat): redesign logo as terminal prompt + block-cursor mark Replace the bare > glyph with a geometric prompt chevron + block cursor, drawn as a real SVG so the header, favicon, and OG image share one mark. Retires the Payload-CMS-style favicon. Co-Authored-By: Claude Opus 4.8 <[email protected]> * test(chore): mint Linux visual baselines (frontend.e2e) (#189) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --------- Co-authored-by: Claude Opus 4.8 <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Fills the previously-empty Pricing catalog family with five field-driven Payload blocks, retokenized from tailark/blocks (MIT) onto the light monochrome + emerald system: pricing-cards (showpiece), pricing-cards-muted, pricing-cards-cta, pricing-split, and pricing-enterprise (editable Media logo wall). Shared pricingFields/planFields keep the family from drifting. Wires the full add-a-family contract against current dev (58 page blocks): 5 block sources + shared fields, 5 manifests, 5 registry.json items (registryDeps matched to imports), 5 class-mirrored demo twins + demo content, catalog entries inserted at the curated rank (after Comparator), FAMILIES docs-nav entry, count pins (53->58) across site.ts/about/tests, cli + smoke lists, and 5 docs pages with tailark MIT attribution. Co-authored-by: Claude Opus 4.8 <[email protected]>
…#193) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…split highlight (#194) Three polish fixes from the pricing-family code review. All visually neutral, so the just-minted (#193) Linux baselines stay valid. - PricingEnterprise: validate the logo `href` so non-http(s) values (e.g. a `javascript:` payload) are rejected. Inlined rather than reusing shared/safeUrls — the embed/form validators there would wrongly reject arbitrary customer URLs. - Mark the decorative feature-list `<Check>` icons aria-hidden across all five variants so screen readers don't announce them. - PricingSplit: derive the highlighted (right) plan from the `featured` flag instead of hard-coding plans[1], so marking either plan featured works. Mirrored in the PricingSplitDemo twin. Co-authored-by: Claude Opus 4.8 <[email protected]>
Add stable edge cache headers for crawl metadata and tighten sitemap coverage.
* docs: refresh ROADMAP.md to match current catalog count and remove stale references (#128) Updates the stale '38 installable page blocks' count to '53 page blocks across 11 families, with 8 post components in development'. Removes the 'waitlist funnel' reference from the Not Planned section since the waitlist was removed. Adds a note about analytics collection. Closes #128 * docs(roadmap): fix stale counts and broken analytics link - 53 -> 58 installable page blocks (registry.json ships 58; matches site copy) - 11 -> 12 families (pricing family already shipped via #191) - drop link to non-existent content/docs/analytics.mdx - restore "waitlist funnel" to Not Planned (still a documented non-goal) Co-Authored-By: Claude Opus 4.8 <[email protected]> --------- Co-authored-by: highoncomputers <[email protected]> Co-authored-by: Chai Pin Zheng <[email protected]> Co-authored-by: Claude Opus 4.8 <[email protected]>
Two SEO PRs landed overlapping entries in the /llms.txt "Primary links" section: a hardcoded /blog + /blog/rss.xml pair and a blogRoute/feedRoute pair, so Blog was emitted twice. Keep the constant-based form, derive the RSS link from blogRoute too, and order the section so the blog surfaces sit together after Template concepts. Emitted output is unchanged apart from the removed duplicate, so the geo e2e pins still hold; the blog-platform int spec pins the route source strings, so it moves to the constant-based literals. Co-authored-by: Claude <[email protected]>
…Label (#360) * components(feat): give stats-proof and content-quote an optional logoLabel The stats-proof and content-quote demo twins hard-coded a customer-logo stand-in — a literal NORTHWIND wordmark and an h-6 w-20 grey bar — where the installable block takes a Media upload. Every template concept that composed stats-proof therefore had to attribute its proof quote to Northwind regardless of its own client fiction, or hide the wordmark from its scoped theme. Both blocks now take an optional `logoLabel` text field that renders when no `logo` upload is set, so the wordmark is editor content on both sides of the demo-twin contract: - source config + Component for StatsProof and ContentQuote - the mirrored twins and the demo-content types - the Content model tables on both doc pages - manifests bumped 0.1.0 -> 0.2.0 (additive optional field), with content-quote's componentEntries version now read from the manifest instead of a hand-kept literal Template concepts supply their own client names and drop the theme-level workarounds: agency-studio's visible mismatch is fixed (HOLLIS & CRANE, matching the quote it attributes), commerce-brand names the café, fintech-trust badges INITECH, saas-launch FERROWATT. portfolio-solo and event-conference's blind-review section simply omit the field, which removes portfolio-solo's display:none rule, fintech-trust's grey-bar restyle, and commerce-brand's sliver-bar rule. Darwin baselines re-minted for the 15 renders the change actually moves; revisions bumped on the five templates whose output changed. Posters are viewport-only captures and are unaffected (verified by recapture). Co-Authored-By: Claude Opus 5 <[email protected]> * ci(chore): let visual-baselines choose the snapshot update mode A bare `--update-snapshots` presets to Playwright's "changed", which only rewrites baselines whose diff exceeded maxDiffPixelRatio. An intended visual change that lands under the tolerance therefore keeps a stale committed baseline. Add an `update` input (default `changed`, so existing dispatches behave exactly as before) so a deliberately visual change can mint with `all`. Co-Authored-By: Claude Opus 5 <[email protected]> * test(chore): mint Linux visual baselines for the logoLabel change Cherry-picked from the visual-baselines workflow run so the linux set matches the darwin set exactly: the content-quote component preview plus the fourteen template pages the change moves. The workflow's full `update=all` output also rewrote 57 unrelated component baselines — the linux runner drifts against its own committed images the same way darwin does — so only the fifteen this change actually affects are taken here. Co-Authored-By: Claude Opus 5 <[email protected]> * templates(fix): re-bump revisions absorbed by the rebase onto dev dev bumped saas-launch/agency-studio to revision 4 and commerce-brand to 3 independently (#358), landing on the same values this branch had chosen, so git auto-merged the identical lines and silently swallowed this change's bump. Re-bump to 5/5/4 and re-mint saas-launch-product, whose baseline now also has to carry dev's new inner-page hero. Co-Authored-By: Claude Opus 5 <[email protected]> * test(chore): re-mint saas-launch-product Linux baselines after the rebase These two were minted before rebasing onto dev's new inner-page hero (#358), so they carried the old hero. Re-minted on the CI renderer; the run rewrote only these two files, confirming the rest of the Linux template set already reproduces exactly. Co-Authored-By: Claude Opus 5 <[email protected]> --------- Co-authored-by: Claude Opus 5 <[email protected]>
* test: re-mint the darwin blog-index visual baselines 35e92c6 ("blog: turn the index into a Payload guide gateway", #348) redesigned /blog but its snapshot update only refreshed the linux baselines, so the darwin pair kept the pre-redesign rendering. CI is linux, so pr-gate stayed green while local macOS `pnpm test:release` failed both blog-index cases (~35% pixel diff on desktop). Re-minted with `--update-snapshots=changed` against the production server, so only the two mismatching darwin files were rewritten — the blog-article baselines and every `*-linux.png` are untouched. Verified the new PNGs depict the current guide-gateway index (eyebrow, dark installation card, two guide cards) and that the suite passes clean. Co-Authored-By: Claude Opus 5 <[email protected]> * test: share the platform-baseline guards across the visual specs components-visual, templates-visual, and blog-visual each carried their own copy of the same dance: derive the `-<project>-<platform>.png` suffix, treat `all`/`changed` as updating, skip a case whose current-platform baseline is absent, and fail the coverage guard once the platform is minted. Three copies, three slightly different messages, and the shared rationale duplicated in three header comments. Extract `expectCompletePlatformBaselines` and `skipWithoutPlatformBaseline` into tests/e2e/support/visual-baselines.ts and give each spec a `VisualBaselines` descriptor instead. Behaviour is unchanged: blog keeps its `requireMinted` escalation (linux CI must fail rather than skip an empty baseline set), and the other two keep skipping. Each spec now derives its screenshot name and its guarded stem from one `baselineStem` helper, so the name the guard checks can't drift from the name Playwright writes. The helper's doc comment also records what neither guard can catch — a baseline that exists but is stale, which is how the blog index kept a pre-redesign darwin image through a green pr-gate. Two knock-on updates: - tests/int/blog-visual-system.int.spec.ts pinned the old inline `requiresMintedBaselines` line. Re-pinned to both halves of the moved behaviour (the spec declaring `requireMinted`, the helper acting on it) rather than dropped. - The Field Journal figure for visual-regression-component-registry embeds a live 14-line excerpt of components-visual, so it was regenerated with `pnpm blog:visuals:figures`. Only the hidden data-evidence attribute moved; the visible figure and the article prose are unchanged, and the other 26 figures regenerated byte-identically. Verified: lint, tsc, test:int (341 passed), and all three visual specs (69 + 62 + 5 passed, same counts as before). Also forced the missing- baseline path by holding one PNG back — the coverage guard failed naming the stem and the affected case skipped, so the guards still guard. Co-Authored-By: Claude Opus 5 <[email protected]> * docs: require paired darwin/linux baseline mints Nothing in CI can catch a half-minted visual change: the specs' coverage guard fails on a missing baseline but never a stale one, and pr-gate only renders linux. A linux-only mint therefore leaves the darwin image showing the old design — green on every PR, failing only for whoever next runs the gate on a Mac (exactly what 35e92c6 did to the blog index). Add a "Visual baselines" section to CONTRIBUTING.md stating the rule, how to mint each platform, and the reviewer heuristic: a diff touching `*-chromium-linux.png` without the matching `*-chromium-darwin.png` (or vice versa) is suspect. Add the paired update to the pull-request checklist. Co-Authored-By: Claude Opus 5 <[email protected]> --------- Co-authored-by: Claude Opus 5 <[email protected]>
* docs(feat): announce the templates gallery Summary: - publish a community-first field note for the six template concepts - add a branded cover and real gallery/live-preview montage - extend blog content, visual, RSS, and browser contracts to 33 posts - support slug-scoped visual capture for reproducible editorial assets Rationale: - explain what the new template concepts provide without implying that complete repositories are installable today - connect complete page compositions to open registry blocks and invite evidence from real Payload projects - let one new visual be regenerated without rebuilding unrelated figures Tests: - pnpm test:release - pnpm blog:visuals --slug templates-are-here - pnpm lint - pnpm exec tsc --noEmit - pnpm exec vitest run --config ./vitest.config.mts tests/int/blog-content.int.spec.ts tests/int/blog-visual-system.int.spec.ts * docs(fix): resolve templates announcement review findings Summary: - align the article alt text and validation claim with shipped behavior - label the template montage as Project Notes and guard series alignment - scope raster captures to selected articles that own capture recipes - preserve all-capture CLI behavior while allowing an empty selection Rationale: - keep accessibility and visual metadata truthful - prevent SVG-only and mixed visual renders from failing on missing raster capture definitions - encode review findings as regression coverage before merge Tests: - pnpm test:release - pnpm blog:visuals --slug hello - pnpm blog:visuals --slug templates-are-here
…#372) * privacy(feat): gate all third-party analytics behind explicit consent Closes the gap the PR audit left open: GA4, Vercel Analytics/Speed Insights and PostHog all loaded on first paint, so an EU visitor had GA4 cookies set before any interaction. Honouring GPC/DNT (shipped in #352) narrowed that but could not close it, because GA4 was mounted regardless. AnalyticsShell now renders nothing until consent is 'granted'. On a first visit there is no GA4 script, no Vercel bundle, no PostHog beacon and no stored identifier. State lives in src/lib/consent.ts under `pc_consent`; ConsentBanner collects the choice and /privacy documents the stack and can withdraw it. Three things worth calling out: - A browser privacy signal is a decision, not a prompt. GPC (binding under the CCPA) or DNT resolves to 'denied' and the banner never renders. - Withdrawal reloads. Unmounting AnalyticsShell does not unload a third party that is already running — gtag stays initialised on window and keeps collecting — so setConsent reloads on granted -> denied. It also clears pc_distinct_id, so opting out erases the identifier instead of freezing it. This was caught by the e2e spec, not by review. - The banner is fixed-positioned, so it costs no layout shift on the landing page's LCP content. Testing: specs that assert on analytics or capture visual baselines grant consent up-front via tests/e2e/consent.ts, which keeps the banner out of every snapshot — only the two landing baselines changed, and only because /privacy was added to the footer. The axe suites deliberately run without consent, so the banner is held to the same a11y bar as the rest of the site. Verified: lint clean, tsc clean, 341 int tests, and e2e — consent 6/6, a11y 10/10, frontend 39/39, templates 60/60, templates-visual 62/62, components-visual 69/69, blog 5/5, geo 13/13. blog-index visual baselines fail identically on clean origin/dev (stale darwin snapshots, unrelated to this change). Co-Authored-By: Claude Opus 5 <[email protected]> * test(chore): mint Linux visual baselines (frontend) (#373) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * privacy(fix): erase the identifier on a privacy signal and reload other tabs Both found by CodeRabbit on #372 — the first substantive AI review this repo has had on a dev-targeted PR since .coderabbit.yaml listed `dev` as a base branch. resolveConsent() returned 'denied' for a GPC/DNT visitor without clearing a pc_distinct_id that an earlier opt-in may have stored. It was never sent while denied, but it survived to re-link the visitor to their previous identity if they later opted back in. A signal is now treated exactly like an explicit withdrawal. subscribeToConsent() notified React on a cross-tab change but never reloaded. That is the same defect the reload in setConsent exists to prevent, one tab over: a tab that already mounted GA4 keeps gtag initialised on window and keeps collecting, because unmounting AnalyticsShell cannot unload it. A withdrawal elsewhere now tears this tab down too. Both are covered by new specs that fail without the fix: a privacy signal arriving after an opt-in must leave no identifier, and withdrawing in one tab must strip the Google tag from a second tab that already had it. Verified: lint clean, tsc clean, 341 int tests, consent e2e 8/8. Co-Authored-By: Claude Opus 5 <[email protected]> --------- Co-authored-by: Claude Opus 5 <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Bumps the next-react group with 4 updates: [eslint-config-next](https://github.com/vercel/next.js/tree/HEAD/packages/eslint-config-next), [next](https://github.com/vercel/next.js), [react](https://github.com/react/react/tree/HEAD/packages/react) and [react-dom](https://github.com/react/react/tree/HEAD/packages/react-dom). Updates `eslint-config-next` from 16.2.10 to 16.2.12 - [Release notes](https://github.com/vercel/next.js/releases) - [Commits](https://github.com/vercel/next.js/commits/v16.2.12/packages/eslint-config-next) Updates `next` from 16.2.11 to 16.2.12 - [Release notes](https://github.com/vercel/next.js/releases) - [Commits](vercel/next.js@v16.2.11...v16.2.12) Updates `react` from 19.2.7 to 19.2.8 - [Release notes](https://github.com/react/react/releases) - [Changelog](https://github.com/react/react/blob/main/CHANGELOG.md) - [Commits](https://github.com/react/react/commits/v19.2.8/packages/react) Updates `react-dom` from 19.2.7 to 19.2.8 - [Release notes](https://github.com/react/react/releases) - [Changelog](https://github.com/react/react/blob/main/CHANGELOG.md) - [Commits](https://github.com/react/react/commits/v19.2.8/packages/react-dom) --- updated-dependencies: - dependency-name: eslint-config-next dependency-version: 16.2.12 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: next-react - dependency-name: next dependency-version: 16.2.12 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: next-react - dependency-name: react dependency-version: 19.2.8 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: next-react - dependency-name: react-dom dependency-version: 19.2.8 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: next-react ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Dependabot opened the same bump as #371, but that PR targets `main` while `dev` still pinned 8.5.14. Landing it only on main would have been undone the moment dev was promoted — the 120-commit promote would carry 8.5.14 back over the fix and silently reopen the advisory. Bumps both the pnpm override and the devDependency; the override is the part that matters, since postcss also arrives transitively and the pin is what hoists the whole tree. Lockfile now resolves a single postcss 8.5.18. Verified: lint clean, tsc clean, 343 int tests passing. Co-authored-by: Claude Opus 5 <[email protected]>
Two of the four findings on #375 were worth taking: - components-visual and templates-visual did not opt into the linux-CI `requireMinted` hardening that blog-visual carries. The rationale is the same for all three — linux is the gate's renderer, so a CI run that finds zero baselines is a real defect, not a not-yet state, and should fail loudly instead of skipping the whole suite green. No behaviour change today (both suites have linux baselines) or on darwin, where the flag is false. - The `logoLabel` field description read "Both empty renders no logo", which parses badly for editors reading the admin UI. Reworded to "If both are empty, no logo is rendered." in both component doc pages. Skipped the fourth (tools/blog/render-visuals.ts full-catalog validation vs selective `--slug` rendering): real but narrow — it only bites when a partial render is pointed at a fresh BLOG_VISUAL_OUTPUT_ROOT, since the default root already holds all 67 committed assets. Relaxing `validateBlogVisualAssets` would weaken the inventory gate that keeps the committed asset set exact, which is a worse trade mid-release. Verified: lint, tsc, test:int (343 passed). Co-authored-by: Claude Opus 5 <[email protected]>
- add a ledger-driven attribution lint: every row in PROVENANCE.md's 'Derived components (attributed)' table must carry the tailark source comment in its shipped Component.tsx and the docs-footer credit - wait for document.fonts.ready before the route-walk's one-shot horizontal-overflow measurement (domcontentloaded can fire before webfonts settle final layout widths) - make the testimonials-rating provenance row mechanically auditable by naming its parent derivation (via testimonials-grid) - drop the orphaned 'Hero CTA effect palette' comment in globals.css; the tokens it described were removed with the hero shine effect Co-authored-by: Claude Fable 5 <[email protected]>
* feat(landing): component wall hero + motion.dev choreography across the page Replaces the hero's single-component install replay with the catalog itself: three rows of the real demo twins drifting past at different speeds. A hero has one job, and for a registry that job is range — one block installing proves the CLI, sixty blocks alive prove the product. The replay is not lost; it moves to the workflow section, where 'run the command' is literally step one and the transcript answers it. Motion: - motion.dev now owns the landing's scroll choreography (Reveal / RevealStagger / RevealItem), replacing the CSS animation-timeline reveal-on-scroll, which is now removed. - The wall's drift is a motion value rather than a keyframe because it has to pause: off-screen it does no work at all, and hovering a row holds it still so a visitor can read a block. - Entrances that gate first paint stay CSS. A motion `initial` ships as inline opacity:0 in the SSR HTML, so putting the LCP headline (or the wall itself) behind hydration would cost real Core Web Vitals for no visual gain. - Reduced motion pins every final frame before hydration via a CSS net, so the reduced-motion visual contract and no-JS renders stay whole. Co-Authored-By: Claude Opus 5 <[email protected]> * refine(landing): make the wall read as craft, not as a grid of screenshots The first pass was functional but rushed. Four things fixed, each measured rather than eyeballed: - Every card was guillotined mid-sentence. Worse, cropping each twin to its top third meant every card showed the SAME anatomy (eyebrow → headline → paragraph), so a wall built to prove range read as repetition. Measured all 67 twins at the wall's layout width and curated to the 18 that render complete at ~150-212px, so a pricing table, an orbit diagram and a testimonial grid are visibly different objects. - Each twin was wrapped in a bordered card while already drawing its own frame. The doubled edge is what made the rows look like screenshots in widgets; the block is now the card, with the label as a caption outside it. - The 11px mono label out-sized the headline of the block it labelled. Chrome louder than content is the thing that reads as unfinished. - Drift ran at ~150px/s, which is a carousel in a hurry rather than a wall. Now ~48px/s. Also: cards size to their content instead of sitting in fixed boxes with dead space, edges dissolve via a real alpha mask (opaque overlays seamed against the emerald hero wash), and shadow-frame replaces a 1px hairline that read as a wireframe at this scale. Co-Authored-By: Claude Opus 5 <[email protected]> * fix(landing): keep revealed sections visible when scripting never runs Self-review of the motion migration turned up a real regression: motion reveals ship their hidden `initial` state as inline opacity:0 in the SSR HTML and are only released on hydration, so with JavaScript disabled — or if the bundle simply fails to arrive — all 21 revealed elements stayed invisible and the whole landing page below the hero rendered blank. Verified with Playwright (javaScriptEnabled: false): 21/21 hidden before, 0/21 after. The CSS reveal this replaced degraded gracefully, so this was a regression, not a pre-existing limit. A <noscript> style net pins the finished frame in exactly that case and is inert whenever scripting works. Also from the review pass: - RevealItem now documents that it is inert outside a RevealStagger (it has no trigger of its own by design — giving it one would destroy the stagger). - Dropped RevealStagger's unused delay prop and two dead class hooks. - HeroSection reads componentEntries directly instead of via a re-export. Co-Authored-By: Claude Opus 5 <[email protected]> * test(chore): mint Linux visual baselines (frontend) (#376) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * fix(ci): mint visual baselines in the same server mode the gate compares in visual-baselines.yml ran bare `pnpm test:e2e`, which starts `pnpm dev`, while release-gate runs `PLAYWRIGHT_SERVER_MODE=production` against `pnpm start`. A dev render is not pixel-identical to a production one, so every minted baseline was subtly wrong: the landing mobile baseline came out 1px taller than the gate's render, and a 1px page-height shift cascades into a whole-page diff far past maxDiffPixelRatio. Builds first and mints under production mode so a minted baseline is directly comparable to the gate's. Co-Authored-By: Claude Opus 5 <[email protected]> * fix(landing): make the wall's geometry deterministic for visual regression The release gate failed on a 1px mobile page-height difference that cascaded into a 3% whole-page pixel diff, well past the 1.5% tolerance. Two causes, both in the wall: - Card widths of 230/380 divided by the 0.3 zoom to fractional layout widths (766.67/1266.67). Sub-pixel text layout at a fractional width let the rendered card height flip by 1px between otherwise identical runs. 231/330/384 give integer layout widths (770/1100/1280). - Cards sized to their content, so the wall's height — and therefore the ~17,000px of mobile page below it — depended on how each twin happened to wrap. The box is fixed per breakpoint now and centres its content, so page height is structurally independent of card contents. Verified with 6 consecutive production-mode runs: desktop 10027px and mobile 16847px, identical every time. Co-Authored-By: Claude Opus 5 <[email protected]> * test(chore): mint Linux visual baselines (frontend) (#379) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * test(chore): re-mint darwin landing baselines after rebasing onto dev dev's content-quote logoLabel change (#360) alters a twin the wall renders, so the landing page is 34px taller than the pre-rebase baselines recorded. Co-Authored-By: Claude Opus 5 <[email protected]> * test(chore): mint Linux visual baselines (frontend) (#385) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --------- Co-authored-by: Claude Opus 5 <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…re, trade (#382) * feat(templates): freeze contract for four new verticals nonprofit-cause (Rivermouth Trust), education-course (Northfield School), healthcare-clinic (Alder Practice), trade-service (Halloran & Sons). Extends TemplateCategory + labels, adds frozen five-page recipes over existing twins, shells, scoped theme scaffolds, and provenance stubs. Gallery copy generalized rather than enumerating ten verticals. Co-Authored-By: Claude Opus 5 <[email protected]> * feat(templates): Alder healthcare-clinic art direction Builds out the healthcare-clinic concept as "Alder Practice", a fictional family clinic: the calmest, plainest, and most readable site in the gallery, written for someone who is unwell, worried, or in a hurry. Register — the useful thing goes first (when we are open, how to be seen, what happens next), sentences are short, and there is no growth-marketing voice, no superlative, and no urgency device anywhere. Accessibility is the art direction, not a pass at the end. Body copy runs at 17px on a trimmed measure with 1.8 line-height; every text pairing on the concept measures WCAG AAA from rendered sRGB (worst case 8.73:1 against a 4.5:1 floor); actions and form fields are 48px targets and field borders clear the 3:1 non-text threshold; the twins' hover-only clinician role labels are pinned visible; and eyebrows drop the catalog's uppercase pill for sentence-case with an alder dot. Visually: soft alder green and sky over warm white, and — uniquely in this gallery — no inverted band anywhere. One breath of alder or sky per band, hairlines instead of cards, and every backend-free image plate repainted as an arched window of daylight mixed from the theme tokens, so nothing reads as a missing photograph. No raster assets at all. Nothing in the shell moves: a clinic should feel still, and a static header and footer are always complete in a capture. Two section swaps against the frozen skeleton, both preserving the page's job: - Home "proof": stats-proof -> feature-steps. stats-proof would have printed clinic metrics beside a hardcoded third-party wordmark, reading as an insurer or health-service affiliation and as authoritative outcome data — both banned. feature-steps proves the same thing the way a clinic honestly can. - Services: the pathways rows now precede the care grid, so "which kind of appointment" lands before the list of services. Safety rules held: nothing reads as medical advice or as a health claim a patient could act on; no registration number, regulator, insurer, or health-service affiliation is invented and there are no outcome statistics; emergency guidance is generic ("contact your local emergency number") in all five places it appears; the telephone number uses the fictional 555 convention and the email the reserved .example TLD; and the footer states on every page that the practice is invented and that nothing here is medical advice. Verified: tsc and lint clean; the three int specs pass except the four expected "generated poster" assertions; all five pages captured at 1280/768/390 in both motion and reduced-motion with zero horizontal overflow and zero console errors; axe-core (wcag2a/2aa/21a/21aa) reports zero violations of ANY impact on all five pages plus the mobile sheet open; all 32 sections reach their final state under normal motion; and the mobile disclosure contract (48px trigger, aria-expanded, aria-controls, Escape closes and returns focus, 56px rows) passes on every page. Co-Authored-By: Claude Opus 5 <[email protected]> * feat(templates): Rivermouth nonprofit-cause art direction Rivermouth Trust — a fictional river trust mending nine miles of the invented River Corrow. The one register the gallery was missing: the ask is give and volunteer, and the persuasion is published monitoring rather than promises. - bespoke copy across all five pages, place-led and specific (named reaches, species, the First Saturday work party); every name and figure invented, with no charity number, regulator, or real partner anywhere - Donate names four giving paths and prices them in river work — the trust states outright that it does not publish suggested amounts, so the no-currency guard becomes the page's most honest line - scoped theme: oat paper, silt ink, one river-green accent; the signature is a stratified landscape plate (mist, crown line, converging bank wedges, deepening water) parameterised by --rv-horizon/--rv-shore, so sections get their own view of the same river with no raster assets - impact numerals carry the display weight: tabular figures under a two-pixel river rule, in place of any serif voice - new RivermouthHeader: gauge band over a sticky paper header, staff-gauge mark, transform-only chrome entrances, keyboard-operable mobile disclosure (Escape closes and restores focus) - section swap: home partner strip logo-cloud-inline-wrap → logo-cloud-marquee, so the band under the letterbox drifts like the current it sits beneath Verified: tsc and lint clean; template-showcases/demo-twins/visual- standards green except the 4 expected "generated poster" assertions; all five pages captured at 1280/768/390 plus a reduced-motion pass with zero console errors, no horizontal overflow, and no serious/critical axe violations. Hero plate text was measured against its painted pixels rather than trusted to axe (which scores gradients "incomplete") — that caught the 11px eyebrow at 3.4:1 and drove the bottom-anchored scrim and the mobile crop. Co-Authored-By: Claude Opus 5 <[email protected]> * feat(templates): Northfield education-course art direction Northfield School — a fictional school of practical typography. The distinguishing feature is information architecture: nothing else in the gallery has a syllabus shape, so the recipe is restyled to read as one. feature-steps → the module ladder. The twin's 3-up card grid becomes one hairline-ruled column with a numeral gutter, a spine rule, and hanging-indent descriptions. content-rows → the lessons inside a module, counter-numbered with a portrait handout plate each. content-columns → the prerequisites, as a marked-up checklist. comparator-table → the three cohort options (schedule, pace, feedback), never feature tiers. Tone is the third structural device: base is plain chalk paper, muted is ruled worksheet paper carrying every sequential section, contrast is the chalkboard the figures are written up on. Ink on chalk with one highlighter. The accent is treated as a background rather than a foreground — behind an eyebrow, under a module numeral, washed through a table column, filling a checkbox — so every pairing is ink on yellow at 12.4:1 instead of yellow on paper at 1.3:1. Marks that must stand alone step down to an ochre that clears AA on all three light surfaces; on the board the highlighter becomes the ink at 11.5:1. No literal currency anywhere: the large pricing-card figure slot carries scope ("One module", "Six modules", "Two terms") set in monospace, and fees are described by how they are paid, never how much. The school awards nothing but its own certificate of completion, and says so. Section swap: curriculum faq-grouped → faq-accordion, so the grouped FAQ belongs to Enroll alone and the syllabus page does not close on two identical stacks. Shell: masthead over a term strip (six module ticks, the one in session marked), keyboard-operable mobile disclosure, and a chalkboard colophon. All shell motion is transform-only — an opacity entrance would composite the filled ink action toward chalk and transiently drop it below AA. Verified: tsc + lint clean; template-showcases / demo-twins / visual-standards int specs green except the four expected generated-poster assertions. All five pages captured at 1280/768/390 plus a reduced-motion pass that renders final state without scrolling; zero horizontal overflow, zero console errors, and axe (wcag2a/2aa/21a/21aa) reports zero serious or critical violations at 1280 and 390. The cohort matrix scrolls inside its own container at 390 (464px in a 340px scroller), never the page. Co-Authored-By: Claude Opus 5 <[email protected]> * feat(templates): Halloran trade-service art direction Halloran & Sons — a fictional second-generation heating and plumbing firm in the fictional town of Ashcombe. Deliberately the plainest concept in the gallery: built to be believed and phoned rather than admired. - bespoke Halloran content across all five pages (revision 1 -> 2), with a consistent fact ledger (Dermot's first van in 1991, sons Kieran and Sean, Bernadette on the phone, four engineers, three vans, six named coverage rings, 1,140 callouts and the nine that needed a second visit) - new shell chrome: a sticky masthead with a steel facts strip and a solid safety-orange call block at every width, a keyboard-operable mobile disclosure, and a footer whose call band prints the number at poster size - scoped theme: off-white paper, near-black steel, one safety orange; zero radius everywhere; heavy sans signage type; eyebrows become solid orange label bars; imagery is entirely token-derived (corrugated steel plates, a lit roller door, hazard chevrons round a van panel, a pressure gauge) - the hero's serif-italic closing word is neutralised to upright heavy sans under a painted orange rule — Instrument Serif reads far too refined for a plumber, so this concept ships no serif at all - safety orange is never type: it measures 2.38:1 on paper, so it is only ever a field, a rule or a glow, with --hs-rust (6.32:1) and --hs-amber (8.38:1) carrying any orange that has to be read - no currency amounts anywhere; rates are stated the way a tradesman says them out loud Section swaps, both away from a marketing register: the home client strip logo-cloud-marquee -> logo-cloud-inline-wrap (the hero already carries a marquee, and the strip cannot be an accreditation wall), and the Reviews contrast band stats-proof -> testimonials-spotlight (this trade has no metrics culture; the loudest moment on a reviews page should be a review). Verified: tsc and lint clean; template-showcases / demo-twins / visual-standards int specs green apart from the four expected missing-poster assertions; all five pages captured at 1280/768/390 in both motion modes with zero horizontal overflow, zero console errors, zero axe serious/critical (wcag2a/2aa/21a/21aa), and 39/39 contrast probes at or above AA. Co-Authored-By: Claude Opus 5 <[email protected]> * feat(templates): four new verticals — nonprofit, education, healthcare, trade Rivermouth Trust (watershed charity), Northfield School (typography), Alder Practice (family clinic), Halloran & Sons (heating and plumbing). Takes the gallery to ten concepts. Includes 60 captured posters and 100 darwin visual baselines. Co-Authored-By: Claude Opus 5 <[email protected]> * test(chore): mint Linux visual baselines (templates-visual) (#383) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * fix(templates): supply logoLabel on the new concepts' proof bands PR #360 made stats-proof/content-quote's customer wordmark an optional logoLabel and set it on the six concepts that existed at the time. The four new verticals were written before it landed, so their proof bands rendered with no attribution lockup despite naming the company in adjacent copy. Rivermouth credits the Northwind Catchment Partnership that spot-checks its monitoring; Halloran credits Northwind Lettings. Alder deliberately stays unset: its content-quote is the practice's own voice, not a customer endorsement, and a logo lockup there would imply an affiliation the safety rules forbid. Re-mints the six affected darwin baselines. Co-Authored-By: Claude Opus 5 <[email protected]> * test(chore): mint Linux visual baselines (templates-visual) (#387) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --------- Co-authored-by: Claude Opus 5 <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…-escaping) (#391) Both diagram body-line decoders expanded entities with a chain of .replaceAll() calls starting at '&'. That is not the inverse of escapeXml: text containing a literal "<" escapes to "&lt;" and the chain decoded it back to "<" — the second pass re-consumed the '&' the first pass produced. CodeQL flagged both sites as js/double-escaping (high). Add unescapeXml next to escapeXml in diagram-template.ts: one regex pass over an entity table, so a produced '&' can never be re-read as the start of another entity, and unknown entities are left untouched. Use it in validateRenderedDiagram and in the int spec, removing the duplicated chain from both. Lock the property with a round-trip assertion over inputs that already look like entities ('<not-a-tag>', '&lt;', '&&&'), which fails against the old chain. Co-authored-by: Claude Opus 5 <[email protected]>
* fix(landing): stop the wall guillotining blocks on small screens Review of the merged wall found a regression I introduced while iterating: 14 of 18 cards were hard-cropped mid-sentence on a phone (up to 165px cut) and 7 on a tablet. Desktop was clean, which is exactly why it slipped through — the slug set was curated against measurements taken only at 1440px. Cause: a single zoom of 0.3 meant the inner layout width tracked the card width, so at 231px the twin was laid out at 770px, where it re-wraps into a mobile-shaped column two to three times taller than its frame. The zoom now varies per breakpoint so the inner layout width is always 1280px (231/0.18046875 = 330/0.2578125 = 384/0.3), and every card shows the same true desktop proportions at every size. Frame heights are tuned to that layout. Desktop geometry is untouched — only the mobile baseline moves. Also restores the .wall-card-frame bottom fade, dropped when cards were briefly natural-height and never restored when they went back to fixed heights. Three twins still overrun on small screens because the twins are responsive on viewport media queries rather than container queries; the fade dissolves the overrun instead of cutting it. Documented in ComponentWall rather than left as a silent trap, since any future demo-content change can push another block over. Verified: no clipping at 1440, three soft-faded overruns at 390/768 (was 14/7 hard cuts), no focusable elements inside the aria-hidden wall, page height stable across 6 production runs (desktop 10027px, mobile 16965px), 40/40 frontend e2e, axe clean on /. Co-Authored-By: Claude Opus 5 <[email protected]> * test(chore): mint Linux visual baselines (frontend) (#393) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --------- Co-authored-by: Claude Opus 5 <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…xels (#394) The accessibility sweep in templates.e2e.spec.ts was pinned to templateShowcases[0], so only one concept's scoped theme and hand-tuned contrast was ever checked. Move it to its own isolated Playwright batch covering the gallery plus every concept's detail page and full preview at 1280 and 390, data-driven from the registry so a new concept is covered on registration. Two hazards the widened sweep has to handle: Un-settled reveals. Straight after goto, in-view sections are mid-fade and axe reads ~13%-opacity ink as a serious contrast violation. Run under reducedMotion, where the CSS nets pin the final frame before hydration, and assert it rather than trust it: any [data-template-section] or data-*-reveal element still mid-transition fails the run by name, so a future concept that ships a reveal without its prefers-reduced-motion net cannot reintroduce flake quietly. Gradient plates. axe cannot resolve a gradient or image background, so it reports text over one as `incomplete`, never as a violation — 13 to 72 unjudged nodes per page, including every hero plate. tests/e2e/support/ painted-contrast.ts scores exactly those pairings against painted pixels: it repaints all ink in a sentinel colour, captures, repaints it transparent, captures again, solves per-pixel glyph coverage from the two, then composites the authored colour at its real opacity over the background the plate capture shows underneath. What it cannot score — gradient-filled ink, cross-frame nodes, the fixed preview-exit pill — is counted and logged, never silently passed. Three things it took mutation testing to get right, all recorded in the module comment: a plain ink-on/ink-off diff mask thins out exactly when contrast is low, so a real failure read as "nothing to measure"; the ink override has to be inline !important or an author `!important` colour outranks it and the node looks identical in both captures; and translucent ink has to be composited, because text-foreground/70 is not the colour the browser paints. Injected colour, alpha, and ancestor-opacity regressions are each caught at 1.10-1.50:1 while axe still reports zero violations. Co-authored-by: Claude Opus 5 <[email protected]>
Snapshot merge commit whose tree is identical to origin/dev (3c8c770). Co-Authored-By: Claude Opus 5 <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
📝 WalkthroughWalkthroughThe PR adds a cross-template accessibility sweep with painted-pixel contrast checks, isolates it in the E2E runner, adjusts wall card sizing and overflow presentation, and centralizes XML entity decoding for diagram validation. ChangesTemplate accessibility sweep
Wall card rendering
Diagram XML decoding
Estimated code review effort: 4 (Complex) | ~60 minutes Sequence Diagram(s)sequenceDiagram
participant TemplateRegistry
participant PlaywrightPage
participant AxeBuilder
participant PaintedContrast
TemplateRegistry->>PlaywrightPage: enumerate concepts and viewport routes
PlaywrightPage->>AxeBuilder: analyze settled pages
AxeBuilder-->>PlaywrightPage: violations and incomplete contrast targets
PlaywrightPage->>PaintedContrast: measure painted preview text contrast
PaintedContrast-->>PlaywrightPage: report scored pairings and failures
Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint install failed: dependency version conflict. Check your lock file or package.json. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (2)
src/app/globals.css (1)
714-714: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winReplace the raw fade height with a design token.
height: 1.75remis an arbitrary spacing value insrc/app/globals.css. Define a named wall-fade token alongside the existing globals, or reuse an existing spacing token.Proposed change
+ --wall-card-fade-height: 1.75rem; ... - height: 1.75rem; + height: var(--wall-card-fade-height);As per coding guidelines,
src/app/globals.cssmust avoid arbitrary spacing values and use a token instead.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@src/app/globals.css` at line 714, Replace the raw 1.75rem height value in the wall-fade styling with a named wall-fade design token, or reuse the closest existing spacing token defined in the globals. Keep the resulting fade height unchanged.Source: Coding guidelines
src/components/site/graphics/ComponentWall.tsx (1)
121-128: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winAlign the zoom explanation with viewport-driven behavior.
The preceding comment says phone viewports still render mobile variants, but this paragraph claims the zoom preserves “the same true desktop proportions at every size.”
zoomstabilizes the inner 1280px layout width; it cannot force desktop breakpoint variants. Reword this so future height curation does not assume the 1280px measurements cover mobile variants.Proposed wording
- Pinning the layout width means every card shows the same true desktop - proportions at every size, and the frame heights below (derived from - that 1280 layout) hold. + Pinning the layout width keeps the inner layout at 1280px at every + breakpoint. It does not change viewport media queries, so phone + viewports may still render taller mobile variants; the fade handles + the known small-screen overrun.This finding follows from the responsive caveat and zoom explanation in this changed block.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@src/components/site/graphics/ComponentWall.tsx` around lines 121 - 128, Update the explanatory comment in ComponentWall around the breakpoint-specific zoom values so it states that zoom stabilizes the inner 1280px layout width while responsive breakpoints may still render mobile variants. Remove the claim that all sizes preserve identical desktop proportions, and clarify that the derived frame heights apply only where those desktop layout measurements are used.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/app/globals.css`:
- Around line 709-717: Update the .wall-card-frame::after overlay so it is
applied only to cards or responsive breakpoints with confirmed content overflow,
rather than every card. Preserve the existing dissolve styling for
known-overflow cases and ensure content that fits the fixed frame in
ComponentWall.tsx is not faded.
---
Nitpick comments:
In `@src/app/globals.css`:
- Line 714: Replace the raw 1.75rem height value in the wall-fade styling with a
named wall-fade design token, or reuse the closest existing spacing token
defined in the globals. Keep the resulting fade height unchanged.
In `@src/components/site/graphics/ComponentWall.tsx`:
- Around line 121-128: Update the explanatory comment in ComponentWall around
the breakpoint-specific zoom values so it states that zoom stabilizes the inner
1280px layout width while responsive breakpoints may still render mobile
variants. Remove the claim that all sizes preserve identical desktop
proportions, and clarify that the derived frame heights apply only where those
desktop layout measurements are used.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 7be86f11-cc8f-4b22-b46a-891eb3eb6f40
⛔ Files ignored due to path filters (2)
tests/e2e/frontend.e2e.spec.ts-snapshots/landing-home-mobile-chromium-darwin.pngis excluded by!**/*.pngtests/e2e/frontend.e2e.spec.ts-snapshots/landing-home-mobile-chromium-linux.pngis excluded by!**/*.png
📒 Files selected for processing (11)
CONTRIBUTING.mdsrc/app/globals.csssrc/components/site/graphics/ComponentWall.tsxtests/e2e/support/painted-contrast.tstests/e2e/templates-a11y.e2e.spec.tstests/e2e/templates.e2e.spec.tstests/int/blog-visual-system.int.spec.tstests/int/e2e-runner.int.spec.tstests/int/painted-contrast.int.spec.tstools/blog/visual-system/diagram-template.tstools/run-e2e.ts
| .wall-card-frame::after { | ||
| content: ''; | ||
| position: absolute; | ||
| inset-inline: 0; | ||
| bottom: 0; | ||
| height: 1.75rem; | ||
| pointer-events: none; | ||
| background: linear-gradient(to top, var(--background), transparent); | ||
| } |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Scope the dissolve to actual overruns.
.wall-card-frame::after is rendered for every card; CSS has no overflow condition here. Consequently, the bottom 1.75rem is faded even when the twin fits. For example, the documented ~215px content can fit within the 216px desktop frame while its bottom text still sits beneath the gradient. Scope the pseudo-element to known-overflow cards/breakpoints, or apply it through an overflow-only wrapper.
This finding follows from the fixed frame/content dimensions in ComponentWall.tsx and this overlay implementation.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@src/app/globals.css` around lines 709 - 717, Update the
.wall-card-frame::after overlay so it is applied only to cards or responsive
breakpoints with confirmed content overflow, rather than every card. Preserve
the existing dissolve styling for known-overflow cases and ensure content that
fits the fixed frame in ComponentWall.tsx is not faded.
…e days Triaged every bot review on the 60 PRs merged since 2026-07-24. Copilot was quota-limited on all of them and Codex's one finding (#340 Linux baselines) was handled by #342, so everything actionable is CodeRabbit's. Most of its findings were already closed by #378/#380 or superseded by later work; two were false positives. These five were still open and worth taking. - frontend.e2e: pin the tablet wall fade (#399). The 2.75rem override IS that PR, and nothing asserted it — the existing fade check runs at 390px, outside the 640-1023px query, so deleting the rule stayed green, and the overrun ceiling is deliberately loose enough (60px) to swallow the 44px residue too. Asserted exactly, because matching the residue is the point. - templates-a11y: accept the 3D identity as settled (#394). A reveal written with translate3d, or carrying a translateZ(0) compositor hint, serialises as matrix3d — the check saw only the 2D identity and would have failed the gate for a reveal sitting exactly where it belongs. - painted-contrast: name the no-glyph-pixel skips (#394). unresolvedSelectors already exists so a skip cannot hide which node it dropped; this is the other way an unmeasurable node leaves the run, and it was a bare count. - ComponentWall: fix the zoom comment (#396). It claimed every card shows true desktop proportions at every size. zoom pins the 1280px layout width, not the breakpoint — frontend.e2e's own comment says as much — and that claim is exactly what would mislead the next person curating frame heights. - CONTRIBUTING: document the changed-vs-all snapshot trap (#375). A bare --update-snapshots skips baselines whose diff lands under tolerance, which is the same stale-baseline half-mint the section warns about, minus the missing file that would have revealed it. visual-baselines.yml explains this at length; the local instructions did not. Skipped, with reasons: tokenising the wall fade heights and the mask-image black stops (#399/#396/#370) — the token rule scans component utilities, not globals.css, which defines tokens and carries raw lengths throughout, and a mask's black is an alpha keyword rather than a colour; fading only confirmed-overflow cards (#396) — the valve exists for content that has not changed yet; moving privacy copy into site.ts (#372) — real per AGENTS.md, but about/blog/brand-guide hold local copy too, so this belongs in one deliberate pass; subset-aware blog visual validation (#375) — outputRoot defaults to the repo, so a --slug render is incremental against committed assets and the full-catalog gate is the correct final check. Verified: lint, tsc, the three affected int specs, and both e2e specs green (frontend 44 passed, templates-a11y 43 passed) in production mode. Co-Authored-By: Claude Opus 5 <[email protected]>
…e days (#411) Triaged every bot review on the 60 PRs merged since 2026-07-24. Copilot was quota-limited on all of them and Codex's one finding (#340 Linux baselines) was handled by #342, so everything actionable is CodeRabbit's. Most of its findings were already closed by #378/#380 or superseded by later work; two were false positives. These five were still open and worth taking. - frontend.e2e: pin the tablet wall fade (#399). The 2.75rem override IS that PR, and nothing asserted it — the existing fade check runs at 390px, outside the 640-1023px query, so deleting the rule stayed green, and the overrun ceiling is deliberately loose enough (60px) to swallow the 44px residue too. Asserted exactly, because matching the residue is the point. - templates-a11y: accept the 3D identity as settled (#394). A reveal written with translate3d, or carrying a translateZ(0) compositor hint, serialises as matrix3d — the check saw only the 2D identity and would have failed the gate for a reveal sitting exactly where it belongs. - painted-contrast: name the no-glyph-pixel skips (#394). unresolvedSelectors already exists so a skip cannot hide which node it dropped; this is the other way an unmeasurable node leaves the run, and it was a bare count. - ComponentWall: fix the zoom comment (#396). It claimed every card shows true desktop proportions at every size. zoom pins the 1280px layout width, not the breakpoint — frontend.e2e's own comment says as much — and that claim is exactly what would mislead the next person curating frame heights. - CONTRIBUTING: document the changed-vs-all snapshot trap (#375). A bare --update-snapshots skips baselines whose diff lands under tolerance, which is the same stale-baseline half-mint the section warns about, minus the missing file that would have revealed it. visual-baselines.yml explains this at length; the local instructions did not. Skipped, with reasons: tokenising the wall fade heights and the mask-image black stops (#399/#396/#370) — the token rule scans component utilities, not globals.css, which defines tokens and carries raw lengths throughout, and a mask's black is an alpha keyword rather than a colour; fading only confirmed-overflow cards (#396) — the valve exists for content that has not changed yet; moving privacy copy into site.ts (#372) — real per AGENTS.md, but about/blog/brand-guide hold local copy too, so this belongs in one deliberate pass; subset-aware blog visual validation (#375) — outputRoot defaults to the repo, so a --slug render is incremental against committed assets and the full-catalog gate is the correct final check. Verified: lint, tsc, the three affected int specs, and both e2e specs green (frontend 44 passed, templates-a11y 43 passed) in production mode. Co-authored-by: Claude Opus 5 <[email protected]>
Promote
dev→mainPromotes current
devHEAD (3c8c770c, #394) tomain, on top of #389.Why the head is a snapshot commit
git merge-tree --write-tree origin/main origin/devreports real conflicts in 7 paths (CONTRIBUTING.md,src/app/globals.css,ComponentWall.tsx,blog-visual-system.int.spec.ts,diagram-template.ts, and two binarylanding-home-mobile-*baselines) — squash-divergence artifacts, sincemainreaches the same content through squashed promotes. So the head is a merge commit whose tree is byte-identical toorigin/dev(parents:main,dev);git diff <commit> origin/devis empty, verified.Checked before snapshotting: all seven commits on
mainare promote commits — no direct hotfixes — and every line the diff shows as "main-only" is superseded prose/code that #391 and #392 rewrote.mainholds no unique work, so takingdev's tree wholesale loses nothing.Content (two-dot delta
main→dev): 13 files, +1140 / −79security(fix): decode XML entities in a single pass, clearing the two high-severity CodeQLjs/double-escapingalerts. The old.replaceAll()chain expanded&first and so wasn't the inverse ofescapeXml(<not-a-tag>decoded to<not-a-tag>). AddsunescapeXml+ a round-trip regression guard.fix(landing): stop the component wall guillotining blocks on small screens; the frame fade now dissolves the overrun. Re-minted the two mobile landing baselines.test(templates): axe every template concept and measure gradient plates in pixels; addspainted-contrastsupport + int/e2e coverage.Notes
CodeQLflags "Incomplete URL substring sanitization" attests/int/component-docs.int.spec.ts:25, that remains the known false positive (a doc lint over trusted local.mdx, test-only).--squash --admin.devmoves before merge, the commit must be re-minted.🤖 Generated with Claude Code
Summary by CodeRabbit
New Features
Bug Fixes
Documentation