Refined-github: Sorting labels based on colour and filter replaced by goto

Created on 13 Jul 2017  路  2Comments  路  Source: sindresorhus/refined-github

We are grouping labels by color to indicate that these belong together. Would it not be better to see the choices next to one another per colour?

Here's a comparison for one of our private repos' use of labels:

| Current sorting | Sorting based on color |
| - | - |
| Current sorting | Sorting based on color |

I personally think the sorting based on color is more readable. We could start to sort alphabetically and then show the labels with the same color:

  • Color red (this is the color of label A)

    • A

    • K

    • Z

  • Color blue (this is the color of label B)

    • B

    • X

  • Color green (this is the color of label C)

    • C

    • G

This approach makes it easier to find labels that you're searching for because you memorise colours very easily. You'd find yourself scrolling until you see the colour after which you can immediately click on the label you wanted to use because you memorised the colour.

Additionally what I'd like to propose is a replacement of the "Filter labels" field. Because labels are now grouped by colour, you might find yourself wanting to click on a different label with the same colour. So you search for 1 label by name, but currently it hides all of the other results. What I'd do is filter them, but still show the other results. It'd just scroll to the best result(s). If multiple are found, maybe the best one is shown or they're reordered and those are shown at the top.

Example of how I'd imagine it looked:
Searching labels

enhancement under discussion

Most helpful comment

screen shot 2017-07-13 at 09 56 23

The problem with this is that it assumes everyone groups by color instead of by name. That isn't always the case.

Sorting this list by color would make no sense: https://github.com/babel/babel/labels

馃憥 because this would have to be a per-repo setting and that kills it.

All 2 comments

It might also be interesting to be able to group labels by hue and sorted by saturation/value, or something. That way you could have, for example, your "undiscussed, discussing, finalised" group, but each level would make the color brighter or more saturated, perhaps.

screen shot 2017-07-13 at 09 56 23

The problem with this is that it assumes everyone groups by color instead of by name. That isn't always the case.

Sorting this list by color would make no sense: https://github.com/babel/babel/labels

馃憥 because this would have to be a per-repo setting and that kills it.

Was this page helpful?
0 / 5 - 0 ratings