acsresearch / interlab

MIT License
17 stars 3 forks source link

Flexible filtering in the UI #37

Open jas-ho opened 11 months ago

jas-ho commented 11 months ago

Goal: Allow the user to quickly filter a long list of child contexts down to a smaller more focused list image

Example applications:

jas-ho commented 11 months ago

Option 1 json-path It is somewhat standard, and you could e.g. do sth like $..[?('your_tag' in @.tags)]..[?(@.state="error")] to find all contexts below a context tagged your_tag

Note that there are some issues in using this directly: e.g. tags is a list of both strings and more complex objects (colored tags etc), so the simple selector won't work directly. But we can improve upon that internally by making the JSON more consistent in this.

[copy-pasted from @gavento's comments on slack]