Create a different badge for unpublished CI/CD catalog resources
What does this MR do and why?
This MR adds a new badge for the CI/CD catalog resource for the unpublished resources. The badge doesn't provide a link to the resource (as it's unavailable until published) and adds a popover with the documentation link.
This MR handles the cases for the .haml templates and adds a new field to the project query, which will be used in the next MR to provide a similar update for the .vue-served parts.
References
Screenshots or screen recordings
| Before | After |
|---|---|
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
How to set up and validate locally
- Create a project
- Naviate to Project -> Settings -> General -> Visibility, project features, permissions
- Check the
CI/CD Catalog projectto 'on'. - Navigate to the project home page and verify the badge is shown correctly, without a link.
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.
Related to #455039 (closed)
Edited by Anna Vovchenko









