Repository navigation
PinZheng(release): promote dev to main — six-concept template gallery + install entries - #351
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]>
…ing (#340) * feat(templates): freeze 4-concept expansion contract (commerce, event, fintech, portfolio) Categories + labels, skeleton definitions/recipes over existing twins, scoped theme + shell + provenance scaffolds, registry + shells registration. Posters captured in the integration wave. Co-Authored-By: Claude Fable 5 <[email protected]> * feat(templates): category filtering on the gallery (6-concept threshold) URL-synced client filter over server-rendered cards (progressive enhancement; all concepts stay in the initial HTML). Chips derive from registry category order + templateCategoryLabels. Co-Authored-By: Claude Fable 5 <[email protected]> * feat(templates): Fieldnote commerce-brand art direction Replaces the frozen commerce skeleton with the finished Fieldnote concept — a fictional specialty-coffee roastery — across all five pages. Definition (src/lib/templates/commerce-brand.ts, revision 2): bespoke editor-shaped copy for every section, one canonical set of facts (roast day Tuesday, twelve-kilo batches, 34 farms, the ribbon mill on Kestrel Street) carried through Home, Collection, Our Story, Journal, and Contact. No prices anywhere: standing orders are a cadence plus a weight. Recipes are unchanged apart from tone banding and clearer section ids. Theme (theme.css): warm cream paper, deep espresso ink, one burnt-orange ember accent, --radius 1rem with pill actions, relaxed display tracking, ember rule-and-label eyebrows in place of the catalog pill, and every backend-free image placeholder repainted as a token-derived "product plate" so the concept reads product-forward with no raster assets. One espresso band per page. Shell: a new Fieldnote counter (espresso notice strip over a sticky cream counter, inline bean mark, ember active-page dots, keyboard-operable mobile disclosure) plus a static cream footer closing on an espresso rail. Co-Authored-By: Claude Fable 5 <[email protected]> * feat(templates): Ledgerline fintech-trust art direction Replaces the fintech foundation skeleton with the full Ledgerline concept: a dense, institutional money-movement platform built on three tonal registers — deep cool ink, a raised slate shelf, and an inverted pale "statement" band for figures and written guarantees. Teal is signal only (primary action, eyebrow index rules, live rail state, the hero's closing word), held at low chroma and carried in two AA-safe registers so it clears 4.5:1 on both bases. - Definition: bespoke Ledgerline copy across all five pages, one pricing truth (Core/Scale/Reserve) shared by the home teaser, the tier cards, and a 15-row comparator matrix. Rates are basis points of settled volume, so no surface carries a literal price string. Revision bumped to 2. - Theme: scoped token remap for all three registers, near-square geometry, tabular numerals, denser display scale with level tracking, mono index labels with a teal leading rule, hairline section rules, a ruled-column plate for inner-page heroes, a tightened tier matrix, and token-derived ledger-sheet art for the quote media slot (no assets). - Shell: LedgerlineHeader (mono status rail + opaque sticky bar, transform-only entrance, keyboard-operable disclosure) and LedgerlineFooter (index columns, compliance chips, hairline figure strip), plus the drawn LedgerlineMark. - Hero: --brand-100/--brand-200 retuned inside [data-aurora-root] to a cool, dimmer instrument glow; --brand-600 carries the serif-italic "line." Verified: tsc and lint clean; template-showcases + demo-twins int specs pass except the four expected "generated poster" assertions; five pages captured at 1280/768/390 plus a reducedMotion pass showing the finished frame; zero console errors, no horizontal overflow at any width, and axe-core reports zero serious or critical violations on all five pages with motion on and reduced. Co-Authored-By: Claude Fable 5 <[email protected]> * feat(templates): portfolio-solo art direction Build out the Portfolio concept as "Ilse Renko", a fictional solo designer-developer in Tallinn — the most restrained concept in the gallery. Direction: cool off-white paper, near-black ink, and one low-chroma slate accent used almost grudgingly (~5 appearances per page). Hairline rules instead of card chrome — every specimen frame, panel border, pill, and shadow is dissolved. One narrow 64rem measure shared by header, sections, and footer, with a monospace section index printed in the left gutter above 1200px. The display type scale steps DOWN against the catalog default so headings read as set copy; Geist Sans throughout, Geist Mono for labels and indices, and exactly one italic serif word on the whole site — the closing word of the home headline. - Rewrite the definition with bespoke first-person copy: invented maker, clients, collaborators, quotes, and numbers. stats-proof and testimonials-wall are framed honestly for one person (years worked alone, projects logged, clients who came back; quotes about working with an individual). revision 1 → 2. - One section swap: writing/topics content-showcase → content-columns, so the writing index stays text-forward instead of repeating the home page's showcase composition. - New Shell with a still, single-deck masthead (RenkoHeader: aria-current, keyboard-operable full-width mobile sheet, Escape restores focus) and a paper footer carrying a sign-off, a "currently" note, and a last-touched date. The chrome never inverts; the only dark surface is the home page's record band. - Token-derived plate art: every bg-muted image well is composed from color-mix() layers over the theme's own tokens, including a slate horizon at 72% that echoes the kinetic hero's film still, so a reserved plate reads as deliberate rather than missing. No raster assets anywhere. - Hero tokens tuned so the plate and marquee read near-monochrome: --brand is the deep slate on paper and lifts to --ir-slate-glow only inside the ink plate, where a 45% accent would otherwise be invisible. - Motion is transform-only and deliberately minimal: the footer sign-off rise and its rule draw, both gated by useReducedMotion plus a CSS @media net, so the pre-hydration frame posters capture is already final. The rise is driven by variants from an unclipped wrapper — whileInView on the masked line itself can never fire, since IntersectionObserver clips a target against its own overflow-hidden mask. Verified: tsc and lint clean; template-showcases + demo-twins int specs pass except the 4 expected poster assertions; five pages captured at 1280/768/390 plus a reducedMotion=reduce pass showing the complete frozen frame; zero horizontal overflow and zero console errors on all five pages at 390; axe (wcag2a/2aa/21a/21aa) reports zero violations across all five pages at both widths and both motion preferences. Co-Authored-By: Claude Fable 5 <[email protected]> * feat(templates): Frameworks event-conference art direction Frameworks '26 — a fictional two-day design + engineering conference in Berlin, art-directed as the gallery's one near-black concept. - Bespoke definition (revision 2): invented lineup, rooms, programme, venue logistics, and three release waves. Ticket tiers are expressed as waves ("Closed" / "On sale" / "Free") so no currency amount appears anywhere, and every CTA label either names a page in this concept's own navigation or reads as a state. - Scoped dark token set: near-black violet-cast surfaces in three tonal bands, one electric violet used as a field for the wordmark chip and the ticket button and as a mark elsewhere, oversized 600-weight display type on zeroed corners, monospace room/date/time labels. - hero-aurora tuned for near-black: the brand ramp is inverted so brand-100/200 read as an electric stage wash rather than pale tints, and a second scoped legibility pool guarantees AA for the word cascade and its serif-italic closing word. - Poster shell: sticky two-deck masthead with a dateline strip, a keyboard-operable mobile disclosure, and an oversized footer lockup. All shell choreography is transform-only so the filled violet CTA never alpha-composites below AA. - Imagery is entirely token-derived duotone plates with a halftone screen, so the concept ships no raster assets; PROVENANCE.md records that. Verified: tsc and lint clean; template-showcases + demo-twins int specs pass except the 4 known "generated poster" assertions; zero horizontal overflow and zero console errors across all five pages at 1280/768/390; axe wcag2a/2aa/21a/21aa reports 0 serious or critical violations on all five pages; measured against actual painted pixels, every text run clears AA with a 5.26:1 floor; reduced motion renders every section and every shell reveal at its final frame. Co-Authored-By: Claude Fable 5 <[email protected]> * feat(templates): four new concepts (commerce, event, fintech, portfolio) + recaptured posters Fieldnote (specialty coffee), Frameworks '26 (conference, the gallery's first dark-first concept), Ledgerline (money-movement infrastructure), and Ilse Renko (solo maker). Each ships a scoped theme reusing a motion hero under a new palette, bespoke fictional content, and its own shell. Gallery intro copy now names all six verticals. Co-Authored-By: Claude Fable 5 <[email protected]> * test(templates): mint darwin visual baselines for six-concept gallery Co-Authored-By: Claude Fable 5 <[email protected]> * test(chore): mint Linux visual baselines (templates-visual) (#342) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --------- Co-authored-by: Claude Fable 5 <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[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>
Co-authored-by: Ducksss <[email protected]> Co-authored-by: tin-computer[bot] <277149838+tin-computer[bot]@users.noreply.github.com>
* seo: make first-block guide installable Co-authored-by: tin-computer[bot] <277149838+tin-computer[bot]@users.noreply.github.com> * chore: retrigger first-block previews 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>
Re-lands #341's blog gateway work without its undisclosed self-promotion. Kept: the blog index gateway sections, site copy, blog e2e coverage, and the refreshed blog-index visual baselines. Dropped: the 'Growth by Tin' backlink to https://tin.computer (+ #66DC9D swatch) added to SiteFooter, and the inversion of the 'community-owned' guard test that exists to keep that backlink out. Footer restored to dev state. Also hardens the guard to match a bare '66DC9D' rather than the Tailwind-specific 'bg-[#66DC9D]', so an equivalent SVG fill= swatch can't slip past it. Co-authored-by: Claude Opus 4.8 <[email protected]>
Re-lands #346's template recipe work without its undisclosed self-promotion. Kept: per-recipe block install actions on template detail pages, the registry additions, and the templates e2e + int coverage. Dropped: the 'Growth by Tin' backlink to https://tin.computer added to SiteFooter as an inline SVG swatch, and the rewrite of the 'community-owned' guard test (which #346 both inverted and renamed to '...the footer credit quiet'). Footer and guard restored to dev state. Note the swatch was moved from a Tailwind bg-[#66DC9D] class to an SVG fill="#66DC9D", which evades the original guard string; the restored guard now matches a bare '66DC9D' to cover both forms. Co-authored-by: Claude Opus 4.8 <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Warning Review limit reached
Next review available in: 5 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 (15)
📒 Files selected for processing (16)
📝 WalkthroughWalkthroughThe PR expands installation-focused documentation, synchronizes CLI and README inventories, adds four template showcases with custom shells and themes, introduces template gallery filtering and starter install actions, and updates metadata, analytics, and integration coverage. ChangesGuides, templates, and CLI discovery
Estimated code review effort: 5 (Critical) | ~120 minutes Sequence Diagram(s)sequenceDiagram
participant Visitor
participant TemplatesGallery
participant TemplateGalleryFilter
participant TemplateDetailPage
participant RunnableCommand
Visitor->>TemplatesGallery: select category
TemplatesGallery->>TemplateGalleryFilter: update active category and URL
TemplateGalleryFilter->>TemplatesGallery: hide non-matching cards
Visitor->>TemplateDetailPage: open template showcase
TemplateDetailPage->>RunnableCommand: render derived starter install command
RunnableCommand->>Visitor: copy command and track installation
Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 1 | ❌ 4❌ Failed checks (3 warnings, 1 inconclusive)
✅ Passed checks (1 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 |
There was a problem hiding this comment.
Actionable comments posted: 5
🧹 Nitpick comments (11)
src/components/site/templates/TemplateGalleryFilter.tsx (3)
100-107: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueArbitrary font size instead of a token.
text-[11px]is an arbitrary visual value. If this size is part of the system, add a token insrc/app/globals.cssand use it here.As per coding guidelines: "Use design tokens for colours, radius, letter spacing, spacing, and font values; do not introduce arbitrary visual values. Add a token in
src/app/globals.csswhen 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/TemplateGalleryFilter.tsx` around lines 100 - 107, Add a named font-size design token in globals.css for the 11px value, then replace the arbitrary text-[11px] class in TemplateGalleryFilter’s option count span with the corresponding token utility while preserving the existing styling.Source: Coding guidelines
44-47: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueComment overstates back/forward support.
selectusesreplaceState, so filter changes create no history entries — thepopstatelistener only fires for navigations originating elsewhere. Consider rewording the comment (or switching topushStateif back-to-previous-filter is actually wanted).Also applies to: 68-75
🤖 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/TemplateGalleryFilter.tsx` around lines 44 - 47, Reword the comments around the URL hydration and popstate synchronization in TemplateGalleryFilter to avoid claiming that back/forward navigation restores filter changes, since select uses replaceState and creates no history entries. Keep the existing behavior unchanged unless intentionally switching to pushState is required.
58-66: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winAnnounce the filtered result count for screen-reader users.
Filtering happens imperatively via
slot.hidden, so nothing tells assistive tech that the list changed.aria-pressedconveys chip state but not the outcome. A small polite live region closes the gap.♿ Suggested addition
<div ref={gridRef} className="mt-8 grid gap-8 lg:grid-cols-2"> {children} </div> + + <p aria-live="polite" className="sr-only"> + {`Showing ${options.find((option) => option.value === active)?.count ?? total} concepts`} + </p>🤖 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/TemplateGalleryFilter.tsx` around lines 58 - 66, Add a small polite aria-live region near the filtered template grid and update it from the filtering effect alongside the slot.hidden changes to announce the current visible result count. Use the existing grid/template-category elements to calculate the count, keep the announcement synchronized with active, and preserve the current filtering and chip-state behavior.src/app/templates/page.tsx (1)
36-49: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winType the accumulator as
TemplateCategoryand drop the cast.
order: string[]forcesvalue as keyof typeof templateCategoryLabelson Line 46, which silently yieldsundefinedlabels iftemplateCategoryLabelsever falls behind theTemplateCategoryunion. Typing the accumulator turns that into a compile error.♻️ Suggested change
+import type { TemplateCategory } from '`@/lib/templates/types`' + const galleryCategories = (() => { - const order: string[] = [] - const counts = new Map<string, number>() + const order: TemplateCategory[] = [] + const counts = new Map<TemplateCategory, number>() for (const template of templateShowcases) { if (!counts.has(template.category)) order.push(template.category) counts.set(template.category, (counts.get(template.category) ?? 0) + 1) } return order.map((value) => ({ count: counts.get(value) ?? 0, - label: templateCategoryLabels[value as keyof typeof templateCategoryLabels], + label: templateCategoryLabels[value], value, })) })()🤖 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/page.tsx` around lines 36 - 49, Update the galleryCategories accumulator to use the TemplateCategory type for order instead of string[], then remove the keyof typeof templateCategoryLabels cast when indexing labels. Preserve the existing category ordering and counting behavior while allowing TypeScript to validate that every TemplateCategory has a corresponding label.tests/int/template-showcases.int.spec.ts (1)
231-237: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueAssert the catalog entry exists before comparing.
entry?.commandyieldsundefinedwhen the lookup misses, producing a confusing “expectednpx payload-components add xto be undefined” failure instead of naming the real cause.💚 Suggested tweak
const expectedSlug = template.pages[0]?.sections[0]?.componentSlug const entry = componentEntries.find(({ slug }) => slug === expectedSlug) + expect(entry, `no catalog entry for "${expectedSlug}"`).toBeDefined() expect(templateStarterBlockSlug(template)).toBe(expectedSlug) expect(templateStarterInstallCommand(template)).toBe(entry?.command)🤖 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/template-showcases.int.spec.ts` around lines 231 - 237, Update the test around templateStarterInstallCommand and the componentEntries lookup to assert that entry exists before comparing its command. After the existence assertion, compare against entry.command without optional chaining so lookup failures clearly identify the missing catalog entry.src/lib/templates/portfolio-solo.ts (1)
24-26: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueStale CTA mapping in the header comment.
'Read the notes' → writingis documented, but no link label in this file uses it — no CTA anywhere routes to the Writing page. Either drop it from the comment or add the CTA (e.g. on the Homethesis/ctasection) so the documented map matches the recipe.🤖 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/lib/templates/portfolio-solo.ts` around lines 24 - 26, Update the CTA mapping comment near the portfolio template definitions so it matches the implemented routes: either remove the unused “Read the notes” → writing entry, or add a corresponding CTA in the Home thesis/cta section and keep the mapping. Ensure the documented labels exactly reflect the available CTA links.src/lib/templates/registry.ts (1)
62-76: 🎯 Functional Correctness | 🔵 Trivial | 💤 Low valueDerive the starter from the home page rather than
pages[0].The detail page copy states this is “the first block in the Home recipe”, but the helper takes
pages[0], andvalidateTemplateShowcaseonly requires that exactly one page haspath === ''— not that it is first. Anchoring on the home page removes the drift risk without changing today’s output.♻️ Suggested change
export function templateStarterBlockSlug(template: TemplateShowcase) { - const starterBlock = template.pages[0]?.sections[0] + const homePage = template.pages.find((page) => page.path === '') ?? template.pages[0] + const starterBlock = homePage?.sections[0] if (!starterBlock) { throw new Error(`Template "${template.slug}" has no starter 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/lib/templates/registry.ts` around lines 62 - 76, Update templateStarterBlockSlug to locate the template’s home page by its empty path, then derive the starter block from that page’s first section instead of assuming pages[0] is home. Preserve the existing missing-starter error behavior and keep templateStarterInstallCommand using the helper.src/app/blog/page.tsx (1)
93-131: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winFirst featured card hardcodes install-guide-specific copy instead of deriving from data.
The primary card unconditionally renders
npx payload-components add hero-basicand "Follow the installation guide", assumingfeaturedGuides[0]is always the Installation guide. If the array is ever reordered (e.g. to promote the Block wiring guide), this card will silently show the wrong command/CTA text for the new first entry — tests only check href/label text and wouldn't catch it.Consider moving the command string and CTA label into each
featuredGuidesentry so the card renders whatever entry is actually first.♻️ Proposed refactor
const featuredGuides = [ { description: 'Add a real block with the supported CLI, then review every file and wiring change that lands.', href: '/docs/installation', icon: TerminalSquare, label: 'Installation guide', + ctaCommand: 'npx payload-components add hero-basic', + ctaLabel: 'Follow the installation guide', title: 'Install a wired Payload block', }, ... ] ... <p className="font-mono text-xs text-success"> - npx payload-components add hero-basic + {guide.ctaCommand} </p> ... <span className="mt-7 inline-flex min-h-11 items-center gap-2 text-sm font-medium text-background"> - Follow the installation guide + {guide.ctaLabel}🤖 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/blog/page.tsx` around lines 93 - 131, Move the install command and CTA text into the objects defining featuredGuides, then update the primary featured card rendering to use the current guide’s corresponding data fields instead of hardcoded installation-specific strings. Preserve the existing values for the current installation guide and ensure reordered entries display their own command and CTA.src/components/site/templates/fintech-trust/theme.css (1)
306-323: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value
:nth-child(3)silently follows plan ordering.The recommended-column wash is positional, so reordering or inserting a plan in the fintech-trust definition moves the highlight to the wrong column with no test signal. If the renderer emits anything identifying the highlighted plan (a
data-*attribute or class on the cell), key off that instead; otherwise a comment pointing at the exact definition field to keep in sync would help the next editor.🤖 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/fintech-trust/theme.css` around lines 306 - 323, Replace the positional nth-child(3) selector in the fintech-trust comparison styling with a selector targeting the renderer’s identifying data attribute or class for the recommended plan cell. If no such marker exists, add or reference the exact fintech-trust definition field that identifies the highlighted plan and keep the CSS synchronized with it.src/components/site/templates/portfolio-solo/RenkoHeader.tsx (1)
38-60: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winDisclosure effect logic is duplicated verbatim across the template headers.
This Escape-closes / pointerdown-outside / route-change block is character-for-character the same as
FieldnoteCounter.tsx(Lines 96-118) apart from thedata-*boundary attribute. A shared hook (e.g.useDisclosure(boundaryAttr)) next to the house pattern inSiteHeader.tsxwould keep the four showcase shells from drifting apart — including thehidden-attribute pitfall that only one of them currently avoids.🤖 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/portfolio-solo/RenkoHeader.tsx` around lines 38 - 60, Extract the duplicated disclosure behavior from RenkoHeader’s open-state effects into a shared useDisclosure hook alongside the existing SiteHeader pattern, accepting the boundary data attribute as its configuration. Update RenkoHeader and the other template headers, including FieldnoteCounter, to use the hook while preserving Escape focus restoration, outside-pointer closing, route-change closing, cleanup, and each header’s distinct boundary selector.src/components/site/templates/event-conference/lockup.tsx (1)
12-39: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueRemove or use
FRAMEWORKS_DOORSconsistently.The lockup does not import
FRAMEWORKS_DOORS, and the exported doors text is not referenced by the lockup template, while theDoorscell renders'09:00 both days'instead. Derive the cell from the constant or remove the unused export.🤖 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/event-conference/lockup.tsx` around lines 12 - 39, Update the lockup’s Doors cell in lockupCells to reuse FRAMEWORKS_DOORS instead of the hardcoded “09:00 both days” value, or remove FRAMEWORKS_DOORS if that wording is intentionally not needed. Keep the exported constants and rendered doors text consistent.
🤖 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/commerce-brand/FieldnoteCounter.tsx`:
- Around line 240-244: Update the mobile navigation panel in FieldnoteCounter so
its display class is controlled by open instead of relying on the hidden
attribute alongside an unconditional flex utility. Preserve the flex layout when
open and ensure the closed state uses a display-none class, keeping
aria-expanded and the existing panel styling intact.
In `@src/components/site/templates/fintech-trust/LedgerlineFooter.tsx`:
- Around line 40-45: Update the compliance entries in
src/components/site/templates/fintech-trust/LedgerlineFooter.tsx lines 40-45 so
SOC 2 and PCI DSS use “-aligned controls” wording like ISO 27001. Update the
provenance clause in public/templates/fintech-trust/PROVENANCE.md lines 3-10 to
accurately match the revised footer language, removing the absolute claim that
named certificates are never used.
In `@src/components/site/templates/fintech-trust/LedgerlineHeader.tsx`:
- Around line 174-178: Update the mobile navigation panel in LedgerlineHeader so
its layout class is conditional on open: apply flex only when open and hidden
otherwise. Remove the always-applied flex class while preserving the panel’s
existing positioning, styling, and id.
In `@src/components/site/templates/portfolio-solo/Shell.tsx`:
- Line 37: Update the fictional email in elsewhereLines to use the reserved
.example domain, matching the convention established by the commerce-brand
template, while leaving the surrounding contact copy unchanged.
In `@tests/int/inventory-sync.int.spec.ts`:
- Around line 30-44: Update extractReadmeInventoryNames to parse and retain each
inventory row’s install command alongside its component name, then validate
every command equals the expected `npx payload-components add ${name}` form
while preserving the existing name and order checks. Extend the related
assertions in the inventory sync test to fail on command mismatches.
---
Nitpick comments:
In `@src/app/blog/page.tsx`:
- Around line 93-131: Move the install command and CTA text into the objects
defining featuredGuides, then update the primary featured card rendering to use
the current guide’s corresponding data fields instead of hardcoded
installation-specific strings. Preserve the existing values for the current
installation guide and ensure reordered entries display their own command and
CTA.
In `@src/app/templates/page.tsx`:
- Around line 36-49: Update the galleryCategories accumulator to use the
TemplateCategory type for order instead of string[], then remove the keyof
typeof templateCategoryLabels cast when indexing labels. Preserve the existing
category ordering and counting behavior while allowing TypeScript to validate
that every TemplateCategory has a corresponding label.
In `@src/components/site/templates/event-conference/lockup.tsx`:
- Around line 12-39: Update the lockup’s Doors cell in lockupCells to reuse
FRAMEWORKS_DOORS instead of the hardcoded “09:00 both days” value, or remove
FRAMEWORKS_DOORS if that wording is intentionally not needed. Keep the exported
constants and rendered doors text consistent.
In `@src/components/site/templates/fintech-trust/theme.css`:
- Around line 306-323: Replace the positional nth-child(3) selector in the
fintech-trust comparison styling with a selector targeting the renderer’s
identifying data attribute or class for the recommended plan cell. If no such
marker exists, add or reference the exact fintech-trust definition field that
identifies the highlighted plan and keep the CSS synchronized with it.
In `@src/components/site/templates/portfolio-solo/RenkoHeader.tsx`:
- Around line 38-60: Extract the duplicated disclosure behavior from
RenkoHeader’s open-state effects into a shared useDisclosure hook alongside the
existing SiteHeader pattern, accepting the boundary data attribute as its
configuration. Update RenkoHeader and the other template headers, including
FieldnoteCounter, to use the hook while preserving Escape focus restoration,
outside-pointer closing, route-change closing, cleanup, and each header’s
distinct boundary selector.
In `@src/components/site/templates/TemplateGalleryFilter.tsx`:
- Around line 100-107: Add a named font-size design token in globals.css for the
11px value, then replace the arbitrary text-[11px] class in
TemplateGalleryFilter’s option count span with the corresponding token utility
while preserving the existing styling.
- Around line 44-47: Reword the comments around the URL hydration and popstate
synchronization in TemplateGalleryFilter to avoid claiming that back/forward
navigation restores filter changes, since select uses replaceState and creates
no history entries. Keep the existing behavior unchanged unless intentionally
switching to pushState is required.
- Around line 58-66: Add a small polite aria-live region near the filtered
template grid and update it from the filtering effect alongside the slot.hidden
changes to announce the current visible result count. Use the existing
grid/template-category elements to calculate the count, keep the announcement
synchronized with active, and preserve the current filtering and chip-state
behavior.
In `@src/lib/templates/portfolio-solo.ts`:
- Around line 24-26: Update the CTA mapping comment near the portfolio template
definitions so it matches the implemented routes: either remove the unused “Read
the notes” → writing entry, or add a corresponding CTA in the Home thesis/cta
section and keep the mapping. Ensure the documented labels exactly reflect the
available CTA links.
In `@src/lib/templates/registry.ts`:
- Around line 62-76: Update templateStarterBlockSlug to locate the template’s
home page by its empty path, then derive the starter block from that page’s
first section instead of assuming pages[0] is home. Preserve the existing
missing-starter error behavior and keep templateStarterInstallCommand using the
helper.
In `@tests/int/template-showcases.int.spec.ts`:
- Around line 231-237: Update the test around templateStarterInstallCommand and
the componentEntries lookup to assert that entry exists before comparing its
command. After the existence assertion, compare against entry.command without
optional chaining so lookup failures clearly identify the missing catalog entry.
🪄 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: 3b0da55f-6700-404b-8ac7-8ed36e0fda9e
⛔ Files ignored due to path filters (112)
public/templates/commerce-brand/posters/home-desktop.jpgis excluded by!**/*.jpgpublic/templates/commerce-brand/posters/page-collection.jpgis excluded by!**/*.jpgpublic/templates/commerce-brand/posters/page-contact.jpgis excluded by!**/*.jpgpublic/templates/commerce-brand/posters/page-home.jpgis excluded by!**/*.jpgpublic/templates/commerce-brand/posters/page-journal.jpgis excluded by!**/*.jpgpublic/templates/commerce-brand/posters/page-story.jpgis excluded by!**/*.jpgpublic/templates/event-conference/posters/home-desktop.jpgis excluded by!**/*.jpgpublic/templates/event-conference/posters/page-home.jpgis excluded by!**/*.jpgpublic/templates/event-conference/posters/page-schedule.jpgis excluded by!**/*.jpgpublic/templates/event-conference/posters/page-speakers.jpgis excluded by!**/*.jpgpublic/templates/event-conference/posters/page-tickets.jpgis excluded by!**/*.jpgpublic/templates/event-conference/posters/page-venue.jpgis excluded by!**/*.jpgpublic/templates/fintech-trust/posters/home-desktop.jpgis excluded by!**/*.jpgpublic/templates/fintech-trust/posters/page-contact.jpgis excluded by!**/*.jpgpublic/templates/fintech-trust/posters/page-home.jpgis excluded by!**/*.jpgpublic/templates/fintech-trust/posters/page-pricing.jpgis excluded by!**/*.jpgpublic/templates/fintech-trust/posters/page-product.jpgis excluded by!**/*.jpgpublic/templates/fintech-trust/posters/page-security.jpgis excluded by!**/*.jpgpublic/templates/portfolio-solo/posters/home-desktop.jpgis excluded by!**/*.jpgpublic/templates/portfolio-solo/posters/page-about.jpgis excluded by!**/*.jpgpublic/templates/portfolio-solo/posters/page-contact.jpgis excluded by!**/*.jpgpublic/templates/portfolio-solo/posters/page-home.jpgis excluded by!**/*.jpgpublic/templates/portfolio-solo/posters/page-work.jpgis excluded by!**/*.jpgpublic/templates/portfolio-solo/posters/page-writing.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/blog-visual.e2e.spec.ts-snapshots/blog-index-desktop-chromium-linux.pngis excluded by!**/*.pngtests/e2e/blog-visual.e2e.spec.ts-snapshots/blog-index-mobile-chromium-linux.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-commerce-brand-collection-desktop-chromium-darwin.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-commerce-brand-collection-desktop-chromium-linux.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-commerce-brand-collection-mobile-chromium-darwin.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-commerce-brand-collection-mobile-chromium-linux.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-commerce-brand-contact-desktop-chromium-darwin.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-commerce-brand-contact-desktop-chromium-linux.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-commerce-brand-contact-mobile-chromium-darwin.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-commerce-brand-contact-mobile-chromium-linux.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-commerce-brand-home-desktop-chromium-darwin.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-commerce-brand-home-desktop-chromium-linux.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-commerce-brand-home-mobile-chromium-darwin.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-commerce-brand-home-mobile-chromium-linux.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-commerce-brand-journal-desktop-chromium-darwin.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-commerce-brand-journal-desktop-chromium-linux.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-commerce-brand-journal-mobile-chromium-darwin.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-commerce-brand-journal-mobile-chromium-linux.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-commerce-brand-story-desktop-chromium-darwin.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-commerce-brand-story-desktop-chromium-linux.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-commerce-brand-story-mobile-chromium-darwin.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-commerce-brand-story-mobile-chromium-linux.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-event-conference-home-desktop-chromium-darwin.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-event-conference-home-desktop-chromium-linux.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-event-conference-home-mobile-chromium-darwin.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-event-conference-home-mobile-chromium-linux.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-event-conference-schedule-desktop-chromium-darwin.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-event-conference-schedule-desktop-chromium-linux.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-event-conference-schedule-mobile-chromium-darwin.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-event-conference-schedule-mobile-chromium-linux.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-event-conference-speakers-desktop-chromium-darwin.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-event-conference-speakers-desktop-chromium-linux.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-event-conference-speakers-mobile-chromium-darwin.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-event-conference-speakers-mobile-chromium-linux.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-event-conference-tickets-desktop-chromium-darwin.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-event-conference-tickets-desktop-chromium-linux.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-event-conference-tickets-mobile-chromium-darwin.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-event-conference-tickets-mobile-chromium-linux.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-event-conference-venue-desktop-chromium-darwin.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-event-conference-venue-desktop-chromium-linux.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-event-conference-venue-mobile-chromium-darwin.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-event-conference-venue-mobile-chromium-linux.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-fintech-trust-contact-desktop-chromium-darwin.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-fintech-trust-contact-desktop-chromium-linux.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-fintech-trust-contact-mobile-chromium-darwin.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-fintech-trust-contact-mobile-chromium-linux.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-fintech-trust-home-desktop-chromium-darwin.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-fintech-trust-home-desktop-chromium-linux.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-fintech-trust-home-mobile-chromium-darwin.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-fintech-trust-home-mobile-chromium-linux.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-fintech-trust-pricing-desktop-chromium-darwin.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-fintech-trust-pricing-desktop-chromium-linux.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-fintech-trust-pricing-mobile-chromium-darwin.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-fintech-trust-pricing-mobile-chromium-linux.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-fintech-trust-product-desktop-chromium-darwin.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-fintech-trust-product-desktop-chromium-linux.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-fintech-trust-product-mobile-chromium-darwin.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-fintech-trust-product-mobile-chromium-linux.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-fintech-trust-security-desktop-chromium-darwin.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-fintech-trust-security-desktop-chromium-linux.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-fintech-trust-security-mobile-chromium-darwin.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-fintech-trust-security-mobile-chromium-linux.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-portfolio-solo-about-desktop-chromium-darwin.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-portfolio-solo-about-desktop-chromium-linux.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-portfolio-solo-about-mobile-chromium-darwin.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-portfolio-solo-about-mobile-chromium-linux.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-portfolio-solo-contact-desktop-chromium-darwin.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-portfolio-solo-contact-desktop-chromium-linux.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-portfolio-solo-contact-mobile-chromium-darwin.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-portfolio-solo-contact-mobile-chromium-linux.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-portfolio-solo-home-desktop-chromium-darwin.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-portfolio-solo-home-desktop-chromium-linux.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-portfolio-solo-home-mobile-chromium-darwin.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-portfolio-solo-home-mobile-chromium-linux.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-portfolio-solo-work-desktop-chromium-darwin.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-portfolio-solo-work-desktop-chromium-linux.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-portfolio-solo-work-mobile-chromium-darwin.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-portfolio-solo-work-mobile-chromium-linux.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-portfolio-solo-writing-desktop-chromium-darwin.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-portfolio-solo-writing-desktop-chromium-linux.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-portfolio-solo-writing-mobile-chromium-darwin.pngis excluded by!**/*.pngtests/e2e/templates-visual.e2e.spec.ts-snapshots/template-portfolio-solo-writing-mobile-chromium-linux.pngis excluded by!**/*.png
📒 Files selected for processing (54)
CONTRIBUTING.mdREADME.mdcontent/blog/build-first-payload-v3-landing-page.mdxcontent/blog/how-renderblocks-works.mdxcontent/blog/what-is-a-payload-cms-block.mdxcontent/docs/components/content-feature-media.mdxcontent/docs/components/content-image-lead.mdxcontent/docs/components/content-list.mdxcontent/docs/first-block.mdxcontent/docs/payload-blocks.mdxpublic/templates/commerce-brand/PROVENANCE.mdpublic/templates/event-conference/PROVENANCE.mdpublic/templates/fintech-trust/PROVENANCE.mdpublic/templates/portfolio-solo/PROVENANCE.mdsrc/app/blog/page.tsxsrc/app/docs/[[...slug]]/page.tsxsrc/app/templates/[slug]/page.tsxsrc/app/templates/page.tsxsrc/components/site/RunnableCommand.tsxsrc/components/site/templates/TemplateGalleryFilter.tsxsrc/components/site/templates/commerce-brand/FieldnoteCounter.tsxsrc/components/site/templates/commerce-brand/Shell.tsxsrc/components/site/templates/commerce-brand/theme.csssrc/components/site/templates/event-conference/FrameworksFooter.tsxsrc/components/site/templates/event-conference/FrameworksHeader.tsxsrc/components/site/templates/event-conference/Shell.tsxsrc/components/site/templates/event-conference/lockup.tsxsrc/components/site/templates/event-conference/theme.csssrc/components/site/templates/fintech-trust/LedgerlineFooter.tsxsrc/components/site/templates/fintech-trust/LedgerlineHeader.tsxsrc/components/site/templates/fintech-trust/LedgerlineMark.tsxsrc/components/site/templates/fintech-trust/Shell.tsxsrc/components/site/templates/fintech-trust/theme.csssrc/components/site/templates/portfolio-solo/RenkoHeader.tsxsrc/components/site/templates/portfolio-solo/RenkoSignOff.tsxsrc/components/site/templates/portfolio-solo/Shell.tsxsrc/components/site/templates/portfolio-solo/theme.csssrc/components/site/templates/shells.tssrc/lib/analytics.tssrc/lib/site.tssrc/lib/templates/commerce-brand.tssrc/lib/templates/event-conference.tssrc/lib/templates/fintech-trust.tssrc/lib/templates/portfolio-solo.tssrc/lib/templates/registry.tssrc/lib/templates/types.tstests/e2e/blog.e2e.spec.tstests/e2e/frontend.e2e.spec.tstests/e2e/templates.e2e.spec.tstests/int/blog-content.int.spec.tstests/int/fumadocs-site.int.spec.tstests/int/inventory-sync.int.spec.tstests/int/template-showcases.int.spec.tstools/payload-components/cli.ts
| <div | ||
| id="fieldnote-mobile-navigation" | ||
| hidden={!open} | ||
| className="absolute right-0 top-12 z-50 flex w-60 flex-col gap-1 rounded-panel border border-border bg-popover p-3 shadow-lg" | ||
| > |
There was a problem hiding this comment.
🎯 Functional Correctness | 🔴 Critical | ⚡ Quick win
hidden={!open} is defeated by the flex utility — the mobile panel never hides.
The hidden attribute only gets display: none from the UA stylesheet, which any author-origin declaration overrides. flex on the same element sets display: flex unconditionally, so the disclosure panel stays visible (and in the a11y tree) at all mobile widths while aria-expanded reports false. Note RenkoHeader.tsx avoids this because its panel carries no display utility.
Drive the display from state instead:
🐛 Proposed fix
<div
id="fieldnote-mobile-navigation"
hidden={!open}
- className="absolute right-0 top-12 z-50 flex w-60 flex-col gap-1 rounded-panel border border-border bg-popover p-3 shadow-lg"
+ className={cn(
+ 'absolute right-0 top-12 z-50 w-60 flex-col gap-1 rounded-panel border border-border bg-popover p-3 shadow-lg',
+ open ? 'flex' : 'hidden',
+ )}
>📝 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.
| <div | |
| id="fieldnote-mobile-navigation" | |
| hidden={!open} | |
| className="absolute right-0 top-12 z-50 flex w-60 flex-col gap-1 rounded-panel border border-border bg-popover p-3 shadow-lg" | |
| > | |
| <div | |
| id="fieldnote-mobile-navigation" | |
| hidden={!open} | |
| className={cn( | |
| 'absolute right-0 top-12 z-50 w-60 flex-col gap-1 rounded-panel border border-border bg-popover p-3 shadow-lg', | |
| open ? 'flex' : 'hidden', | |
| )} | |
| > |
🤖 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/commerce-brand/FieldnoteCounter.tsx` around
lines 240 - 244, Update the mobile navigation panel in FieldnoteCounter so its
display class is controlled by open instead of relying on the hidden attribute
alongside an unconditional flex utility. Preserve the flex layout when open and
ensure the closed state uses a display-none class, keeping aria-expanded and the
existing panel styling intact.
| const compliance = [ | ||
| 'SOC 2 Type II', | ||
| 'PCI DSS Level 1', | ||
| 'ISO 27001-aligned controls', | ||
| 'Annual third-party audit', | ||
| ] as const |
There was a problem hiding this comment.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
Compliance copy and provenance claim disagree. The provenance file promises that only industry programmes are named, while the footer lists specific certification/attestation schemes for a fictional company.
src/components/site/templates/fintech-trust/LedgerlineFooter.tsx#L40-L45: rewordSOC 2 Type IIandPCI DSS Level 1to the "-aligned controls" phrasing already used for ISO 27001.public/templates/fintech-trust/PROVENANCE.md#L3-L10: soften the "never a named ... certificate" clause so it matches whatever the footer ends up saying.
📍 Affects 2 files
src/components/site/templates/fintech-trust/LedgerlineFooter.tsx#L40-L45(this comment)public/templates/fintech-trust/PROVENANCE.md#L3-L10
🤖 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/fintech-trust/LedgerlineFooter.tsx` around
lines 40 - 45, Update the compliance entries in
src/components/site/templates/fintech-trust/LedgerlineFooter.tsx lines 40-45 so
SOC 2 and PCI DSS use “-aligned controls” wording like ISO 27001. Update the
provenance clause in public/templates/fintech-trust/PROVENANCE.md lines 3-10 to
accurately match the revised footer language, removing the absolute claim that
named certificates are never used.
| <div | ||
| className="absolute right-0 top-12 z-50 flex w-60 flex-col border border-border bg-popover p-1.5 shadow-lg" | ||
| hidden={!open} | ||
| id="ledgerline-mobile-navigation" | ||
| > |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟠 Major | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
fd -t f 'theme.css' src/components/site/templates --exec rg -n --with-filename 'hidden\]' {}Repository: Ducksss/payload-components
Length of output: 681
🏁 Script executed:
#!/bin/bash
set -euo pipefail
echo "Candidate files:"
fd -t f 'LedgerlineHeader.tsx|theme.css' src/components/site/templates/fintech-trust
echo
echo "LedgerlineHeader relevant ranges:"
sed -n '130,205p' src/components/site/templates/fintech-trust/LedgerlineHeader.tsx
echo
echo "Search for mobile-navigation theme/global overrides:"
rg -n --with-filename 'ledgerline-mobile-navigation|data-ledgerline-menu|flex-col flex[^\S\n\{]' src/components/site/templates/fintech-trust src -g '*.css' -g '*.tsx' | head -120Repository: Ducksss/payload-components
Length of output: 4817
Do not use hidden on the flex mobile panel.
The flex utility sets display:flex, which overrides the UA [hidden] { display: none } rule; with open === false this panel stays visible and its links stay focusable. Replace the always-applied flex with a conditional layout class, e.g. open ? 'flex' : 'hidden'.
🤖 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/fintech-trust/LedgerlineHeader.tsx` around
lines 174 - 178, Update the mobile navigation panel in LedgerlineHeader so its
layout class is conditional on open: apply flex only when open and hidden
otherwise. Remove the always-applied flex class while preserving the panel’s
existing positioning, styling, and id.
| 'Taking new projects from October.', | ||
| ] as const | ||
|
|
||
| const elsewhereLines = ['[email protected]', 'Notes, monthly-ish', 'Tallinn — EET (UTC+3)'] as const |
There was a problem hiding this comment.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
Use a reserved domain for the fictional email, as commerce-brand does.
renko.studio is a registrable domain that may belong to a real party, so published "fictional" contact copy can point readers at someone real. public/templates/commerce-brand/PROVENANCE.md and commerce-brand/Shell.tsx already settled on the reserved .example convention for exactly this reason.
✏️ Proposed fix
-const elsewhereLines = ['[email protected]', 'Notes, monthly-ish', 'Tallinn — EET (UTC+3)'] as const
+const elsewhereLines = ['[email protected]', 'Notes, monthly-ish', 'Tallinn — EET (UTC+3)'] as const📝 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 elsewhereLines = ['ilse@renko.studio', 'Notes, monthly-ish', 'Tallinn — EET (UTC+3)'] as const | |
| const elsewhereLines = ['ilse@renko.example', 'Notes, monthly-ish', 'Tallinn — EET (UTC+3)'] as const |
🤖 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/portfolio-solo/Shell.tsx` at line 37, Update
the fictional email in elsewhereLines to use the reserved .example domain,
matching the convention established by the commerce-brand template, while
leaving the surrounding contact copy unchanged.
| // Pull backtick-quoted component slugs from the marker-delimited README table. | ||
| const extractReadmeInventoryNames = (source: string): string[] => { | ||
| const start = source.indexOf('<!-- COMPONENT-INVENTORY:START -->') | ||
| const end = source.indexOf('<!-- COMPONENT-INVENTORY:END -->') | ||
| if (start === -1 || end === -1 || end < start) { | ||
| throw new Error('README is missing the COMPONENT-INVENTORY markers.') | ||
| } | ||
| const block = source.slice(start, end) | ||
| const names: string[] = [] | ||
| for (const line of block.split('\n')) { | ||
| // Rows look like: | `name` | `npx payload-components add name` | | ||
| const match = /^\|\s*`([a-z0-9-]+)`\s*\|/.exec(line) | ||
| if (match) names.push(match[1]) | ||
| } | ||
| return names |
There was a problem hiding this comment.
🗄️ Data Integrity & Integration | 🟡 Minor | ⚡ Quick win
Validate the README install commands too.
extractReadmeInventoryNames discards the command column, so a mistyped command can pass this test even though the README/CLI installation contract is broken. Parse each row’s command and assert it equals npx payload-components add ${name} in addition to checking names and order.
Also applies to: 57-64
🧰 Tools
🪛 OpenGrep (1.25.0)
[ERROR] 41-41: Dynamic command passed to child_process.exec/execSync. Use child_process.execFile or spawn with an argument array instead.
(coderabbit.command-injection.exec-js)
🤖 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/inventory-sync.int.spec.ts` around lines 30 - 44, Update
extractReadmeInventoryNames to parse and retain each inventory row’s install
command alongside its component name, then validate every command equals the
expected `npx payload-components add ${name}` form while preserving the existing
name and order checks. Extend the related assertions in the inventory sync test
to fail on command mismatches.
…eroes (#358) * feat(templates): motion on the gallery and detail surfaces The /templates gallery and detail pages were the only static surfaces left in the template showcase — all the motion lived inside the previews. This brings motion.dev to the two pages visitors actually land on first, functionally. Gallery: - Category filtering is now layout-animated. TemplateGalleryFilter owns which cards are mounted (the page still builds them on the server and hands them over as rendered elements, so every concept ships in the initial HTML and the showcase registry stays out of the client bundle). AnimatePresence with mode="popLayout" pulls exiting cards out of flow, survivors glide to their new grid slots via layout="position", and arrivals fade in — the visitor sees what changed instead of a snap. - Staggered first-paint entrance: 45ms apart on a near-critically-damped spring, whole set settled in ~500ms. - Springed poster hover lift, gated on (hover: hover) and (pointer: fine). - A role="status" result count announces the reflow. Detail: - Below-fold section content rises once via the new TemplateReveal. The hero, the live preview, and the concept disclosure never animate. - Recipe rows swap their ordinal for an outbound arrow on hover and keyboard focus, reinforcing that every chip resolves to a real installable block. - Palette swatches deal themselves in. Contracts held: the gallery still mounts zero iframes and the detail page one; transform/opacity only; reduced motion zeroes every transition and template-surface-motion.css pins the finished frame pre-hydration; SSR and client render the same tree (the transition is branched, never the JSX). The first-paint gallery entrance is deliberately transform-only — the cards carry a filled primary CTA and axe scans mid-animation, so an opacity fade there would alpha-composite that button toward the page background and fail AA transiently. Co-Authored-By: Claude Opus 5 <[email protected]> * feat(templates): vary inner-page heroes across the six concepts Three of the six concepts get one motivated inner-page hero each; the other three keep hero-basic throughout on purpose. Co-Authored-By: Claude Opus 5 <[email protected]> * chore(templates): recapture affected posters + re-mint darwin baselines Co-Authored-By: Claude Opus 5 <[email protected]> * test(chore): mint Linux visual baselines (templates-visual) (#359) 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>
Static snapshot whose tree is identical to dev, parented on both branches so the promote PR is mergeable despite squash-promote history divergence. Includes the full templates program through #358.
f767f65 to
48762af
Compare
Records the previously squash-promoted main history (#351) on the promotion branch while preserving the current dev tree verbatim, so GitHub can merge the promotion without squash-divergence conflicts.
Promotion summary
Promotes the current
devintegration branch tomain. The effective production delta is 166 files: 8,515 additions and 76 deletions, covering the tendevPRs that landed after the previous promotion (#334).The branch tree is byte-identical to
dev(git diff HEAD origin/devis empty). Its head is a synchronize commit whose parents are the currentdevtip and the currentmaintip; it records the previously squash-promotedmainhistory so GitHub can merge the promotion without hitting squash-divergence conflicts. This is the same shape used for #334.What ships
Six-concept template gallery (#340, #349)
/templatesfrom two concepts to six, adding Fieldnote (specialty-coffee commerce), Frameworks '26 (conference — the gallery's first dark-first concept), Ledgerline (money-movement infrastructure), and Ilse Renko (solo maker portfolio).PROVENANCE.md.color-mix()plates, duotone screens, ledger-sheet art — so the concepts ship no raster assets beyond captured posters.Install-entry SEO and guide routing (#338, #336, #339, #347, #345)
content-list,content-image-lead,content-feature-media) into attributed install entries:seoTitleplus install-focused descriptions and primary-emphasis trackedRunnableCommandCTAs.seoTitlemetadata precedence and adds anemphasisprop toRunnableCommand.Blog index as a Payload guide gateway (#348)
Inventory sync and CLI help drift guard (#333)
Current componentshelp fromregistry.json— it had drifted, missinghero-aurora,hero-kinetic, and thecomparator-*entries, and was out of order.tests/int/inventory-sync.int.spec.ts, which fails when the README table or CLI help drift fromregistry.json(order and completeness).CONTRIBUTING.mdwhatpnpm test:packcovers and when to run the packed CLI smoke locally. Closes docs: sync README and CLI component inventories with the registry #103, closes ci: run the packed CLI smoke before release-sensitive publishes #113.Analytics (#343)
source_path, so the same CTA no longer splits across fragment variants.Provenance and governance note
Four of the delta commits (#349, #348, #338, and the guard hardening carried with them) are deliberate re-lands of
tin-computer[bot]PRs with undisclosed self-promotion removed. Each upstream PR bundled a "Growth by Tin" backlink tohttps://tin.computerintoSiteFooter— out of scope for its stated purpose — and inverted thecommunity-ownedguard test that exists to keep that backlink out.The re-lands keep the legitimate work and restore the footer and guard. The guard was also hardened to match a bare
66DC9Drather than the Tailwind-specificbg-[#66DC9D], because the swatch had been moved to an SVGfill="#66DC9D"that evaded the original string.Verified on this branch:
tin.computerand66DC9Dappear only inside the guard assertions intests/int/fumadocs-site.int.spec.ts;SiteFooter.tsxis clean.Release and dependency state
package.jsonstays at1.2.0on both branches, matching the published npmlatest. This promotion is content and tooling, not a release — the publish workflow will no-op. A bump is required before any future publish, since the workflow silently exits 0 on an already-published version.package.jsondependencies norpnpm-lock.yaml, so the six Dependabot advisories currently open againstmain(brace-expansion,fast-uri×2,js-yaml,sharp,@hono/node-server) are not addressed here and will remain open after merge. They need their own bumps intodevand a follow-up promotion.Validation and review focus
inventory-syncand expandedtemplate-showcases/templatesspecs.pr-gatecompletes and inspect the preview for/templates(all six concepts plus filtering), the blog index, the three reworked component pages, and the docs guides.component-docs.int.spec.ts:25. That is a known false positive on promotion PRs — it is test doc-linting over trusted local.mdx, not URL sanitization, and it resurfaces because of the large squash-divergence diff.After merge
Verify the production deployment, the public machine-readable endpoints, and
/templatesbefore communicating the gallery expansion.Summary by CodeRabbit
New Features
Documentation
Bug Fixes