-
Notifications
You must be signed in to change notification settings - Fork 349
fix: Improve search filter sorting, searching, and add exclude #698
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
Conversation
|
| Tooltip, | ||
| UnstyledButton, | ||
| } from '@mantine/core'; | ||
| import { IconSearch } from '@tabler/icons-react'; |
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.
heck yeah
| // taken care by the onClick in the group, triggering here will double fire | ||
| emptyFn | ||
| } | ||
| indeterminate={value === 'excluded'} |
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: maybe also change the color of the checkbox when it's excluded?
| }; | ||
|
|
||
| it('should sort options alphabetically by default', () => { | ||
| renderWithMantine(<FilterGroup {...defaultProps} />); |
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.
👀 noice
| flex-shrink: 0; | ||
| word-break: break-all; | ||
|
|
||
| :global { |
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: this is probably better to move to a global 'mantine-overrides.scss' file? otherwise there might be wrong styling when SearchPage isn't imported
Adds
Enhances:
New NOT option

Before
After


Search filter ordering

Before
After

Searching within Filters

