Skip to content

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
Screenshot_2025-10-13_at_19.31.15 Screenshot_2025-10-13_at_15.29.48
Screenshot_2025-10-13_at_19.30.34 Screenshot_2025-10-13_at_15.44.04
Screenshot_2025-10-13_at_19.29.04 Screenshot_2025-10-13_at_15.46.49
Screenshot_2025-10-13_at_19.24.55 Screenshot_2025-10-13_at_15.30.37
Screenshot_2025-10-13_at_19.29.25 Screenshot_2025-10-13_at_15.30.49

How to set up and validate locally

  1. Create a project
  2. Naviate to Project -> Settings -> General -> Visibility, project features, permissions
  3. Check the CI/CD Catalog project to 'on'.
  4. 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

Merge request reports

Loading