Skip to content

docs(field-kit): add plugin reference page#810

Merged
ascorbic merged 1 commit intoemdash-cms:mainfrom
ilicfilip:docs/field-kit-plugin
Apr 28, 2026
Merged

docs(field-kit): add plugin reference page#810
ascorbic merged 1 commit intoemdash-cms:mainfrom
ilicfilip:docs/field-kit-plugin

Conversation

@ilicfilip
Copy link
Copy Markdown
Contributor

What does this PR do?

Adds a reference page for @emdash-cms/plugin-field-kit (merged in #702) to the docs site. Covers installation, all four widgets (object-form, list, grid, tags) with seed-config examples and per-widget option tables, the eight sub-field types, summary templates, and the data-durability guarantees. Adds a "Field Kit" entry to the Plugins sidebar after "Block Kit".

Follow-up requested by @ascorbic on the #702 approval review.

Closes #

Type of change

  • Bug fix
  • Feature (requires maintainer-approved Discussion)
  • Refactor (no behavior change)
  • Translation
  • Documentation
  • Performance improvement
  • Tests
  • Chore (dependencies, CI, tooling)

Checklist

  • I have read CONTRIBUTING.md
  • pnpm typecheck passes — n/a for docs-only, but the docs site builds and renders the new page locally without errors
  • pnpm lint passes — n/a for .mdx content; no source code touched
  • pnpm test passes — n/a for docs prose; no test surface affected
  • pnpm format has been run
  • I have added/updated tests for my changes (if applicable) — n/a, docs only
  • User-visible strings in the admin UI are wrapped for translation (if applicable). Do not include messages.po changes except in translation PRs — a workflow extracts catalogs on merge to main — n/a, no admin code or .po files touched
  • I have added a changeset (if this PR changes a published package) — n/a, docs are in the changeset ignore list
  • New features link to an approved Discussion — n/a, this is documentation for already-merged plugin feat(plugins): add @emdash-cms/plugin-field-kit #702 (discussion feat: field-kit — composable field widgets for json fields #571)

AI-generated code disclosure

  • This PR includes AI-generated code

The prose was drafted with Claude based on a careful read of packages/plugins/field-kit/src/**; every option, default, and behavior in the page was verified against the source before writing.

Screenshots / test output

Page renders cleanly in the local Starlight dev server at /plugins/field-kit/ with the new sidebar entry visible under Plugins → Field Kit.

Verified each documented option, default, and stored shape against the field-kit source:

  • object-formfields (required), collapsed, helpText → matches src/widgets/object-form.tsx
  • listfields, itemLabel, min, max, sortable (default true), summary, helpText → matches src/widgets/list.tsx
  • gridrows, columns, cell (default "toggle"), cellOptions, helpText → matches src/widgets/grid.tsx
  • tagsplaceholder, max, suggestions, allowCustom (default true), transform (default "none"), helpText → matches src/widgets/tags.tsx
  • 8 sub-field types and their notable extras → matches src/shared/sub-field.tsx
  • Mustache {{key}} summary templates → matches src/shared/utils.ts
  • Unknown-key preservation on round-trip (object-form rows, grid cells) → matches src/shared/utils.ts

Examples are anchored in a single recipe-site domain (nutrition facts, ingredients, seasonal availability, dietary keywords) so the page reads as one coherent story.

Adds the Field Kit reference page covering installation, all four widgets
(object-form, list, grid, tags), sub-field types, summary templates, and
data durability guarantees. Adds the page to the Plugins sidebar after
Block Kit. Follow-up to emdash-cms#702 per the maintainer's request on review.

Signed-off-by: Filip Ilic <ilic.filip@gmail.com>
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Apr 28, 2026

⚠️ No Changeset found

Latest commit: 1769d31

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Apr 28, 2026

Open in StackBlitz

@emdash-cms/admin

npm i https://pkg.pr.new/@emdash-cms/admin@810

@emdash-cms/auth

npm i https://pkg.pr.new/@emdash-cms/auth@810

@emdash-cms/blocks

npm i https://pkg.pr.new/@emdash-cms/blocks@810

@emdash-cms/cloudflare

npm i https://pkg.pr.new/@emdash-cms/cloudflare@810

emdash

npm i https://pkg.pr.new/emdash@810

create-emdash

npm i https://pkg.pr.new/create-emdash@810

@emdash-cms/gutenberg-to-portable-text

npm i https://pkg.pr.new/@emdash-cms/gutenberg-to-portable-text@810

@emdash-cms/x402

npm i https://pkg.pr.new/@emdash-cms/x402@810

@emdash-cms/plugin-ai-moderation

npm i https://pkg.pr.new/@emdash-cms/plugin-ai-moderation@810

@emdash-cms/plugin-atproto

npm i https://pkg.pr.new/@emdash-cms/plugin-atproto@810

@emdash-cms/plugin-audit-log

npm i https://pkg.pr.new/@emdash-cms/plugin-audit-log@810

@emdash-cms/plugin-color

npm i https://pkg.pr.new/@emdash-cms/plugin-color@810

@emdash-cms/plugin-embeds

npm i https://pkg.pr.new/@emdash-cms/plugin-embeds@810

@emdash-cms/plugin-forms

npm i https://pkg.pr.new/@emdash-cms/plugin-forms@810

@emdash-cms/plugin-webhook-notifier

npm i https://pkg.pr.new/@emdash-cms/plugin-webhook-notifier@810

commit: 1769d31

Copy link
Copy Markdown
Collaborator

@ascorbic ascorbic left a comment

Choose a reason for hiding this comment

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

Looks great! Thanks

@ascorbic ascorbic merged commit a84abe4 into emdash-cms:main Apr 28, 2026
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants