Skip to content

Conversation

@Ahmed-Labs
Copy link
Member

  • Adds a dropdown within filter selectors to choose the operator for the filter.
  • Supports the default filter along with all wildcard operators.
  • Fully replaces mutableSearch usage with the search syntax parser.

Fixes DAIN-1104

@linear
Copy link

linear bot commented Nov 26, 2025

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Nov 26, 2025
@Ahmed-Labs Ahmed-Labs marked this pull request as ready for review November 26, 2025 21:07
@Ahmed-Labs Ahmed-Labs requested a review from a team as a code owner November 26, 2025 21:07
Copy link
Contributor

@DominikB2014 DominikB2014 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, but some implementation questions!

Comment on lines 353 to 360
items={operatorOptions.map(option => ({
...option,
key: option.value,
label: option.label,
textValue: option.textValue,
onClick: () => {
setStagedOperator(option.value);
},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Related to the above, isn't the memoization of operatorOptions negated because on every rerender we'll be mapping it a new objects (which triggers children to re-render)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point! I fixed the redundant memoization of operatorOptions and tried my best to group memos where possible. They're def effective but were not clean/optimal at first. Pls let me know what you think before I merge 🙏

Copy link
Contributor

@DominikB2014 DominikB2014 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice update on the memoization

if (!filterToken) {
return [];
}
const iniitalValue = globalFilter.value
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const iniitalValue = globalFilter.value
const initialValue = globalFilter.value

:D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants