Loading
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/skillsand/explore/ai-catalog/skills/:id. Like agents and flows, they do not need sign-in. - Project:
/<project>/-/automate/skillsand/<project>/-/automate/skills/:id. Unknown paths under/skillsredirect 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) |
| 2 | Add Skills project sidebar menu item | !267449 (merged) |
| 3 | Register skill as an AI catalog item type | !267460 (merged) |
| 4 | Fall back to the git author name in item attribution | !267461 (merged) |
| 5 | Support skills in the version alert and enable disclaimer | !268927 (merged) |
| 6 | Add skills routes to the Explore and project Vue routers | |
| 7 | Add Skills tab to the Explore AI catalog | !268368 (merged) |
| 8 | Add the skill details page | !268788 (merged) |
References
- Related #630880 (closed)
- Epic: gitlab-org#22961
- Rollout issue: #630885
- Split from !260396 (closed)
Screenshots or screen recordings
| Before | After |
|---|---|
How to set up and validate locally
- Visit
/<project>/-/automate/skills. The page redirects to Sessions. - In the Rails console, run
Feature.enable(:ai_catalog_skills). - Visit
/<project>/-/automate/skillsagain. The skills list opens. - 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