Split subtitle logic on GitLab Duo page

What does this MR do and why?

The GitLab Duo page under settings is currently using the same subtitle for both the self-managed page in the Admin area and the SaaS page in groups. This adds logic to decipher which subtitle should be displayed.

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

Before After
Admin code suggestions XL (6).png Admin code suggestions (6).png
Fancy AI GitLab Duo Usage (6).png GitLab Duo Usage (1).png

How to set up and validate locally

Test self-managed

  1. Enable Duo Pro following instructions in https://docs.gitlab.com/ee/development/ai_features/index.html
  2. Run GDK in Self-Managed mode and enable AI features for the instance
  3. Navigate to /admin/code_suggestions

Test SaaS

  1. Enable Duo Pro following instructions in https://docs.gitlab.com/ee/development/ai_features/index.html
  2. Run GDK in SaaS mode and enable AI features for a group
  3. Navigate to {group}/-/usage_quotas#code-suggestions-usage-tab
  4. Navigate to {group} /-/settings/gitlab_duo_usage
Edited by Austin Regnery

Merge request reports

Loading