Repository navigation
components(feat): group every block in Payload's admin Blocks Drawer - #654
Merged
Merged
Conversation
Each of the 79 block configs now sets admin.group to its family's FAMILIES label (Hero, Feature, Pricing, Call to action, ...), so an editor who installs many blocks sees them under the same headings the catalog uses instead of one undifferentiated wall. admin.group arrived in Payload 3.25.0; older Payload 3 Block types reject it (TS2353) and fail the consumer's tsc. The Payload 3 floor therefore moves to 3.25.0: - support-matrix.json records payloadMajorSupport["3"].minimumVersions.payload - every manifest declares peerDependencies.payload ^3.25.0 || ^4.0.0-0, and the support-matrix spec fails a range that starts anywhere else - doctor warns when the installed Payload is older; the docs Requirements line reads "v3 (3.25 or newer)" admin.images thumbnails are deferred: they need Payload 3.79.0 and a way to ship a picture as registry text. The decision and options are recorded in payload-components/README.md → "Admin Blocks Drawer". The template config and `new` scaffold set admin.group too, copying it from the nearest sibling variant. Block manifests get a minor bump with a changelog line and fresh install baselines; the three blog figures that excerpt HeroBasic's config are regenerated. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…-b0cf7c # Conflicts: # AGENTS.md # content/docs/installation.mdx # content/docs/registry.mdx # tests/int/fumadocs-site.int.spec.ts # tools/payload-components/commands/doctor.ts
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review skippedToo many files! This PR contains 182 files, which is 82 over the limit of 100. To get a review, reduce the PR to 100 files or fewer by splitting it into smaller PRs or changing its base branch. Upgrade to a paid plan to raise the limit. This review couldn't start because sufficient usage credits or metered capacity aren't available. Add credits or update usage-based reviews in the billing tab, then retry.
|
This was referenced Nov 6, 2026
Merged
Ducksss
added a commit
that referenced
this pull request
Nov 7, 2026
#654 raised the Payload 3 minimum to 3.25.0. `add` now refuses Payload 3.0-3.24 projects that 1.8.0 accepted, so the release is a major. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Ducksss
added a commit
that referenced
this pull request
Nov 7, 2026
* release: 1.9.0 Co-Authored-By: Claude Opus 5.5 <[email protected]> * release: 2.0.0 instead of 1.9.0 #654 raised the Payload 3 minimum to 3.25.0. `add` now refuses Payload 3.0-3.24 projects that 1.8.0 accepted, so the release is a major. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
4 of 5 tasks
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Installed Payload Components blocks now appear under family headings in Payload's admin Blocks Drawer ("Add Layout"). An editor who installs a few dozen blocks no longer gets one long, flat list of identical tiles.
admin.groupto their family's label fromFAMILIESinsrc/lib/component-page-tree.tsx: Hero, Feature, Comparator, Pricing, Call to action, Contact, Integration, Logo cloud, Testimonials, Stats, FAQ, Content, Team, Embed, Collection query and Footer. These are the same headings the catalog and the docs sidebar use.tests/int/blocks-drawer-group.int.spec.ts, fails if a block's group doesn't match its family. The group sits right afterinterfaceName, so the--localizedwrap still finds the block'sfieldsarray.payload-components newset the group too.newcopies it from the nearest sibling block; a brand-new family falls back to the capitalized first slug word, the same wayfamilyOfSlugdoes.Payload 3 minimum version: 3.25.0
admin.groupwas added to Payload'sBlocktype in 3.25.0. On older Payload 3 types it is an unknown property: I rantscagainst the published[email protected]types and it fails with TS2353, while 3.25.0 compiles. A project on 3.24 or older would therefore failnext build. To handle that:support-matrix.jsonrecordspayloadMajorSupport["3"].minimumVersions.payload = "3.25.0".peerDependencies.payload: "^3.25.0 || ^4.0.0-0".payload-components-support-matrix.int.spec.tsnow derives the allowed range from the matrix and fails any range that starts below the minimum.doctorwarns when the installed Payload is older than 3.25.0.Who loses support: projects still on Payload 3.0–3.24, which are releases from Nov 2024 to Feb 2025. Payload 4 support is unchanged.
Thumbnails are deferred
admin.images(a 3:2 thumbnail and a 20×20 icon) only exists from Payload 3.79.0. There's also no settled way to ship a picture as registry text: files must install under~/src, and hosting the images on payload-components.xyz would add a runtime dependency on our site and a CSP entry for every project. The reasoning and the preferred next step (an SVGdata:URI exported from a file under~/src) are written down inpayload-components/README.md→ "Admin Blocks Drawer". That work is a separate follow-up.Versioning
registry:snapshotappended the new install baselines; existing baselines are unchanged.Test plan
Run locally after merging
main(#647: Payload 4 minimums, #646: dependency bumps) into this branch:pnpm lint,pnpm format:check,pnpm i18n:check,pnpm exec tsc --noEmit,pnpm test:registry: all exit 0pnpm run test:int: exit 0 (877 passed, 1 skipped)pnpm test:fresh -- --scenario website --components hero-basic,hero-split,feature-bento,pricing-cards,call-to-action-split,faq-accordion,testimonials-grid,logo-cloud-grid,stats-grid,content-quoteexits 0. That run creates a fresh[email protected]website project on SQLite, then runsadd,generate:types,tsc --noEmit,next build, and a start-and-render check.pnpm buildwere not run locally; CI covers them.🤖 Generated with Claude Code