Add metadata database banner to Registry pages in the UI

Context

As part of Release container registry with metadata databa... (&5521) we want to increase the adoption of the metadata database. We have Add a banner to the container registry Admin pa... (#442644 - closed) which updated the documentation.

Problem

See https://gitlab.com/gitlab-com/gitlab-OKRs/-/work_items/6275+.

Solution

As a follow-up, we would like to update the UI in the registry pages to include a banner whenever we identify that the registry is not using the metadata database yet.

  • Settings -> Packages and Registries Screenshot_2024-02-22_at_5.04.50_pm
  • Deploy -> Container Registry Screenshot_2024-02-22_at_5.05.13_pm

For example:

  1. On load of these two pages, check -> is GitLab /gitlab/v1/ available?
  2. If not, display banner pointing to the documentation.

As a side note, this might be easier to implement once Enabling GitlabApiClient.repository_details for... (#434601 - closed) it's done!

Edited by Jaime Martinez