tilt icon indicating copy to clipboard operation
tilt copied to clipboard

Resource group collapsed by default

Open nicks opened this issue 2 years ago • 2 comments

Describe the Feature You Want

Collapse resource groups by default

Why Do You Want This?

If you have a lot of resources, tilt let's you group them by label.

By default, all groups are expanded. But presumably if you added labels, it's because the resource list is getting unwieldy!

Additional context Not totally sure this is a good idea, posting to collect feedback.

Also could make sense to make it some sort of an option. I like that solution less, because it might be confusing how options interact.

nicks avatar Aug 18 '23 15:08 nicks

The main benefit for me would be in tilt snapshot view. We use the snapshots to debug CI runs, so the url of the snapshot is frequently different. I think because the URL is different anything saved in local storage (starred resources, etc) are not preserved each time a new snapshot is opened. It would save a bunch of time if every time we opened a snapshot it could open to the detail view (/r/(all)/overview) with everything collapsed. I think we can link to /r/(all)/overview directly, we're just missing some way to auto collapse the resource groups. If we could link to /r/(all)/overview?collapsed=true , or /r/(all)/overview#collapsed=true that would work great. If we could use that same query parameter or fragment with the tilt up UI that would be really nice as well.

dnephin avatar Aug 20 '23 16:08 dnephin

Sorting and collapsing groups is really necessary

oleghind avatar Aug 21 '24 23:08 oleghind