Skip to content

feat: excluding page breaks in flow mode - #32

Merged
QUBITABHAY merged 1 commit into
mainfrom
development
Mar 22, 2026
Merged

QUBITABHAY merged 1 commit into
mainfrom
development

Conversation

@QUBITABHAY

Copy link
Copy Markdown
Owner

This pull request updates the FieldPalette component to support different modes for form builders, allowing customization of the available field templates based on the builder type. The main changes introduce a mode prop to FieldPalette, filtering out the "page_break" field in flow mode, and update the form builders to use this new prop.

FieldPalette component improvements:

  • Added a mode prop to FieldPalette, defaulting to "single", and updated it to filter out the "page_break" field template when in "flow" mode. This ensures only appropriate fields are shown in each builder type.
  • Updated type imports in FieldPalette.tsx to include FormMode for the new prop.

Form builder integration:

  • Updated FlowFormBuilder to render FieldPalette with mode="flow", ensuring the palette fits the flow builder's requirements.
  • Updated SinglePageFormBuilder to render FieldPalette with mode="single", maintaining the previous behavior for single-page forms.

@vercel

vercel Bot commented Mar 22, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
formify Ready Ready Preview, Comment Mar 23, 2026 5:09pm

@QUBITABHAY
QUBITABHAY merged commit a44088e into main Mar 22, 2026
6 checks passed

This branch was successfully deployed

1 active deployment
Preview — d8f637e7 Deployed Mar 22, 2026 by vercel[bot]
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.

1 participant