Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Task] Interactive matchExpression builder #913

Open
Tracked by #376
andrewazores opened this issue Mar 20, 2023 · 1 comment
Open
Tracked by #376

[Task] Interactive matchExpression builder #913

andrewazores opened this issue Mar 20, 2023 · 1 comment
Labels
design feat New feature or request

Comments

@andrewazores
Copy link
Member

andrewazores commented Mar 20, 2023

Following on from #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
Copy link
Member Author

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
design feat New feature or request
Projects
No open projects
Status: Backlog
Development

No branches or pull requests

2 participants