radix-vue / shadcn-vue

Vue port of shadcn-ui
https://www.shadcn-vue.com/
MIT License
3.51k stars 203 forks source link

fix: change label/value order in tasks priorities data #603

Closed pereira0x closed 2 weeks ago

pereira0x commented 2 weeks ago

๐Ÿ”— Linked issue

โ“ Type of change

๐Ÿ“š Description

This PR addresses and resolves an inconsistency in the data of the task example, ensuring that priority attributes follow the same order as labels and statuses attributes.

๐Ÿ“ธ Screenshots (if appropriate)

๐Ÿ“ Checklist

sadeghbarati commented 2 weeks ago

Hi, can you explain more or record a video of this inconsistency?

pereira0x commented 2 weeks ago

Hey, here you go: In both labels and statuses, the order of their attributes is value first, then label.

image image

In priorities, the label comes first, then it's the value:

image

I believe it would be nice to use the same order in all of them.

sadeghbarati commented 2 weeks ago

I get it now, but it's not that important right? we should add eslint rule to sort them in alphabetical order