Add archived badge to merge request header

What does this MR do and why?

Add an archived badge to the merge request header. When a merge request belongs to an archived project, an "Archived" badge is now displayed in the header alongside the existing status, confidentiality, locked, hidden, and imported badges.

This reuses the existing ArchivedBadge component (~/issuable/components/archived_badge.vue) introduced in #576642 (closed), and reads the archived state from getNoteableData.archived in the notes Pinia store — consistent with how other badges (locked, confidential) are sourced in the same component.

References

Screenshots or screen recordings

Before After
No archived badge shown in MR header "Archived" badge (blue, info variant) appears after the status badge when the project is archived

How to set up and validate locally

  1. Archive a project (Settings > General > Advanced > Archive project)
  2. Open any merge request in that project
  3. Observe the "Archived" badge appears in the MR header next to the status badge
  4. Hover over the badge to see the tooltip: "This merge request belongs to an archived project and is read-only."
  5. Unarchive the project and confirm the badge disappears

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.

Merge request reports

Loading
Loading