companion icon indicating copy to clipboard operation
companion copied to clipboard

Sort added instances by (name, module, status, enabled?)

Open Fplusplus opened this issue 6 years ago • 15 comments

Describe the feature Just some sorting options for the active/included instances, would be great. Classic options could contain: name, date added, active/disabled, etc

Is this platform dependent (windows, mac, ..)? No

Usecases As this is a insanely versatile app, someone might end up with a lot of instances running at the same time. Some organizing options for this self-created mess would be amazing :)

Fplusplus avatar Nov 19 '20 14:11 Fplusplus

This would definitely be great. Just like we can re-arrange button action items, the ability to move instances around would be real nice.

josephdadams avatar Nov 19 '20 16:11 josephdadams

Yeah, I looked into this since we have sorting code elsewhere and there was an architectural reason it was going to be difficult. Doable, but not the simple port I was hoping for.

krocheck avatar Nov 19 '20 21:11 krocheck

At the moment sorting is done alphabetical. It is not a big deal to have different output sorting, but we would need a way to input the sorting criteria. The one big list with gazillion actions is indeed a design mishap from the early days. So far the solution is to use the search functionality instead of sort.

dnmeid avatar Nov 23 '20 22:11 dnmeid

@dnmeid I didn't mean the list to choose from, I am talking about the active instances.

sorry I wasn't clear enough

Fplusplus avatar Nov 23 '20 22:11 Fplusplus

I think there are two approaches that could be taken to this:

  1. have the order defined manually, and allow the user to sort them as they like
  2. put them into a table that allows for sorting by different column on the fly

And perhaps it would work with either strategy, is to be able to group/categorise the connections in some way. This would work nicely with manual ordering, and would need some work to figure out how/if that would work with the auto sorting.

Being able to filter the list by status would be nice too (disabled/ok/warning/error)

Anyone have any preference?

Julusian avatar Oct 02 '22 16:10 Julusian

#2. Could that not just be a visual thing within the html (and a small json setting to save the order) so that the underlying database order doesn't need to be messed with?

MeestorX avatar Oct 02 '22 19:10 MeestorX

For me, sorting Enabled/Disabled would be helpful. I have a lot of modules disabled when I am not actively using certain items. Removing the module also destroys any buttons that reference them.

istnv avatar Oct 02 '22 20:10 istnv

@MeestorX yes, that is what 2 would end up being, stored completely client side.

@istnv sorting, or hiding? I dont know where to put the buttons, but this is a quick prototype of filtering based on status (I stole a lot of it from the log tab) image I think this would be nice to have whichever way we decide to go

Julusian avatar Oct 02 '22 20:10 Julusian

an easy solution could be an additional sort column where a user can give the instances a personal ranking by just giving it numbers. then you can just sort by name, status label or your personal order

Fplusplus avatar Oct 02 '22 21:10 Fplusplus

@Julusian For me, sorted by status is more important than hiding. I re-enable the modules when necessary. Filter by status would work.

istnv avatar Oct 02 '22 21:10 istnv

The filtering similar to the Log page would be great, with the ability to custom sort them like Actions.

josephdadams avatar Oct 02 '22 21:10 josephdadams

I'm playing with this in the 3.0/develop branch, and I am pretty happy with the result.
The architectural issues stopping the manual sorting aren't a problem anymore, so this was fairly straightforward.

I still need to figure out where to put those filter buttons, but other than that I am happy with it

image

Julusian avatar Oct 16 '22 14:10 Julusian

Could we get these arrows/handles for triggers too? Maybe even grouping where multiple triggers are needed for certain multi-functions?

Velikyi avatar Nov 02 '22 03:11 Velikyi

@Velikyi https://github.com/bitfocus/companion/issues/2035 will likely also be done in 3.0

Julusian avatar Nov 02 '22 09:11 Julusian

This is in the 3.0 betas

Julusian avatar Dec 06 '22 21:12 Julusian