-
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 and sort options to match order of table columns #7392
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 pull request implements the desired behavior for filter and sort menu items to match the order of table columns, addressing issue #5960. Key changes include:
- Modified
ObjectFilterDropdownFilterSelect.tsx
to separate visible and hidden columns - Implemented sorting of visible columns to match table column order
- Added a separator between visible and hidden column sections
- Updated filtering logic to handle visible and hidden columns separately
- Utilized
RecordIndexRootPropsContext
anduseRecordTableStates
hook for column information
The changes align the filter and sort dropdown menu items with the table column order, improving user experience and consistency across the interface.
1 file(s) reviewed, 3 comment(s)
Edit PR Review Bot Settings
...modules/object-record/object-filter-dropdown/components/ObjectFilterDropdownFilterSelect.tsx
Show resolved
Hide resolved
...modules/object-record/object-filter-dropdown/components/ObjectFilterDropdownFilterSelect.tsx
Show resolved
Hide resolved
...modules/object-record/object-filter-dropdown/components/ObjectFilterDropdownFilterSelect.tsx
Outdated
Show resolved
Hide resolved
@CoreTeamTwenty Ready for Review |
@charlesBochet Used this PR to refactor the hierarchy of object filter dropdown and created the component state v2 wrapper and some component states. |
Awarding Nabhag8848: 150 points 🕹️ Well done! Check out your new contribution on oss.gg/Nabhag8848 |
…q#7392) ### ISSUE - Closes twentyhq#5960 ### Demo https://github.com/user-attachments/assets/279b19cf-6841-4a63-82ed-423bc0eb4395 --------- Co-authored-by: Lucas Bordeau <[email protected]>
ISSUE
Demo
Screen.Recording.2024-10-02.at.4.42.51.PM.mov