Repository navigation
feat(builder)!: drag and drop page editor, and no builder in lite mode - #148
Merged
Merged
Conversation
…AI prompt The page builder listed pages and advertised drag and drop and AI generation, but had no editor or create button. This adds one. - /builder/edit: a Puck editor (@puckeditor/core 0.23) for a page, with Generate, Save draft and Publish actions. A missing page starts empty. - /builder: editors get a "New page" form and see drafts and unpublished changes. The "AI assisted" chip only shows when an LLM is configured. - GET /api/builder/access and GET /api/builder/pages (editors only). - GET /api/pages and /api/pages/:slug serve the latest published version, so saving a draft no longer takes the public page down. - toPuckData / fromPuckData convert between stored pages and Puck data. - The builder's peer dependency moves from @measured/puck to @puckeditor/core. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017JdKJpQQK3XuLZTBiZ4gns
Lite mode kept builder pages in memory, so every restart lost them. It
now runs without the builder, and the web app hides it.
- buildServer takes pages: false. Page routes are not registered, and
GET /api/builder/access answers { enabled: false } so the web app can
hide the builder. With a page store the answer has enabled: true.
- createDashboard passes pages: false, and its pageEditors and ai
options are removed.
- The web app hides the sidebar entry, landing links and builder feature
card when the builder is off, and /builder explains that it is off.
BREAKING CHANGE: createDashboard no longer accepts pageEditors or ai, and
lite mode serves no /api/pages routes. Run @acstane/core for the builder.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017JdKJpQQK3XuLZTBiZ4gns
zVapor-Dev
marked this pull request as ready for review
October 30, 2026 04:07
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.
The page builder was a dead end: it advertised drag and drop and AI generation (with an "AI assisted" badge), but had no editor and no way to create a page, even with editor permissions. This adds the editor, and takes the builder out of lite mode, where pages only lived in memory.
Editor
/builder/edit?slug=…page, built on@puckeditor/core0.23 (the maintained successor of@measured/puck). It loads client side only, so the static export still works.Builder list
API
GET /api/builder/access→{ enabled, canEdit, ai }. Never errors, so the UI can always ask.GET /api/builder/pages(editors only) lists pages with their latest version, status and whether a published version is live.GET /api/pagesandGET /api/pages/:slugnow serve the latest published version, so saving a newer draft no longer takes the public page down.No builder in lite mode (breaking)
Lite mode kept builder pages in memory, so every restart lost them.
buildServeracceptspages: false. The page routes are then not registered, and/api/builder/accessanswers{ enabled: false }.createDashboardpassespages: false, and itspageEditorsandaioptions are removed./buildersays the builder is off.@acstane/corefor the builder.Builder package
toPuckData(page)andfromPuckData(data, fallbackTitle)convert between stored pages and Puck data. The page title is a root field.@measured/puckto@puckeditor/core ^0.23.0.Checks
pnpm lint,pnpm typecheck,pnpm buildandpnpm smoke:pack(22 packages) pass.pnpm testpasses: 295 tests, including new route, Puck conversion and lite mode tests./buildersays it's off.Requested by zVapor
🤖 Generated with Claude Code
https://claude.ai/code/session_017JdKJpQQK3XuLZTBiZ4gns