Skip to content

IBX-12475: Passed grouped choices through to the DS dropdown - #2067

Open
tischsoic wants to merge 1 commit into
6.0from
IBX-12475-dropdown-option-groups
Open

IBX-12475: Passed grouped choices through to the DS dropdown#2067
tischsoic wants to merge 1 commit into
6.0from
IBX-12475-dropdown-option-groups

Conversation

@tischsoic

@tischsoic tischsoic commented Sep 7, 2026

Copy link
Copy Markdown
Contributor
🎫 Issue IBX-12475

Related PRs:

Description:

dropdown_ds.html.twig no longer falls back to the legacy dropdown for grouped choices. A ChoiceGroupView becomes a { label, items } entry (deeper groups flattened into it), preferred choices come first and leaf ids are deduplicated. Requires the design-system and design-system-twig PRs; dependencies.json / assets branch for browser tests to follow.

For QA:

/admin/role/1/policy/create → "Choose a Policy" renders the DS dropdown with module groups; search "Content / Read", select it, continue to the limitation step. Regression spots: dropdowns with is_small (content view tabs) must still render the legacy dropdown; flat multi dropdowns (Products list → Product type filter) unchanged.

Documentation:

The adapter fell back to the legacy dropdown whenever a ChoiceType had
optgroups, because the DS dropdown only accepted a flat item list. Groups
are now normalised to {label, items} entries (deeper groups flattened into
their top-level group, preferred choices first, leaf ids deduplicated),
which the DS dropdown renders natively, so the two grouped-choice
conditions leave the bail-out list.

Co-authored-by: Claude <noreply@anthropic.com>
@sonarqubecloud

sonarqubecloud Bot commented Sep 7, 2026

Copy link
Copy Markdown

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.

5 participants