Loading
Fix active nav state for AI features
What does this MR do and why?
Sub-items in the AI / Automate super sidebar section (Agents, Flows, Triggers, Sessions, MCP servers, Onboarding) never highlighted as active when their page was open.
References
N/A
Screenshots or screen recordings
| Before | After |
|---|---|
![]() |
![]() |
![]() |
![]() |
How to set up and validate locally
- Ensure you have a group/project with GitLab Duo / AI features enabled so the AI (or Automate) section appears in the super sidebar.
- Visit each AI page and confirm the corresponding sidebar item is highlighted as active:
/-/automate/agents/-/automate/flows/-/automate/triggers/-/automate/agent-sessions/-/automate/mcp-servers/-/automate/onboarding
- Repeat the checks at the group level (
/groups/<group>/-/automate/...) for Agents, Flows, and MCP servers. - Validate with the
:hide_unpinned_sidebar_itemsfeature flag disabled (default):Confirm each page above highlights the correct sidebar item.Feature.disable(:hide_unpinned_sidebar_items) - Validate with the
:hide_unpinned_sidebar_itemsfeature flag enabled:Confirm the active state still resolves correctly for each page (item highlighting and, where applicable, the section/flyout showing as active).Feature.enable(:hide_unpinned_sidebar_items)
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 Austin Regnery



