Skip to content

Hide Duo Chat on pages outside of Group or Project

Lindsey Shelton requested to merge hide-duo-chat-outside-certain-pages into master

What does this MR do and why?

The purpose of this MR is to hide Duo chat on pages outside of Group and Project. The reason for this is due to having confusing patterns within our UI for end users.

Related Issues:

  • #488665 - Duo Chat Still Accessible for Some Pages on Self-managed When "Never on" Option is Enabled
  • #447543 (closed) - Remove Duo Chat from pages that are outside the group or project

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After
image Screenshot_2024-09-16_at_4.28.28_PM

Screen Recording for Group Testing:

Screen_Recording_2024-09-17_at_11.33.33_AM

Screen Recording for Admin Testing:

Screen_Recording_2024-09-17_at_11.41.15_AM

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Numbered steps to set up and validate the change are strongly suggested.

For frontend and UX changes:

Groups

  1. Go to Group > Settings > GitLab Duo Features
  2. Under Availability select Never on and click Save changes.
  3. Verify Duo Chat is disabled at the Group (top) level
  4. Go into Subgroups or Projects, Verify Duo Chat is disabled
  5. Go to Profile, Todos, Admin, and/or Homepage - Verify Duo Chat does not display.

Admin

  1. Go to Admin > Settings > GitLab Duo Features
  2. Verify Duo Chat does not display (on Admin pages)
  3. Under Availability select Never on and click Save changes.
  4. Go into Groups, Subgroups or Projects, Verify Duo Chat does not display.
  5. Go to Profile, Todos, and Homepage - Verify Duo Chat does not display.

For backend changes:

Run the following specs:

  • bundle exec rspec ee/spec/lib/gitlab/llm/tanuki_bot_spec.rb
Edited by Lindsey Shelton

Merge request reports

Loading