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
- Implement a version selector feature on catalog resource pages.
- When a specific version is selected:
- Update the URL to reflect the chosen version (e.g., https://gitlab.com/explore/catalog/components/opentofu?version=0.27.0)
- Display the page content, README, and component metadata corresponding to the selected version
- By default, show the latest version when no specific version is selected
- Ensure the version selector is consistent with existing designs for the feature
- 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