tilt-dev / tilt

Define your dev environment as code. For microservice apps on Kubernetes.
https://tilt.dev/
Apache License 2.0
7.57k stars 298 forks source link

Resource group collapsed by default #6201

Open nicks opened 1 year ago

nicks commented 1 year ago

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.

dnephin commented 1 year ago

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.

oleghind commented 3 weeks ago

Sorting and collapsing groups is really necessary