Adds tabs to maven registries and upstreams page

What does this MR do and why?

Adds tabs to maven registries and upstreams page

Adds Registries and Upstreams tabs with query params synced.

Emit registries count from existing registries list view and show them in the tab.

Temporarily emit count from new upstreams list view.

Move files to structure similar to the backend and other registry directories.

Update Maven upstreams breadcrumb to use tab query parameter.

Update redirect path when upstream is deleted.

Inject edit & show upstream template links to be used in upstreams list component in next iteration.

Fix sidebar menu not active on registries and upstreams page. This was introduced in Replace registries index with registries and up... (!205144 - merged)

EE: true

References

Screenshots or screen recordings

Before After
Screenshot_2025-09-23_at_1.05.23_pm

How to set up and validate locally

  1. Ensure you have enabled the following feature flags
$ gdk rails console
Feature.enable(:maven_virtual_registry)
Feature.enable(:ui_for_virtual_registries)
  1. Go to a top-level group
  2. Go to Deploy -> Virtual Registry
  3. Create a new maven registry
  4. Then click on the Maven registries breadcrumb to see the Registries and Upstreams tabs.
  5. Confirm empty state is shown under the upstreams tab.
  6. Confirm that sidebar Virtual registry tab is active.
  7. Click on the newly created maven registry
  8. Click on the Add upstream button
  9. The required fields are name, url. For the URL, you can use https://repo.maven.apache.org/maven2
  10. Click on Create upstream
  11. Visit the upstream details groups/<group>/-/virtual_registries/maven/upstreams/<upstream-id>
  12. Confirm that Maven upstreams breadcrumb shows the Registries and upstreams page with Upstreams tab selected.
  13. Visit the upstream edit page groups/<group>/-/virtual_registries/maven/upstreams/<upstream-id>/edit.
  14. Confirm that Maven upstreams breadcrumb shows the Registries and upstreams page with Upstreams tab selected.

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.

Related to #556837 (closed)

Edited by Rahul Chanila

Merge request reports

Loading