Skip to content

fix: deep-review batch — stale override, focus visibility, AI-surface depth, doc drift - #520

Merged
Ducksss merged 1 commit into
devfrom
fix/deep-review-batch
Sep 1, 2026
Merged

Ducksss merged 1 commit into
devfrom
fix/deep-review-batch

Conversation

@Ducksss

@Ducksss Ducksss commented Aug 31, 2026

Copy link
Copy Markdown
Owner

Applies the actionable findings from the four-lens deep review (security · GEO/AEO · aesthetics/a11y · hygiene). Everything here is zero-pixel-risk: the landing visual contract, geo, and a11y e2e suites pass unchanged.

Security

  • Bump brace-expansion overrides past GHSA-rgw5-rvv9-x895 (<1.1.18 → 1.1.18, >=4.0.0 <5.0.9 → 5.0.9). The old <1.1.17 pin actively held the vulnerable version on the eslint chain and blocked Dependabot's fix PR. pnpm audit is clean again.
  • MCP stdio robustness: a valid-JSON non-object frame (null\n) crashed the server loop; frames are now shape-checked before field access.

Accessibility

  • Visible keyboard focus: full-alpha :focus-visible base outline in globals.css (the outline-ring/50 default rendered ~2:1 on white for plain links — header nav, footer, FAQ summaries); catalog card focus-within ring raised from brand/25 to full brand.
  • Skip link in SiteHeader (targets #main on site pages, #nd-page on docs) + id="main" on every site <main>.
  • aria-label for the preview-frame Open link (its text label is hidden below sm).

GEO / AEO

  • getLLMText appends the manifest-derived install contract on component doc pages — files copied, wiring edits, requirements, admin usage — so /docs/components/*.md, Copy Markdown, and /llms-full.txt stop serving stubs for ~60 pages. Purely additive; geo pins untouched.
  • llms.txt: doc URLs appended to component lines (pinned title: command substring preserved), plus a markdown-convention note and a pointer at the CLI's MCP server. llms-full.txt gains a ## Templates section.
  • Markdown twins now send X-Robots-Tag: noindex (they were indexable duplicates of the HTML pages); one header in the llms.mdx route covers the direct route, .md rewrites, and content negotiation.
  • Crawl cache headers for /llms.txt, /llms-full.txt, /blog/rss.xml; blog RSS gains atom:link rel=self + lastBuildDate; a sitewide text/plain head alternate advertises /llms.txt (chosen over a visible footer link to keep the fullPage landing baselines inert).
  • siteOpenGraphDefaults spread restores og:site_name/og:locale on the 9 pages that declare their own openGraph (Next 16 doesn't deep-merge with the root layout).
  • robots: add Claude-User, Claude-SearchBot, MistralAI-User; drop the WebSite SearchAction that pointed at the robots-disallowed JSON /api/search; catalog ItemList counts installable entries only (upcoming teasers had duplicate /components URLs and inflated numberOfItems).

Aesthetics

  • Token-rename sweep in site chrome: tracking-[0.18em] → tracking-eyebrow, rounded-[1rem/1.25rem/1.5rem] → rounded-inset/card/panel across 10 files (values bit-identical — pure refactor the visual-standards int test couldn't see because it only scans component source).
  • --radius-2xl/3xl derived from --radius (default-identical), so the catalog radius preview now reaches the 37 rounded-2xl/3xl uses it previously skipped.
  • Pruned two dead keyframes (component-fade-rise, component-node-on); blog OG emerald unified with the other three generators (#047857 → #059669).

Docs (drift found by the review)

  • ROADMAP: 77 blocks (family count made stale-proof), shadcn-directory listing moved from "Exploring" to Current State (registry: submit Payload Components to the shadcn registry index #16 shipped 2026-06-24).
  • payload-components/README.md: POC "Viability Gate" reframed as the enforced install contract; drops the stale "private registries, auth" framing — the one commercial-residue hit in the repo.
  • SECURITY.md: supported-versions clause now matches the npm release reality.
  • CONTRIBUTING: brittle spec counts ("32 of its 46") replaced with rounding language; docs index drops "v2 app" jargon.

Test pins updated in lockstep

  • fumadocs-site.int.spec.ts: next.config cache-header expectation (+3 rules) and the "v2 app" sentence.
  • geo.e2e.spec.ts: the "v2 app" sentence.

Verified locally

pnpm audit clean · pnpm lint · tsc --noEmit · pnpm format:check · full test:int (620 passed) · e2e geo + a11y (86 passed) · landing visual contract (baselines unchanged).

Deliberately deferred (from the review, need their own judgment/PRs)

CSP header · SHA-pinning pnpm/action-setup in the publish workflow (needs the ref-exact allowlist updated first or CI wedges) · hero H1 opacity-fade vs the LCP guardrail (owner call) · marquee off-screen pause · blog/template markdown twins · on-site changelog page · npm next dist-tag cleanup (npm dist-tag rm payload-components next).

🤖 Generated with Claude Code

Copilot AI lite review requested due to automatic review settings August 31, 2026 18:47
@Ducksss
Ducksss enabled auto-merge (squash) August 31, 2026 18:47

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@vercel

vercel Bot commented Aug 31, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
payload-components Ready Ready Preview Aug 31, 2026 6:55pm
payload-components-97bf Ready Ready Preview Aug 31, 2026 6:55pm

@coderabbitai

coderabbitai Bot commented Aug 31, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 40 minutes.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 44db2d9f-d4f8-4f32-ac41-32f34ae38d5f

📥 Commits

Reviewing files that changed from the base of the PR and between 6fd8206 and 8315491.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (41)
  • CONTRIBUTING.md
  • ROADMAP.md
  • SECURITY.md
  • content/docs/index.mdx
  • next.config.mjs
  • package.json
  • payload-components/README.md
  • src/app/about/page.tsx
  • src/app/blog/[slug]/page.tsx
  • src/app/blog/page.tsx
  • src/app/blog/rss.xml/route.ts
  • src/app/brand-guide/page.tsx
  • src/app/components/page.tsx
  • src/app/docs/[[...slug]]/page.tsx
  • src/app/globals.css
  • src/app/llms-full.txt/route.ts
  • src/app/llms.mdx/docs/[[...slug]]/route.ts
  • src/app/llms.txt/route.ts
  • src/app/not-found.tsx
  • src/app/og/blog/[slug]/image.png/route.tsx
  • src/app/page.tsx
  • src/app/privacy/page.tsx
  • src/app/robots.ts
  • src/app/templates/[slug]/page.tsx
  • src/app/templates/page.tsx
  • src/components/site/ComponentCard.tsx
  • src/components/site/ComponentPreviewFrame.tsx
  • src/components/site/HeroProductFrame.tsx
  • src/components/site/SiteFooter.tsx
  • src/components/site/SiteHeader.tsx
  • src/components/site/WiringLedger.tsx
  • src/components/site/graphics/PreviewSurface.tsx
  • src/components/site/graphics/WiringFlowCanvas.tsx
  • src/components/site/graphics/WiringNodeMap.tsx
  • src/components/site/section.tsx
  • src/lib/site.ts
  • src/lib/source.ts
  • src/lib/structured-data.ts
  • tests/e2e/geo.e2e.spec.ts
  • tests/int/fumadocs-site.int.spec.ts
  • tools/payload-components/commands/mcp.ts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

… depth, doc drift

Security
- Bump the brace-expansion overrides past GHSA-rgw5-rvv9-x895 (1.1.18 / 5.0.9);
  the old <1.1.17 pin actively held the vulnerable version and blocked
  Dependabot. pnpm audit is clean again.
- Harden the MCP stdio loop against valid-JSON non-object frames (`null\n`
  killed the server).

Accessibility
- Full-alpha :focus-visible base outline (the outline-ring/50 default left
  plain links with a near-invisible focus ring), full-alpha catalog card focus
  ring, skip-to-content link in SiteHeader with id="main" landmarks, accessible
  name for the preview-frame Open link on mobile.

GEO / AEO
- getLLMText now appends the manifest-derived install contract on component doc
  pages, so the .md twins and /llms-full.txt stop serving stubs for ~60 pages.
- llms.txt: doc URLs on component lines, markdown-convention + MCP notes;
  llms-full.txt gains a Templates section.
- Markdown twins send X-Robots-Tag: noindex (indexable duplicates); llms
  surfaces and /blog/rss.xml get crawl cache headers; blog RSS gains atom:self
  + lastBuildDate; head alternate advertises /llms.txt sitewide.
- siteOpenGraphDefaults spread restores og:site_name/locale on every page that
  declares its own openGraph (Next 16 non-inheritance).
- robots: add Claude-User, Claude-SearchBot, MistralAI-User; drop the
  SearchAction pointing at the robots-disallowed JSON endpoint; catalog
  ItemList counts installable entries only.

Aesthetics
- Rename raw tracking/radius arbitraries in site chrome to the tokens they
  equal (bit-identical); derive --radius-2xl/3xl from --radius so the catalog
  radius preview reaches rounded-2xl/3xl blocks; prune two dead keyframes;
  unify the blog OG emerald with the other generators.

Docs
- ROADMAP: 77 blocks, shadcn-directory listing shipped (#16); registry README
  de-POC'd (drops the "private registries, auth" framing); SECURITY.md
  supported-versions clause matches the npm release reality; CONTRIBUTING spec
  counts made stale-proof; docs index drops "v2 app" jargon (geo/int pins
  updated in lockstep, plus the next.config header pin).

Co-Authored-By: Claude Fable 5 <[email protected]>

This branch was successfully deployed

2 active deployments
Preview – payload-components-97bf — 83154919 Deployed Aug 31, 2026 by vercel[bot]
Preview – payload-components — 83154919 Deployed Aug 31, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants