Skip to content

feat(admin): inline term creation in post editor sidebar#500

Merged
ascorbic merged 4 commits intoemdash-cms:mainfrom
all3f0r1:fix/inline-term-creation-229
Apr 15, 2026
Merged

feat(admin): inline term creation in post editor sidebar#500
ascorbic merged 4 commits intoemdash-cms:mainfrom
all3f0r1:fix/inline-term-creation-229

Conversation

@all3f0r1
Copy link
Copy Markdown
Contributor

What does this PR do?

Adds inline term creation directly from the post editor's taxonomy sidebar, so users don't have to leave the editor to create new categories or tags.

  • Tags (flat taxonomies): When the typed name has no exact match, a "Create [name]" option appears in the dropdown. Pressing Enter when it's the only option creates the tag.
  • Categories (hierarchical taxonomies): An "Add new category" button appears below the checkbox list. Clicking it reveals an inline input field.

Both flows auto-select the newly created term and save immediately.

Closes #229

Type of change

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

Checklist

  • I have read CONTRIBUTING.md
  • pnpm typecheck passes
  • pnpm --silent lint:json | jq '.diagnostics | length' returns 0
  • pnpm test passes (or targeted tests for my change)
  • pnpm format has been run
  • I have added/updated tests for my changes (if applicable)
  • I have added a changeset (if this PR changes a published package)
  • New features link to an approved Discussion: https://github.com/emdash-cms/emdash/discussions/...

AI-generated code disclosure

  • This PR includes AI-generated code

Screenshots / test output

UI-only change in the admin taxonomy sidebar. No new tests — this wires up the existing createTerm API to the sidebar components.

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 12, 2026

🦋 Changeset detected

Latest commit: 5e45b90

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 9 packages
Name Type
emdash Patch
@emdash-cms/cloudflare Patch
@emdash-cms/admin Patch
@emdash-cms/auth Patch
@emdash-cms/blocks Patch
@emdash-cms/gutenberg-to-portable-text Patch
@emdash-cms/x402 Patch
create-emdash Patch
@emdash-cms/plugin-embeds Patch

Not sure what this means? Click here to learn what changesets are.

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

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Apr 12, 2026

Open in StackBlitz

@emdash-cms/admin

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

@emdash-cms/auth

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

@emdash-cms/blocks

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

@emdash-cms/cloudflare

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

emdash

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

create-emdash

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

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

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

@emdash-cms/x402

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

@emdash-cms/plugin-ai-moderation

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

@emdash-cms/plugin-atproto

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

@emdash-cms/plugin-audit-log

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

@emdash-cms/plugin-color

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

@emdash-cms/plugin-embeds

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

@emdash-cms/plugin-forms

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

@emdash-cms/plugin-webhook-notifier

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

commit: 5e45b90

@ascorbic
Copy link
Copy Markdown
Collaborator

The conflicts are all i18n-related

Tags show a "Create [name]" option when no exact match exists.
Categories get an "Add new" button below the checkbox list.
Both auto-select the new term and save immediately.

Closes emdash-cms#229

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@all3f0r1 all3f0r1 force-pushed the fix/inline-term-creation-229 branch from 7755497 to c01ce44 Compare April 14, 2026 10:29
@all3f0r1
Copy link
Copy Markdown
Contributor Author

all3f0r1 commented Apr 14, 2026

Rebased and all fixed.

EDIT: wait, there's a couple of smoke tests I have to investigate.

@all3f0r1
Copy link
Copy Markdown
Contributor Author

Ok, it was just a harmless timeout. Fine to merge.

Comment thread packages/admin/src/components/TaxonomySidebar.tsx Outdated
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@ascorbic ascorbic enabled auto-merge (squash) April 15, 2026 20:52
@ascorbic ascorbic merged commit 14c923b into emdash-cms:main Apr 15, 2026
26 checks passed
@emdashbot emdashbot bot mentioned this pull request Apr 15, 2026
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.

Can't create new categories or tags from the post editor

2 participants