feat: add checkbox optionsSource with collection binding#45
Merged
liamwalder merged 9 commits intomainfrom Mar 19, 2026
Merged
Conversation
- 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
- 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
- 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
tristan-mouchet
approved these changes
Mar 19, 2026
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.
optionsSourcefor populating options from a CMS collectionvariables.collectionbinding for builder previewoptionsSourcemanages the bindingoptionsSourcelayers to avoid duplicate processingdynamic_textcontent