Skip to content

feat: add checkbox optionsSource with collection binding#45

Merged
liamwalder merged 9 commits intomainfrom
feat/checkbox-options-source
Mar 19, 2026
Merged

feat: add checkbox optionsSource with collection binding#45
liamwalder merged 9 commits intomainfrom
feat/checkbox-options-source

Conversation

@liamwalder
Copy link
Copy Markdown
Collaborator

  • Extend checkbox wrapper layers to support optionsSource for populating options from a CMS collection
  • Add variables.collection binding for builder preview
  • Hide CMS panel when optionsSource manages the binding
  • Show checkbox icon/name for wrapper divs in layer tree
  • Skip collection rendering in page-fetcher for checkbox optionsSource layers to avoid duplicate processing
  • Append [] to checkbox names for array form submission
  • Guard LayerRenderer against non-string dynamic_text content

- Extend checkbox wrapper layers to support optionsSource
  for populating options from a CMS collection
- Add variables.collection binding for builder preview
- Hide CMS panel when optionsSource manages the binding
- Show checkbox icon/name for wrapper divs in layer tree
- Skip collection rendering in page-fetcher for checkbox
  optionsSource layers to avoid duplicate processing
- Append [] to checkbox names for array form submission
- Guard LayerRenderer against non-string dynamic_text content

Made-with: Cursor
tristan-mouchet and others added 5 commits March 18, 2026 15:52
- Use optionsSource sort config for canvas checkbox ordering
  instead of collectionVariable which is never set for checkboxes
- Remove early-return guard so sort changes trigger re-fetch
- Use _fragment pattern for published checkbox groups to avoid
  extra wrapping div that doesn't exist on the canvas

Made-with: Cursor
Made-with: Cursor
Base automatically changed from develop to main March 18, 2026 16:13
liamwalder and others added 3 commits March 19, 2026 10:14
- Add radio button support for collection-sourced options (settings, canvas, published)
- Preserve template input attributes (required, disabled, etc.) on generated inputs
- Abstract checkbox/radio generation into shared buildInputGroupFragment helper
- Copy template text classes/design to generated text children
- Fix cross-reload of unrelated collection layers when reordering
- Fix real-time default selection updates on canvas
- Fix controlled/uncontrolled input warning for collection-bound groups
- Fix radio child naming in layers panel to show "Input" not "Radio"
- Add multi-select default picker for checkbox groups

Made-with: Cursor
@liamwalder liamwalder merged commit 79a0423 into main Mar 19, 2026
2 checks passed
@liamwalder liamwalder deleted the feat/checkbox-options-source branch March 19, 2026 10:59
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.

2 participants