gatus icon indicating copy to clipboard operation
gatus copied to clipboard

Feature: Group ordering

Open vanhoutenbos opened this issue 1 year ago • 7 comments

Describe the feature request

Hi!

I am not sure if this could be implemented in the current version of how groups work but it would be nice to have another option than 'alphabetical' ordering in the groups. At this moment I add '1.' or '2.' infront of my group name to order them properly but it would be nice to make 'group' a object with in there a 'name' and a 'order' for example.

config:
  endpoints:
    - name: Hello google
      url: https://google.com
      group: 
        name: "Group A"
        order: 1
      conditions:
        - "[STATUS] == 200"
    - name: Hello bing
      url: https://bing.com
      group: 
        name: "Group B"
        order: 2
      conditions:
        - "[STATUS] == 200"

Or potentially add a config.groups setting

Why do you personally want this feature to be implemented?

I do not like the visuals of adding the '1.' to the group name, and it also shows in my notifications with makes it less readable.

How long have you been using this project?

too long :P

Additional information

No response

vanhoutenbos avatar Aug 23 '23 11:08 vanhoutenbos

@vanhoutenbos Hello I can try to implement this , but I am not familiar with frontend UI/UX design so I'll try to sort it first in the backend side I'll land a PR after I finished this one

vax-r avatar Aug 24 '23 06:08 vax-r

Nice, potentially I could help with the frontend part of it!

vanhoutenbos avatar Aug 24 '23 16:08 vanhoutenbos

guys, is there any progress on this?

221bshashank avatar Nov 03 '23 19:11 221bshashank

guys, is there any progress on this?

Noone of us have great GO knowledge but feel free to make a PR that fixed this!

A workaround is to add a numerical value in front of your group name.

Forexample:

  1. Super important group

  2. Less important

  3. Other

vanhoutenbos avatar Nov 03 '23 19:11 vanhoutenbos