server icon indicating copy to clipboard operation
server copied to clipboard

Reorganize the list of "Apps"

Open EVOTk opened this issue 5 years ago • 22 comments

Is your feature request related to a problem? Please describe. On the side, the applications are displayed in the order of creation. I wish I could change this order.

Describe the solution you'd like In Apps, choose an order number for each "Apps"

Additional context 2020-09-10 21_51_26-Gotify For example, I would like to be able to put "EVOserv" at the top of the list, but for that it would have been necessary to create it first! Now, for that I will have to delete all the Apps "above", and re-create them, which implies a change of token for this one!

Thx

EVOTk avatar Sep 10 '20 19:09 EVOTk

Yeah, seems like a good feature. You could also rename the first application, then you don't have to remove all applications.

jmattheis avatar Sep 13 '20 09:09 jmattheis

Thanks for your feedback :) Renaming does not solve the problem of the "token" which is linked to an application. Renaming everything is the same as deleting, it will be necessary to change the tokens in the all applications, so that they correspond again.

EVOTk avatar Sep 13 '20 10:09 EVOTk

I like the suggestion of EVOTk.

narol69 avatar Sep 29 '20 20:09 narol69

Can I hop on the train to ask optional sorting by alphabet?

junpet avatar Nov 08 '20 10:11 junpet

+1 for this. Currently using gotify to manage 7 apps. Would like to rearrange my application list

nocturnalmc avatar Mar 27 '23 01:03 nocturnalmc

Bump to an old thread, it can be done via the database. Just reorder the IDs of the applications.

Raytestrak avatar May 31 '23 13:05 Raytestrak

Helllo, the list could be ordered with the sort() function.

Example : console.clear(); let fruits: string[] = ['Apple', 'Orange', 'Banana']; console.log("Before sort : " + fruits); fruits.sort(); console.log("After sort : " + fruits);

[LOG]: "Before sort : Apple,Orange,Banana" [LOG]: "After sort : Apple,Banana,Orange"

For Gotify, the dislay of the list is define in server\ui\src\layout\Navigation.tsx image

I tried to setup develpment environment but I failed, I can't test and create a pull request

xavier-GitHub76 avatar Nov 14 '23 08:11 xavier-GitHub76

The sort is OK with : const apps = appStore.getItems().slice().sort((a,b) => a.name.localeCompare(b.name));

Tests OK :

Applications created in this order :

  • Apple
  • Orange
  • Banana

Items are sorted on screen : image

xavier-GitHub76 avatar Nov 14 '23 13:11 xavier-GitHub76