Frontend: The catalog project badge goes to 404 before it got published

Overview

Users have encountered an issue where the CI/CD Catalog badge, expected to be a navigational element - redirects to a 404 error page. It seems to be happening before the project is officially published.

This behavior has been reported by @swiskow, who highlighted that clicking on the badge leads to a non-existent page, resulting in a confusing and suboptimal user experience.

Proposal

Fabio: We should disable the link if the catalog resource is not published yet. Ideally we could display the badge differently (maybe different color) for when the resource is still "unpublished".

If the project is marked as a CI/CD Catalog project but not yet released:

  • The project badge variant warning with the text CI/CD Catalog (unpublished)
  • The badge is not clickable but shows a popover with a link to the doc.

See the details in:

Edited by 🤖 GitLab Bot 🤖