Add option groups with per-group selection caps - #15
Open
Al2Klimov wants to merge 2 commits into
Open
Conversation
Poll authors can group text/date options and cap how many of a group may be selected (e.g. "max 1 of A and B"), enforced independently of the poll's response_mode. Adds PollOptionGroup, per-option group assignment in the edit UI, per-group vote enforcement client- and server-side, and the poll_option_groups migration. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
When adding a new option, defaulting its group to whatever the current last option belongs to keeps consecutive same-group options from requiring a manual reselect each time. Purely positional (the option immediately above), not tied to whichever group was most recently edited elsewhere in the list. 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.
Poll authors can group text/date options and cap how many of a group may be selected (e.g. "max 1 of A and B"), enforced independently of the poll's response_mode. Adds PollOptionGroup, per-option group assignment in the edit UI, per-group vote enforcement client- and server-side, and the poll_option_groups migration.