app-center icon indicating copy to clipboard operation
app-center copied to clipboard

channel dropdown - reverse the order

Open anasereijo opened this issue 1 year ago โ€ข 1 comments

Screenshot 2023-12-13 at 16 35 10

In the snap detail page, the channel dropdown is showing beta first. Let's reverse the order by having stable appear first on the list.

Consistent with what we do on snapcraft.io:

Screenshot 2023-12-13 at 16 34 58

anasereijo avatar Dec 13 '23 16:12 anasereijo

Hello @anasereijo,

I am trying to identify an approach to fix this. I don't see we can easily identify the sort order from the available data. Please suggest if there is any standard way to identify this.

During my exploration, observed that we have few fields to rely on, like Channel name, version, and published date. Dropdown items can be sorted on version, channel name. Is this okay?

For snaps having different tags for channels like V7/stable, in addition to latest/stable, can you suggest the best way to sort.

First group channels by version, and then in each group sort items so that channels will be displayed in the order of {tag}/stable, {tag}/candidate, {tag}/beta, {tag}/edge. Where {tag} can be v6, v7..

image

codinesh avatar Dec 16 '23 06:12 codinesh