Add Agents Dropdown Selector to Siderail

What does this MR do and why?

Added agent selector to + icon on the sidebar. The dropdown with agents only shows if a project has more than 1 agent available.

Will follow up with an MR in Duo UI to remove the duplicate New chat button.

Resolves https://gitlab.com/gitlab-org/gitlab/-/issues/577378

References

Screenshots or screen recordings

Before After
selectore_before agent_selector_after

How to set up and validate locally

  1. Enable New UI locally
  2. Make sure your project has multiple agents available (you can follow these instructions to create agents)
  3. Test adding a new chat with different agents

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 Anastasia Khomchenko

Merge request reports

Loading