Add badge for components in catalog when the project is archived

Overview

We have badges on the project badge for archived projects:

image

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:

image

Proposal

Implementation guide

Note: This will require 2 MRs.

MR #1 backend:

  1. Add a new field to the ResourceType to indicate whether the catalog resource project is archived.
  2. Update related spec.

MR #2 frontend:

  1. Access the newly added field in the getCatalogResources query by adding it to the catalogResourceFragment
  2. Based on the value, render a badge in ci_resources_list_item and ci_resource_header components. Use the GlBadge component with "info" variant.
  3. Update the related specs.
Edited by Anna Vovchenko