-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Fix filter multi select #8682
Fix filter multi select #8682
Conversation
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.
PR Summary
This PR refactors the filter dropdown functionality to implement a nested dropdown pattern for operand selection, improving UI by allowing operands to appear over the main selection with proper offset spacing.
- Added new
ObjectFilterDropdownOperandDropdown
component in/packages/twenty-front/src/modules/object-record/object-filter-dropdown/components/ObjectFilterDropdownOperandDropdown.tsx
to handle nested dropdown behavior - Added
DropdownUnmountEffect
component in/packages/twenty-front/src/modules/ui/layout/dropdown/components/DropdownUnmountEffect.tsx
to properly close dropdowns on component unmount - Added
ObjectFilterDropdownOperandDropdown
scope toFiltersHotkeyScope
enum for keyboard shortcut handling - Removed old unfolding state logic (
isObjectFilterDropdownOperandSelectUnfolded
) across multiple components in favor of nested dropdown approach - Added
className
prop support toDropdownMenuHeader
andDropdownMenuItemsContainer
for better style customization
18 file(s) reviewed, 8 comment(s)
Edit PR Review Bot Settings | Greptile
...ules/object-record/object-filter-dropdown/components/ObjectFilterDropdownOperandDropdown.tsx
Show resolved
Hide resolved
...ules/object-record/object-filter-dropdown/components/ObjectFilterDropdownOperandDropdown.tsx
Show resolved
Hide resolved
...ules/object-record/object-filter-dropdown/components/ObjectFilterDropdownOperandDropdown.tsx
Outdated
Show resolved
Hide resolved
...ules/object-record/object-filter-dropdown/components/ObjectFilterDropdownOperandDropdown.tsx
Show resolved
Hide resolved
...odules/object-record/object-filter-dropdown/components/ObjectFilterDropdownOperandSelect.tsx
Show resolved
Hide resolved
packages/twenty-front/src/modules/ui/layout/dropdown/components/Dropdown.tsx
Show resolved
Hide resolved
packages/twenty-front/src/modules/ui/layout/dropdown/components/DropdownMenuHeader.tsx
Show resolved
Hide resolved
packages/twenty-front/src/modules/ui/layout/dropdown/components/DropdownMenuHeader.tsx
Show resolved
Hide resolved
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.
Behavior looks really nice
Small comments, PR approved nevertheless
ObjectFilterDropdownOperandDropdown
so the operand can be opened over the selection with an offsetDropdownUnmountEffect
to close the dropdown when the component unmountsBefore:
After: