-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
feat(search-bar): Add conditionals section to filter key dropdown #102314
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
base: master
Are you sure you want to change the base?
feat(search-bar): Add conditionals section to filter key dropdown #102314
Conversation
static/app/components/searchQueryBuilder/tokens/filterKeyListBox/useFilterKeyListBox.tsx
Show resolved
Hide resolved
e5e8aaa to
4dd870b
Compare
static/app/components/searchQueryBuilder/tokens/filterKeyListBox/useFilterKeyListBox.tsx
Show resolved
Hide resolved
malwilley
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should and/or be searchable? it looks like they are not right now
| }): BooleanFilterItem { | ||
| return { | ||
| key: getEscapedKey(value), | ||
| type: 'boolean-filter' as const, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: AND/OR are technically not filters, which does confuse the naming of the FilterKeyListBox a bit :/
static/app/components/searchQueryBuilder/tokens/filterKeyListBox/utils.tsx
Outdated
Show resolved
Hide resolved
static/app/components/searchQueryBuilder/tokens/filterKeyListBox/types.tsx
Outdated
Show resolved
Hide resolved
There is another ticket to handle this, wanted to split the implementations up. |
4dd870b to
716ce93
Compare
4a74f17 to
644f709
Compare
644f709 to
a4d3b53
Compare
This PR adds in a new
Conditionalssection that containsANDandOR. We conditionally render this section, once the user has moved off of the first item as you can not start a filter with a conditional.Ticket: EXP-562
Example: