RM-238: Add Radio Group and Checkbox Group components#80
Merged
BenHall-1 merged 4 commits intoTicketsBot-cloud:masterfrom Feb 15, 2026
Merged
RM-238: Add Radio Group and Checkbox Group components#80BenHall-1 merged 4 commits intoTicketsBot-cloud:masterfrom
BenHall-1 merged 4 commits intoTicketsBot-cloud:masterfrom
Conversation
Extended backend and frontend logic to handle new input types: Radio Group (21) and Checkbox Group (22). Updated validation, option handling, and UI to treat these types similarly to String Select (type 3), including enforcing option requirements and managing min/max constraints. UI now displays appropriate labels and options sections for these new types.
9 tasks
BenHall-1
previously approved these changes
Feb 13, 2026
Introduce centralized input option validation and enforce min/max option counts across backend and UI. Backend (app/http/endpoints/api/forms/updateinputs.go): - Add validateInputOptions to encapsulate option checks and reuse validation for create/update paths. - Enforce rules: Radio Group (type 21) requires 2–10 options, Checkbox Group (type 22) requires 1–10, and other option types require at least one option. Still validates uniqueness of option values. - Replace duplicated validation logic with calls to validateInputOptions. Frontend (frontend/src/components/manage/FormInputRow.svelte): - Compute minOptionsRequired and maxOptionsAllowed based on type (Radio 2–10, Checkbox 1–10, String Select up to 25). - Use these bounds in reactive validation, Add Option button gating, and user-facing validation messages to reflect exact limits. These changes keep client and server validation consistent and reduce duplicated validation logic.
BenHall-1
previously approved these changes
Feb 13, 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.
Linked with:
TicketsBot-cloud/worker#98
TicketsBot-cloud/tickets.rs#7
Needs: TicketsBot-cloud/gdl#10