Add DAP disabled empty state for non-admins
What does this MR do and why?
This MR adds a new empty state for the AI panel for the case where duo is disabled for the context of the panel (group or project), but the user can't enable it.
References
#585920+
Screenshots or screen recordings
| Before | After |
|---|---|
![]() |
![]() |
How to set up and validate locally
- Create group / project, where duo is disabled with an admin user
- Add another user to group / project, e.g.
group.add_developer(user) - Navigate to group / project with that user to see the before state: disabled navigation rail with a relevant tooltip
- Enable feature flag
duo_disabled_non_admin_empty_state - Now you should see the after state: only chat disabled button in navigation rail, but ability to toggle empty state with working link to
https://docs.gitlab.com/user/duo_agent_platform/
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 Konstantin Greif

