Added archived field to resource type

What does this MR do and why?

Added archived field to resource type

This change adds support for displaying an "Archived" badge on CI catalog resources when the associated project is archived. The implementation includes:

  1. Adding an isArchived computed property to both the resource header and list item components to check if a resource is archived
  2. Adding visual indicators (badges) in the UI that show "Archived" when a resource is archived
  3. Exposing the archived status from the project model to the CI catalog resource
  4. Adding the archived field to the GraphQL API for CI catalog resources
  5. Updating tests and documentation to reflect these changes

The change makes it clearer to users when they're viewing or interacting with archived resources in the CI catalog.

Delegated archive to resource to project in model

Related: #537608 (closed)

References

Screenshots or screen recordings

Before After
Screenshot_2025-05-21_at_11-46-30_CI_CD_Catalog___GitLab Screenshot_2025-05-21_at_11-45-06_CI_CD_Catalog___GitLab
Screenshot_2025-05-21_at_11-46-40_CI_CD_Catalog___GitLab Screenshot_2025-05-21_at_11-45-26_CI_CD_Catalog___GitLab

How to set up and validate locally

  1. Make sure you have components set up in the CI/CD catalogue.
  2. Navigate to Settings > General of the component.
  3. Open 'Advanced' and scroll down to the 'Archive project' and click it.
  4. The 'Archived' badge will appear next to the version badge on the component.
  5. To unarchive, navigate back to Settings > General > Advanced and click the 'Unarchive project' button. The 'Archive' badge on the component will disappear.

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.

Edited by Sunjung Park

Merge request reports

Loading