Repository navigation
feat(components): add the Footer family and three Stats variants - #452
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Warning Review limit reached
Next review available in: 25 minutes You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. 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: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (8)
📒 Files selected for processing (4)
📝 WalkthroughWalkthroughAdds six installable Payload components: three Stats variants and three Footer variants. The change includes shared field and URL helpers, manifests, registry entries, catalog integration, visual demos, documentation, provenance updates, and test updates. ChangesStats and footer components
Estimated code review effort: 4 (Complex) | ~60 minutes Sequence Diagram(s)sequenceDiagram
participant Payload
participant FooterColumnsBlock
participant getSafeFooterHref
participant Browser
Payload->>FooterColumnsBlock: provide footer block data
FooterColumnsBlock->>getSafeFooterHref: sanitize each link href
getSafeFooterHref-->>FooterColumnsBlock: safe URL or undefined
FooterColumnsBlock->>Browser: render valid footer links and content
Possibly related PRs
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 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: 2
🤖 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 `@payload-components/PROVENANCE.md`:
- Around line 42-44: Update the fenced URL example in PROVENANCE.md to specify
the text language identifier, while preserving the existing URL template
unchanged.
In `@tests/int/fumadocs-site.int.spec.ts`:
- Around line 892-894: Update the catalogDescription assertion in
fumadocs-site.int.spec.ts to require both “stats” and “footers” in the expected
category order, preserving the existing terms and ordering constraints.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 6bb99795-6bf3-435e-aa6f-cebfac018765
⛔ Files ignored due to path filters (8)
tests/e2e/components-visual.e2e.spec.ts-snapshots/component-footer-centered-chromium-darwin.pngis excluded by!**/*.pngtests/e2e/components-visual.e2e.spec.ts-snapshots/component-footer-columns-chromium-darwin.pngis excluded by!**/*.pngtests/e2e/components-visual.e2e.spec.ts-snapshots/component-footer-simple-chromium-darwin.pngis excluded by!**/*.pngtests/e2e/components-visual.e2e.spec.ts-snapshots/component-stats-card-chromium-darwin.pngis excluded by!**/*.pngtests/e2e/components-visual.e2e.spec.ts-snapshots/component-stats-grid-chromium-darwin.pngis excluded by!**/*.pngtests/e2e/components-visual.e2e.spec.ts-snapshots/component-stats-inline-chromium-darwin.pngis excluded by!**/*.pngtests/e2e/frontend.e2e.spec.ts-snapshots/landing-home-desktop-chromium-darwin.pngis excluded by!**/*.pngtests/e2e/frontend.e2e.spec.ts-snapshots/landing-home-mobile-chromium-darwin.pngis excluded by!**/*.png
📒 Files selected for processing (50)
README.mdcontent/docs/components/footer-centered.mdxcontent/docs/components/footer-columns.mdxcontent/docs/components/footer-simple.mdxcontent/docs/components/meta.jsoncontent/docs/components/stats-card.mdxcontent/docs/components/stats-grid.mdxcontent/docs/components/stats-inline.mdxcontent/docs/components/stats-proof.mdxpayload-components/PROVENANCE.mdpayload-components/manifests/footer-centered.jsonpayload-components/manifests/footer-columns.jsonpayload-components/manifests/footer-simple.jsonpayload-components/manifests/stats-card.jsonpayload-components/manifests/stats-grid.jsonpayload-components/manifests/stats-inline.jsonpayload-components/manifests/stats-proof.jsonpayload-components/registry.jsonpayload-components/source/blocks/FooterCentered/Component.tsxpayload-components/source/blocks/FooterCentered/config.tspayload-components/source/blocks/FooterColumns/Component.tsxpayload-components/source/blocks/FooterColumns/config.tspayload-components/source/blocks/FooterSimple/Component.tsxpayload-components/source/blocks/FooterSimple/config.tspayload-components/source/blocks/StatsCard/Component.tsxpayload-components/source/blocks/StatsCard/config.tspayload-components/source/blocks/StatsGrid/Component.tsxpayload-components/source/blocks/StatsGrid/config.tspayload-components/source/blocks/StatsInline/Component.tsxpayload-components/source/blocks/StatsInline/config.tspayload-components/source/blocks/StatsProof/config.tspayload-components/source/blocks/shared/footerFields.tspayload-components/source/blocks/shared/footerUrls.tspayload-components/source/blocks/shared/statsFields.tssrc/components/site/CatalogFamilyTeaser.tsxsrc/components/site/demos/FooterCenteredDemo.tsxsrc/components/site/demos/FooterColumnsDemo.tsxsrc/components/site/demos/FooterSimpleDemo.tsxsrc/components/site/demos/StatsCardDemo.tsxsrc/components/site/demos/StatsGridDemo.tsxsrc/components/site/demos/StatsInlineDemo.tsxsrc/components/site/demos/registry.tssrc/lib/component-page-tree.tsxsrc/lib/demo-content.tssrc/lib/site.tstests/e2e/frontend.e2e.spec.tstests/int/curated-tailark-ports.int.spec.tstests/int/fumadocs-site.int.spec.tstests/int/payload-components.int.spec.tstools/payload-components/cli.ts
30133f8 to
fd5d340
Compare
Ports the two largest tailark/blocks families we had not covered. Stats already existed as a category with one variant (stats-proof), so this adds three siblings rather than a new family: stats-grid (rule-topped number grid), stats-card (divided equal-column panel), and stats-inline (value-leads- the-sentence rows). stats-split was dropped from the plan — it would have duplicated stats-proof's split-narrative layout. Footer is a genuinely new category, placed last in the curated catalog order as the chrome that closes a layout rather than fills it: footer-columns (brand plus labelled link columns), footer-simple (compact brand/links row), and footer-centered (centred stack with a legal-links rule). Notes: - Extracts shared/statsFields.ts and refactors StatsProof onto it (0.2.0 -> 0.3.0), so the family shares one base per the variants model. Field shape and stored data are unchanged. - Adds shared/footerUrls.ts: footers are almost entirely a link surface and React does not sanitize href, so link hrefs are restricted to same-origin paths, HTTPS, mailto:, and tel: in both the admin validator and at render. - Link groups are labelled <nav> regions rather than headings, which avoids inventing an h2/h3 level a footer does not have. - No social-icon variant: lucide v1 removed the brand marks. - Footers are the first items with no shadcn UI dependency; they declare an explicit empty registryDependencies so the public-registry parity assert still matches. Darwin visual baselines minted for the six new components; the landing baselines move because the catalog teaser gains a Footer family card. Linux baselines still need the visual-baselines workflow. Co-Authored-By: Claude Opus 5 <[email protected]>
…#454) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…fence Two review findings from the footer/stats family add: - catalogDescription gained "stats" and "footers", but the ordered regex in fumadocs-site.int.spec.ts did not require either, so removing one from the copy would not have failed the gate. Both are now pinned in order. - The upstream-URL fence in PROVENANCE.md had no language identifier (markdownlint MD040). Co-Authored-By: Claude Opus 5 <[email protected]>
fd5d340 to
3a151e0
Compare
* ci: require closing keywords in a promote PR body #475 documented that closing keywords belong in the promote body, because a keyword on a feature PR is squashed away before it reaches main and never fires. Nothing enforced it, so a cycle could leak resolved issues the way v1.4.0 did. A `base: main` PR whose body carries neither a closing keyword nor the line "No issues closed this cycle." now fails. Its own workflow rather than a job in Registry Verification, because it has to re-run on `edited`: a maintainer adding keywords in response to a red check must be able to turn it green without pushing a commit. Adding `edited` to Registry Verification's trigger would re-run the full release gate, including four ~90-minute fresh-consumer shards, on every description tweak. The body reaches the script through the environment, never interpolated into `run:` — a PR description is untrusted input and would otherwise be a shell injection vector. Plain bash, so the ref-exact Actions allowlist needs no new entry, and no checkout or extra permissions. Accepts either a keyword or the opt-out line, so a pure dependency-bump promote is not forced to claim it closed something. The matcher is permissive about separators and accepts #123, owner/repo#123, and full issue URLs; a bare "#452" in a table row does not count. This checks presence, not completeness — verified against #473's real body, which passes on its one `closes #108` while three issues from that cycle leaked. Enumerating what a promote *should* close is the follow-up the issue describes. Making it block also needs the check added to main's branch protection. Closes #477 * read the body to EOF in every grep — -q SIGPIPEs printf on large matching bodies CodeRabbit flagged the matched-capture line (head -c inside the pipeline); verifying that locally surfaced the same defect one step earlier: grep -Eiq exits at the first match, printf takes SIGPIPE writing the rest, and under pipefail the whole condition reads false — so an oversized body WITH a valid keyword would fail the check. GitHub caps bodies at 65536 characters, which multibyte text pushes past the 64KiB pipe buffer, so this is reachable. Both greps now consume the body to EOF (-o for capture, -c for the opt-out count) with truncation applied after capture, outside the pipeline. Also scoped the AGENTS.md sentence per review: commit messages landing on main also fire keywords; the promote body is the reviewable place. Verified against the full 13-case matrix from the PR body plus three oversized-body cases (matching, non-matching, early match + padding): 16/16. YAML parses; prettier clean. Co-Authored-By: Claude Fable 5 <[email protected]> --------- Co-authored-by: Claude Fable 5 <[email protected]>
Ports the two largest
tailark/blocksfamilies we had not covered. 73 components after this (was 67).Stats — three siblings, not a new family
statsalready existed as a category withstats-proof, so this adds variants to it:stats-gridstats-cardstats-inlineThe planned
stats-splitwas dropped — it would have duplicatedstats-proof's split-narrative layout.Footer — a genuinely new category
Placed last in the curated catalog order, as the chrome that closes a layout rather than fills it.
footer-columnsfooter-simplefooter-centeredDecisions worth a look
stats-proofwas refactored onto a new sharedstatsFieldsbase (0.2.0→0.3.0). A family where one variant ignores the shared base contradicts the documented variants model. Field shape and stored data are unchanged, but its installed file set grew by one, so this touches a shipped component.shared/footerUrls.tsrestricts link hrefs to same-origin paths, HTTPS,mailto:, andtel:, in both the admin validator and at render. A footer is almost entirely links and React does not sanitizehref. NoteTeamGridships a raw href today, so this slightly tightens house posture rather than matching it.<nav>regions, not headings — a footer has no naturalh2to hang anh3off.footer-centeredcarries a legal-links row instead.public-registry.int.spec.tscompares againstregistryItem.registryDependencies, and an absent key fails the assert, so the footers declare an explicit[](which survivesshadcn build).Sync points touched beyond the template checklist
README inventory table, CLI help list,
familyRepresentatives, and four count pins (67 → 73). The catalog SEO description enumerates families and was missing stats as well as footers — both added.Verification
pnpm test:release→ exit 0 (500 int, 403 e2e).Darwin baselines minted for the six new components. The landing baselines legitimately move: the catalog teaser gains a Footer family card (+34px page height).
✅ Linux baselines landed via #454 (
visual-baselinesworkflow, specscomponents-visual frontend): 6 added component images + 2 updated landing images, nothing unrelated rewritten. Branch carries 73 linux baselines for 73 components.Rebased onto
dev(was 6 behind, through the 1.3.1 release). All 150 baseline blobs verified byte-identical after the rebase —git rebasecan silently drop a binary-only commit, so this was checked by blob rather than bygit log. dev added no components, so the 73 count is unchanged. Re-ranpnpm test:releaseon the rebased tree: exit 0, 44 int files, 405 e2e (includes dev's new WebKit wall guard, which is bounds-based and needs no baselines).Review fixes applied: the ordered catalog regex now actually pins
statsandfooters(it previously would not have caught their removal), and the PROVENANCE URL fence got a language tag (MD040).🤖 Generated with Claude Code
Summary by CodeRabbit
New Features
Documentation
Bug Fixes