Loading
Show unchosen options on resolved Duo questions
What does this MR do and why?
Shows the options that weren't picked on a resolved GitLab Duo clarifying-question thread, collapsed by default behind a Show other options / Hide other options toggle. The chosen answer(s) still show as before, and expanded options are disabled and not clickable, so readers can see what else Duo offered. Also fixes the multi-select expand animation overshooting and shrinking back, by adding gl-overflow-hidden to the Duo multi-select card.
This is behind the duo_workplan_async_flow feature flag.
References
Resolves #631794 (closed)
Follow-up to !253777 (merged)
Screenshots or screen recordings
| Before | After |
|---|---|
![]() |
How to set up and validate locally
- Enable the flag in a rails console with
Feature.enable(:duo_workplan_async_flow). - Open a work item with a Duo clarifying question that's already answered and resolved (or answer one and resolve it).
- Confirm the unpicked options are collapsed behind
Show other options. - Expand them and confirm they're greyed out and unclickable.
- Reload the page and confirm they're collapsed again.
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Edited by Kushal Pandya
