Notify users about what to do when a default namespace is not available

What does this MR do and why?

Notify users about what to do when a default namespace is not available.

References

Screenshots or screen recordings

Currently the screenshots are weird but frontend will assist to fix it.

Update:

pro core
Screenshot_2025-10-24_at_15.20.39 Screenshot_2025-10-24_at_16.04.55

How to set up and validate locally

  1. Login as Duo Pro user, visit http://gdk.test:3000/dashboard/ and http://gdk.test:3000/gitlab-org/gitlab-test/ and see Duo Chat works as expected
  2. Open ee/app/models/ee/user_preference.rb, modify get_default_duo_namespace so it returns nil.
  3. Revisit http://gdk.test:3000/dashboard/ and see message linking to User Preference Page.
  4. Login as Duo Core user, visit http://gdk.test:3000/dashboard/ and see message hinting the user to visit the project page
  5. Login as someone without any Duo access, visit http://gdk.test:3000/dashboard/ and see the generic message hinting the user to ask the admin.

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.

Related to #578115

Edited by Anastasia Khomchenko

Merge request reports

Loading