feat(form-builder): visual form builder module with AI-assisted block config#104
Draft
Gervwyk wants to merge 1 commit into
Draft
feat(form-builder): visual form builder module with AI-assisted block config#104Gervwyk wants to merge 1 commit into
Gervwyk wants to merge 1 commit into
Conversation
…lock config New form-builder module lets app users build parts of a form — a workflow step, extra profile fields, a custom section — as Lowdefy block config, stored in MongoDB and served back into apps via the server-resolved Dynamic block. Includes a FormBuilder plugin block (drag-and-drop palette + canvas + YAML editor, with operator preview against mock data) and a per-block AIGatewayAgent assistant that verifies config against the official Lowdefy docs before writing it. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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
form-buildermodule: users visually build parts of a form (a workflow step, extra profile fields, a custom section) as Lowdefy block config, stored in MongoDB (dynamic-elements), and rendered back into consumer apps through the server-resolvedDynamicblock via the module'sdynamic-elementcomponent.FormBuilderblock in@lowdefy/modules-mongodb-plugins: drag-and-drop palette of curatedblocks-antd/blocks-basictypes, a canvas rendering the real block components (including Tabs/Collapse dynamic per-tab/panel slots), and a YAML editor, with live operator preview against mockstate/requests/global/user/url_query.AgentChatvia anAIGatewayAgent, Vercel AI Gateway) helps model a block's config conversationally — scoped to only the selected block's own fields unless asked otherwise — and calls aget-block-docstool to verify property shapes against the official Lowdefy docs before writing config. One conversation thread per (element, block), persisted todynamic-element-conversations.0.0.0-experimental-20260710121634+ (server-resolved Dynamic page content); demo app bumped accordingly.designs/form-builder/design.md. Consumer docs:docs/form-builder/index.md.Marked draft: depends on an unreleased lowdefy experimental build and an upstream
AgentChatfix (streaming tool-input truncation + restored-history event replay) that hasn't shipped in a lowdefy release yet.Test plan
pnpm --filter @lowdefy/modules-mongodb-plugins build(SWC) — cleanpnpm --filter @lowdefy/modules-demo ldf:b(config + client build) — cleanpnpm docs:gen/pnpm docs:check— cleanMONGODB_URI+AI_GATEWAY_API_KEY: build a form on/form-builder/edit, save, confirm the doc indynamic-elements, verify it renders viadynamic-element-demo, and exercise the assistant round-trip (needs the upstream lowdefy fixes for streaming/restore, not yet released)🤖 Generated with Claude Code