Add Version selector for Catalog Resource page

Problem Statement

Currently, the catalog resource pages (e.g., https://gitlab.com/explore/catalog/components/opentofu) always display information for the latest version of a component. However, users need the ability to view catalog resource pages for specific versions. This limitation prevents users from accessing historical information and comparing different versions of a component.

Proposal

  1. Implement a version selector feature on catalog resource pages.
  2. When a specific version is selected:
  3. By default, show the latest version when no specific version is selected
  4. Ensure the version selector is consistent with existing designs for the feature
  5. Update Publishing API to return the catalog URL containing the specific version (as of today it returns the URL without version).

Additional Notes

  • This feature was previously included in the designs and should be prioritized for implementation
  • The version selector will enhance user experience by allowing easy navigation between different versions of a catalog resource
  • The version selector will act as a permalink for a specific version and it's returned by the Publishing API.
Edited by Fabio Pitino - PTO until Jan 1