NuGet / NuGetGallery

NuGet Gallery is a package repository that powers https://www.nuget.org. Use this repo for reporting NuGet.org issues.
https://www.nuget.org/
Apache License 2.0
1.54k stars 644 forks source link

[Feature]: collapse the preview and deprecated versions in the version tab #10172

Open Varorbc opened 1 month ago

Varorbc commented 1 month ago

Related Problem

I’ve noticed that as the package version list gets longer, it’s becoming hard to find specific versions because there are so many different types mixed in, like preview versions, stable versions, and deprecated ones. Can we consider folding the preview or deprecated versions and only show the stable ones expanded?

The Elevator Pitch

collapse the preview and deprecated versions in the version tab

Additional Context and Details

No response

agr commented 4 days ago

Related: https://github.com/NuGet/NuGetGallery/issues/9147, https://github.com/NuGet/NuGetGallery/issues/9496

I think we should look at the broader issue. The list may be long without pre-release and vulnerable/deprecated and we need some way to make it shorter, but keep relevancy.

The list currently lists versions in SemVer order descending and the change proposed in the linked PR breaks that sorting.

One option to work around that would be to have checkboxes to show/hide pre-release, vulnerable and deprecated version from the list, preserving the ordering regardless of checkboxes configuration. This, however, does not address the long list concern.

@JonDouglas thoughts?

erdembayar commented 4 days ago

Added Performance tag because there're some packages with thousands of preview versions and opening it takes a time to load.