Skip to content

docs(chore): clean up repository docs and structure - #592

Merged
Ducksss merged 1 commit into
mainfrom
claude/repo-cleanup-docs-100b56
Oct 3, 2026
Merged

Ducksss merged 1 commit into
mainfrom
claude/repo-cleanup-docs-100b56

Conversation

@Ducksss

@Ducksss Ducksss commented Oct 3, 2026 •

Copy link
Copy Markdown
Owner

Summary

A repository cleanup: docs say true things, each topic has one home, and two misplaced files move to where their siblings live. No published-CLI behavior, component source, or URL changes.

Root and workspace docs

  • README (also the npm page): fold the orphaned "Installer recovery and component releases" section that sat after the link definitions into Maintain An Install and Start From A Bare Payload App. Split the long Use A Component section into Usage subsections, give the 80-row inventory its own All Components section, condense the 17-line demo-seed safety paragraph (the seed guide keeps the full model), and replace the duplicated checks table with a pointer to CONTRIBUTING. Fix What Lives Here (src/lib/site.ts no longer holds component entries; add blog, messages, templates, rfcs/docs). The inventory block and pinned strings are byte-identical.
  • CONTRIBUTING: add the missing pnpm source:build setup step, the new generator, and the versioned-source rule that only lived in the README's orphaned section; fix a module path.
  • AGENTS.md: refresh the repo map (routes live under src/app/[locale]/; add templates, blog, i18n, other tools/, rfcs//docs/), fix the doc-page route path, list Newsletter Callout as file-only, add blog/template/translation rows to "Where to change things", expand "Deeper docs", and move the shadcn directory-listing runbook into payload-components/README.md (agents keep a pointer).
  • ROADMAP: three file-only components (Newsletter Callout shipped, component: add newsletter-callout shadcn-native component #134), drop the closed hero H1 item (landing: decide the hero H1 entrance vs the no-LCP-fade guardrail #523), prune 16 unused link definitions.
  • DESIGN.md: the site is English-only since 1.6.0; the 22-language switcher line was stale.
  • payload-components/README.md: init --scaffold and the full lifecycle, update in the source-ownership section, accurate pr-gate description (consumer jobs are classified), the manual smoke test now uses --cwd (it previously targeted this repo), complete Files list.
  • docs/README.md: new index saying what docs/ is (dated maintainer records, not guidance) versus content/docs/ (the site) and rfcs/; marks docs/superpowers/ as historical.

Public docs site

  • Regroup the sidebar: Get Started (6 onboarding pages), Components, Guides (the 8 Payload how-tos that were mixed into Get Started), Reference, Project (design, contributing, operations, AI discovery). URLs are unchanged; tests pin page membership, not sections.
  • registry.mdx / architecture.mdx / contributing.mdx: mention update in the source-ownership note, list Newsletter Callout as file-only, point contributors at the new generator. Same fix for the catalog's Post components description.

File moves

  • payload-components/templates/component-template/ → payload-components/component-template/. templates/ now holds only the generated template contracts, and the contributor scaffold stops shipping in the npm tarball (files includes payload-components/templates/). Updated new.ts, two int specs, tsconfig/eslint excludes, the blog catalog path, and regenerated the one blog figure that quotes it (provenance line only).
  • tests/e2e/consent.ts → tests/e2e/support/consent.ts, next to the other e2e helpers.

Verification

  • pnpm lint, pnpm format:check, pnpm source:build, pnpm exec tsc --noEmit, pnpm test:registry
  • pnpm run test:int — 803 passed, 1 skipped (opt-in pack case)
  • pnpm test:pack — passed; npm pack --dry-run ships 0 scaffold files and all 15 template contracts
  • pnpm blog:visuals:figures — only contribute-payload-component/figure-01 changed (provenance path)
  • pnpm build:e2e + production e2e (all specs, one batch) — 416 passed, 240 skipped (macOS skips screenshot comparisons; Linux CI runs them), 0 failed
  • Built site checked in the browser: the sidebar renders Get Started / Components / Guides / Reference / Project, and the catalog carries the updated Post components copy

Notes

  • Not done here: deleting docs/superpowers/ (8 shipped July plans/specs). It is marked historical in docs/README.md instead.
  • GitHub blob/main links to the moved scaffold README resolve once this merges.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Documentation
    • Clarified contributor setup, component scaffolding, accessibility, versioning, and release checks.
    • Expanded guidance on localization, installed component updates, demo content, and recovery.
    • Updated project maps and reorganized documentation for easier navigation.
  • Developer Tools
    • Updated component scaffolding instructions and related checks to match the current workflow.

- README: fold the orphaned trailing section into Usage, split the long
  getting-started flow into Usage subsections, give the component
  inventory its own section, condense the demo-seed paragraph, and point
  the duplicated checks table at CONTRIBUTING.
- Refresh stale facts: AGENTS.md (routes under src/app/[locale], repo
  map, Newsletter Callout as file-only), ROADMAP (#134 shipped, #523
  closed, unused link refs), DESIGN.md (English-only site), CONTRIBUTING
  (source:build, versioned-source rule), and payload-components/README
  (update, init --scaffold, pr-gate classification, --cwd smoke test,
  shadcn directory listing moved here from AGENTS.md).
- Regroup the docs sidebar into Get Started, Components, Guides,
  Reference, and Project. URLs are unchanged.
- Move payload-components/templates/component-template to
  payload-components/component-template so the contributor scaffold no
  longer ships in the npm package, and tests/e2e/consent.ts into
  tests/e2e/support/. Regenerate the blog figure that quotes the
  scaffold README path.
- Add docs/README.md describing the maintainer-records folder.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Copilot AI balanced review requested due to automatic review settings October 3, 2026 10:59
@vercel

vercel Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
payload-components Ready Ready Preview Oct 3, 2026 11:01am UTC
payload-components-97bf Ready Ready Preview Oct 3, 2026 11:01am UTC

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.

@coderabbitai

coderabbitai Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

🧰 Additional context used
📚 Code guidelines (2)
README.md — configured
CONTRIBUTING.md — configured

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: Ducksss/payload-components/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: c4eaa99f-f19e-4c7f-9b15-7bb5ec5f8362
📥 Commits

Reviewing files that changed from the base of the PR and between 0756ca8 and 417ddca.

⛔ Files ignored due to path filters (1)
  • public/blog/contribute-payload-component/figure-01-contribution-workflow.svg is excluded by !**/*.svg
📒 Files selected for processing (36)
  • AGENTS.md
  • CONTRIBUTING.md
  • DESIGN.md
  • README.md
  • ROADMAP.md
  • content/blog/contribute-payload-component.mdx
  • content/docs/architecture.mdx
  • content/docs/cli.mdx
  • content/docs/contributing.mdx
  • content/docs/meta.json
  • content/docs/registry.mdx
  • docs/README.md
  • eslint.config.mjs
  • payload-components/README.md
  • payload-components/component-template/Component.tsx
  • payload-components/component-template/README.md
  • payload-components/component-template/config.ts
  • payload-components/component-template/doc-page.mdx
  • payload-components/component-template/manifest.json
  • playwright.config.ts
  • src/lib/analytics.ts
  • src/lib/component-catalog.ts
  • tests/e2e/blog-visual.e2e.spec.ts
  • tests/e2e/blog.e2e.spec.ts
  • tests/e2e/consent.e2e.spec.ts
  • tests/e2e/content-security-policy.e2e.spec.ts
  • tests/e2e/frontend.e2e.spec.ts
  • tests/e2e/support/consent.ts
  • tests/e2e/templates-visual.e2e.spec.ts
  • tests/e2e/templates.e2e.spec.ts
  • tests/e2e/webkit-landing.e2e.spec.ts
  • tests/int/payload-components-new-command.int.spec.ts
  • tests/int/payload-components.int.spec.ts
  • tools/blog/visual-system/catalog.ts
  • tools/payload-components/commands/new.ts
  • tsconfig.json

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.


📝 Walkthrough

Walkthrough

The PR updates repository, contributor, and install documentation. It records locale and component details, relocates component-template tooling, and updates consent-helper references in end-to-end tests.

Changes

Repository and tooling guidance

Layer / File(s) Summary
Repository map and published site guidance
AGENTS.md, DESIGN.md, README.md, ROADMAP.md, content/docs/architecture.mdx, content/docs/meta.json, docs/README.md, src/lib/component-catalog.ts
Repository and site documentation describes locale-scoped routes, templates, blog content, and component details. The roadmap lists Newsletter Callout as a file-only article component.
Install, registry, and recovery guidance
README.md, AGENTS.md, payload-components/README.md, content/docs/registry.mdx
Documentation describes install, update, recovery, and demo-seeding workflows, registry listing details, and release-gate classification.
Component scaffolding and authoring references
CONTRIBUTING.md, content/blog/contribute-payload-component.mdx, content/docs/cli.mdx, content/docs/contributing.mdx, payload-components/README.md, payload-components/component-template/*, tools/payload-components/commands/new.ts, tools/blog/visual-system/catalog.ts, eslint.config.mjs, tsconfig.json, tests/int/*
The component template is documented and loaded from payload-components/component-template. Related contributor instructions, configuration, and integration tests use the relocated path.
Consent helper references
playwright.config.ts, src/lib/analytics.ts, content/docs/contributing.mdx, tests/e2e/*.spec.ts
Playwright configuration, documentation, comments, and end-to-end tests reference consent helpers under tests/e2e/support/consent.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~12 minutes

Change: Other

Merge Risk: ⚪ Minimal · up to 417dd

The documented smoke-test commands target the intended consumer project. No actionable issue is established before merge.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the repository documentation cleanup and structure changes.
Description check ✅ Passed The description provides a detailed summary, verification results, and notes. It omits the template’s Registry Checklist section; the described changes do not appear to include registry or component c…
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 16 files. (16 skipped: …
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

@Ducksss
Ducksss merged commit 599e179 into main Oct 3, 2026
17 checks passed
@Ducksss
Ducksss deleted the claude/repo-cleanup-docs-100b56 branch October 3, 2026 11:56
Ducksss added a commit that referenced this pull request Oct 3, 2026
Resolve the move of tests/e2e/consent.ts to tests/e2e/support/consent.ts
from #592: carry this branch's expectConsentBannerReady helper and its
expect/Page imports onto the moved file, and point the a11y,
templates-a11y, and consent specs at the new path.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Ducksss Ducksss mentioned this pull request Oct 9, 2026

This branch was successfully deployed

2 active deployments
Preview – payload-components-97bf — 417ddca7 Deployed Oct 3, 2026 by vercel[bot]
Preview – payload-components — 417ddca7 Deployed Oct 3, 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