Skip to content

Add option groups with per-group selection caps - #15

Open
Al2Klimov wants to merge 2 commits into
NETWAYS:mainfrom
Al2Klimov:limit
Open

Add option groups with per-group selection caps#15
Al2Klimov wants to merge 2 commits into
NETWAYS:mainfrom
Al2Klimov:limit

Conversation

@Al2Klimov

Copy link
Copy Markdown
Member

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.

Al2Klimov and others added 2 commits September 4, 2026 17:24
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>
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