cryostatio / cryostat-web

Web front-end for Cryostat: Secure JDK Flight Recorder management for containerized JVMs
https://cryostat.io/
Other
10 stars 20 forks source link

[Task] Interactive matchExpression builder #913

Open andrewazores opened 1 year ago

andrewazores commented 1 year ago

Following on from https://github.com/cryostatio/cryostat-web/issues/912

Various target object fields displayed in the details view could be clickable, which would append the field as a condition in a built matchExpression. The expression would start as the empty string. Clicking the first field would produce an expression like target.alias == 'foo' or target.labels['mylabel'] == 'something', according to what it was the user clicked. Clicking on more fields would simply add more terms to the expression. Perhaps each field would have an AND and OR button next to it so the user can specify whether the term should be added to the expression as a conjunction or a disjunction. An expression like (A && B) || C could be built by clicking A, AND B, OR C controls.

andrewazores commented 3 weeks ago

Here's a really useful looking component library for this task.

https://github.com/react-querybuilder/react-querybuilder