Add badge for components in catalog when the project is archived
Overview
We have badges on the project badge for archived projects:
When this project is a "component project" it's still available in the CI/CD Catalog (which makes sense to me), but it's not highlighted there. However, I think that this is a crucial information when discovering components, because it changes decision making if a component should be used or kept using. Today, the component is shown like this in the catalog when the project is archived:
Proposal
- Add a visual indicator in the CI/CD Catalog project view and detail page
- Figma dev
🔗 -
Design tab
- Use the
infovariant for consistency - Storybook
- Use the
- Figma dev
Implementation guide
Note: This will require 2 MRs.
MR #1 backend:
- Add a new field to the
ResourceTypeto indicate whether the catalog resource project is archived. - Update related spec.
MR #2 frontend:
- Access the newly added field in the
getCatalogResourcesquery by adding it to thecatalogResourceFragment - Based on the value, render a badge in
ci_resources_list_itemandci_resource_headercomponents. Use theGlBadgecomponent with "info" variant. - Update the related specs.
Edited by Anna Vovchenko

