Add Skills project sidebar menu item

What does this MR do and why?

Add a Skills item under AI in the project sidebar. It links to /<project>/-/automate/skills, added in !266269 (merged).

The item shows only when the ai_catalog_skills flag is on for the project and the user can read catalog items (read_ai_catalog_item). These are the same conditions that the controller uses for the route.

The page has no Vue route until MR 6. Until then, the project Vue router redirects /automate/skills to Sessions.

The AI Catalog Curation redesign (gitlab-org#23061) plans to replace the separate Agents, Flows and Skills items with one AI Catalog item (#627837). Until then, this item follows the current pattern.

This is MR 2 of the split of !260396 (closed). All parts are behind the ai_catalog_skills flag (default off).

# MR Status
1 Add routes for AI catalog skills !266269 (merged) ✅ Merged
2 Add Skills project sidebar menu item 👈 You are here
3 Register skill as an AI catalog item type !267460 (merged) ✅ Merged
4 Fall back to the git author name in item attribution !267461 (merged) ✅ Merged
5 Support skills in the version alert and enable disclaimer !268927 (merged)
6 Add skills routes to the Explore and project Vue routers !267907 (merged) ✅ Merged
7 Add Skills tab to the Explore AI catalog !268368 (merged)
8 Add the skill details page !268788 (merged)

References

Screenshots or screen recordings

Before After
Skills menu item before.png Skills menu item after.png

How to set up and validate locally

  1. Open a project with GitLab Duo enabled. Expand AI in the sidebar. There is no Skills item.
  2. In the Rails console, run Feature.enable(:ai_catalog_skills).
  3. Reload the page. AI > Skills appears after Flows. It links to /<project>/-/automate/skills, which redirects to Sessions until MR 6.

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 Justin Ho Tuan Duong

Merge request reports

Loading
Loading