Add skills routes to the Explore and project Vue routers

What does this MR do and why?

Add skill routes to both AI catalog Vue routers:

  • Explore: /explore/ai-catalog/skills and /explore/ai-catalog/skills/:id. Like agents and flows, they do not need sign-in.
  • Project: /<project>/-/automate/skills and /<project>/-/automate/skills/:id. Unknown paths under /skills redirect to the skills list.

The routes exist only when the ai_catalog_skills flag is on. When the flag is off, the routers use their existing fallbacks: Explore redirects to agents, and the project page redirects to Sessions.

This MR also passes exploreAiCatalogSkillsPath from the page data to the AI items index, the same as for agents and flows.

The pages are not final:

  • The skill list uses the shared list components. MR 7 adds the Explore Skills tab and the list from the design.
  • The skill details page shows the shared header only. MR 8 adds the skill details.

This is MR 6 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 !267449 (merged) ✅ Merged
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 👈 You are here
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

How to set up and validate locally

  1. Visit /<project>/-/automate/skills. The page redirects to Sessions.
  2. In the Rails console, run Feature.enable(:ai_catalog_skills).
  3. Visit /<project>/-/automate/skills again. The skills list opens.
  4. Visit /explore/ai-catalog/skills. The skills list opens.

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