Add the Artifact Registry manifest referrers tab
What does this MR do and why?
The Referrers tab on the container manifest detail page has been an empty
panel since the tab set shipped. This fills it: a referrers_section.vue
that owns its own document, and a referrers_table.vue of digest, artifact
type and published date.
Four decisions worth a reviewer's attention:
- The document lives on the section, not on the page. Mounting is then
what issues the read, and because the tab set is lazy an inactive Referrers
tab asks Artifact Registry for nothing. Verified against the local GDK: the
Overview tab issues
getArtifactRegistryManifestalone. - The cursor argument is repeated on the
manifestclient field as well as on the connection. Apollo prunes a variable only when a client field's own arguments use it, so one reaching the nested connection alone survives into the request and the endpoint rejects the operation as declared but not used.queries_spec.jsnow guards this for the new document, alongside the others. There is no precedent for this in the tree - aversion(…, first:)form existed intypedefs.graphqlwhen the files tab shipped but has since been removed, so this is the first live instance of the workaround. - The seeded referrer rows hang off the subject manifest under
referrerRows, notreferrers. Apollo falls back to a same-named property on the parent when no resolver answers a field, which would hand the connection a bare array instead of a page. - The table is laid out fixed. Sized to its content it grows past the tab panel and draws over the sidebar beside it, because a media type is long and a table has no reason to shrink below its own content. This was caught in the browser, not in a spec.
Deliberately not shipped, both matching the design prototype rather than the manifests list one route away: no row menu, because every item the prototype puts there is a write; and no copy button beside the digest, because the digest links to a page that already carries the whole value.
The tab count is not part of this change - the step that added the tabs also
added referrersCount to the manifest selection, so the badge has been
rendering since then.
A review pass by a second agent found several things worth fixing, all addressed here: an absent connection was presented as "nothing refers to this manifest" rather than as a failure; a table with no rows rendered nothing at all, which is a state this MR ships; a re-read showed the previous manifest's rows with no spinner; the tab panel had no padding, which had been invisible while the tabs had no content; the referrers connection had no cache type policy, unlike every other connection in this feature; and the referrer mocks used GitLab global IDs, which this API never returns. Two test gaps are closed too - the referrers document now runs through a composed Apollo client, and the "an inactive tab asks Artifact Registry for nothing" claim is asserted against the request handler rather than against whether the component mounted.
EE-only and behind artifact_registry_ui, which is default-off, so there is no
changelog trailer.
References
- Plan, Step 8 of 15: https://gitlab.com/gitlab-org/ops/artifact-registry/-/blob/main/docs/plans/monolith/2026-09-08-container-manifest-detail.md
- Spec: https://gitlab.com/gitlab-org/ops/artifact-registry/-/blob/main/docs/specs/monolith/S06-version-detail.md
- Design prototype, the surface this matches: https://gitlab-org.gitlab.io/ci-cd/package-stage/artifact-registry-design-proposal/repositories/hosted/manifest/
Screenshots or screen recordings
| Before | After |
|---|---|
![]() |
![]() |
Both full-page, same OCI manifest, Referrers tab selected. Note the before: the tab and its count already existed, with nothing beneath them.
A manifest nothing refers to:
Checked at md and below as well: the table stacks, each cell keeps its column
label, and the page takes no horizontal scroll.
How to set up and validate locally
- In the Rails console, enable the flag:
Feature.enable(:artifact_registry_ui) - The manifest ladder is seeded from the image id, and its digests are its own
rather than the ones the manifests connection returns, so reach the page by a
computed URL rather than by clicking. For the
oci-artifactsrepository on a default GDK:/o/default/-/artifact_registry/acme/repositories/oci-artifacts/36c00923-36c0-0924-36c0-092536c00926/manifests/sha256:1460bea91460beaa1460beab1460beac1460bead1460beae1460beaf1460beb0?tab=referrers - The tab lists one referrer, its digest linking to that manifest's own page, its artifact type beside the semantic badge the merged kind derivation produces, and its push time.
- Load the same URL without
?tab=referrersand confirm in the performance bar that onlygetArtifactRegistryManifestis issued. - A manifest nothing refers to reads
Nothing refers to this manifest.rather than rendering an empty table body. - Storybook covers the loading, service-unavailable and no-referrers arms:
ReferrersTabLoading,ReferrersTabUnavailable,ReferrersTabNone.
Jest passes on both Vue versions (977 examples across the feature's
repositories/versions and graphql specs).
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.


