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
image image

How to set up and validate locally

  1. Create group / project, where duo is disabled with an admin user
  2. Add another user to group / project, e.g. group.add_developer(user)
  3. Navigate to group / project with that user to see the before state: disabled navigation rail with a relevant tooltip
  4. Enable feature flag duo_disabled_non_admin_empty_state
  5. 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

Merge request reports

Loading