Skip to content

feat(v12): Directus foundation#121

Open
LZylstra wants to merge 17 commits into
mainfrom
v12-update-directus-foundation
Open

feat(v12): Directus foundation#121
LZylstra wants to merge 17 commits into
mainfrom
v12-update-directus-foundation

Conversation

@LZylstra

@LZylstra LZylstra commented Jun 12, 2026

Copy link
Copy Markdown
Collaborator

Scope

  • Bump all starter Directus images to v12.0.0 and document LICENSE_KEY in env examples — v12 enforces MSCL tier limits and changes the versioning model (mainpublished).
  • Re-export cms + cms-i18n template JSON from a v12 instance: simplified core-tier permissions, flow cleanup, ≤3 seed users, removed workflow kanban presets.
  • Add _shared/rbac/ as the permissions source of truth with pnpm rbac:codegen (CI check) and pnpm rbac:sync-licensed for live core→licensed upgrades without re-applying the template.
  • Add cms/directus/template-licensed/ variant and wire it in cms/package.json for Team-tier RBAC.
  • Fix i18n template apply: nest globals_translations inside globals.json (template-cli loads singletons after regular collections).
  • Update root + starter READMEs with tier table, licensing path, and wipe/re-apply notes for i18n.
  • Ignore .cursor/ and .claude/ in gitignore so local plan/agent files stay out of PRs.

Part of the v12-update integration branch. Framework SDK PRs stack on this branch.

Potential Risks / Drawbacks

  • Template JSON is huge — most diffs are mechanical re-exports. Wrong permissions or flows are the real risk, not content JSON drift.
  • Existing live instances won't pick up permission changes from template re-apply; Path 2 upgrades need pnpm rbac:sync-licensed (documented).
  • cms-i18n still needs a Team license for collection limits; core tier fits cms/blank only.

Tested Scenarios

  • pnpm validate (validate-templates.js) passes
  • pnpm rbac:codegen:check passes
  • Fresh cms Directus: docker compose up, directus-template-cli apply ./template. Studio loads, pages render
  • Fresh cms-i18n: wipe DB bind mount, apply template with license key
  • Licensed upgrade path: pnpm rbac:sync-licensed on existing cms instance
  • Spot-check: Duplicate Page flow, Form Email flow, Redirect automation skip unchanged slugs

Review Notes

  • Don't review every content JSON file — focus on permissions, flows/operations, snapshot version header, docker image tag, and RBAC source modules under _shared/rbac/.
  • Framework SDK bumps and version-key handling are in the stacked framework PRs, not here.

@vercel

vercel Bot commented Jun 12, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
cms-nextjs Ready Ready Preview, Comment Jul 12, 2026 9:34pm
cms-nuxt Ready Ready Preview, Comment Jul 12, 2026 9:34pm
cms-svelte Ready Ready Preview, Comment Jul 12, 2026 9:34pm
pizza-frontend Ready Ready Preview, Comment Jul 12, 2026 9:34pm
visual-editor-demo Ready Ready Preview, Comment Jul 12, 2026 9:34pm

Request Review

Upgrade all starter Directus runtimes and templates to v12 with tier-aware
permissions, RBAC codegen/sync tooling, and licensed template variant.
LZylstra and others added 2 commits July 10, 2026 14:04
* feat(v12): cms-i18n/nextjs — SDK 22 and i18n fetch fixes

Bump Directus SDK packages, handle published/draft version keys, fix i18n
globals fetch permissions, harden form submission, and skip circular redirects.

* cleanup

* Cleanup

* Node update

* Update version handling and tokens

* Form validation updates

* Fix VE in live preview

* Fix VE draft pages

* Fix cms i18n visual editing review issues

---------

Co-authored-by: bryantgillespie <hey@bryantgillespie.com>
* feat(v12): cms/sveltekit — SDK 22 and versioning

Bump Directus SDK packages, update schema types, handle published/draft
version keys, harden form submission, and skip circular redirects.

* cleanup: cms/sveltekit — v12 version handling and stale TODO

* Cleanup

* Checkbox fix

* Update version handling and tokens

* Form validation updates

* Fix VE in live preview

* Fix VE drafts

* Guard inactive form submissions

---------

Co-authored-by: bryantgillespie <hey@bryantgillespie.com>
* feat(v12): cms/astro — SDK 22 and versioning

Bump Directus SDK packages, regenerate schema types, handle published/draft
version keys, harden form submission, and skip circular redirects.

* Cleanup

* Remove extra comment

* Cleanup

* Fix indentation and type

* Update version handling and tokens

* Form validation updates

* Fix for draft posts

* Fix VE with live preview

* Fix VE draft pages

* fix(astro): harden preview and form submissions

---------

Co-authored-by: bryantgillespie <hey@bryantgillespie.com>
LZylstra and others added 5 commits July 11, 2026 06:52
* feat(v12): cms-i18n/nuxt — SDK 22 and i18n server token

Bump Directus SDK packages, enable server token for translation queries,
handle published/draft version keys, harden form submission, and skip circular redirects.

* Error handling

* Align with other template

* Cleanup

* Updated version and token handling

* Fix VE in live preview

* Fix VE draft pages

* fix: harden Nuxt visual editing and APIs

---------

Co-authored-by: bryantgillespie <hey@bryantgillespie.com>
* feat(v12): cms/nextjs — SDK 22 and versioning

Bump Directus SDK packages, handle published/draft version keys, harden form
submission, and skip circular redirects.

* Cleanup

* Updates to version and token handling

* Form validation updates

* Fix VE in live preview

* Fix VE draft pages

* Fix formatting

* Fix Next.js preview editing and form submit

* fix(nextjs): harden forms and visual editing

---------

Co-authored-by: bryantgillespie <hey@bryantgillespie.com>
Co-authored-by: Bryant Gillespie <bryant@directus.io>
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.

3 participants