Skip to content
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

Merged
merged 9 commits into from
Oct 10, 2024

Conversation

Nabhag8848
Copy link
Contributor

@Nabhag8848 Nabhag8848 commented Oct 2, 2024

ISSUE

Demo

Screen.Recording.2024-10-02.at.4.42.51.PM.mov

Copy link
Contributor

@greptile-apps greptile-apps bot left a 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 and useRecordTableStates 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

@Nabhag8848
Copy link
Contributor Author

@CoreTeamTwenty Ready for Review

@lucasbordeau
Copy link
Contributor

@charlesBochet Used this PR to refactor the hierarchy of object filter dropdown and created the component state v2 wrapper and some component states.

@lucasbordeau lucasbordeau merged commit 539dc95 into twentyhq:main Oct 10, 2024
11 checks passed
Copy link

oss-gg bot commented Oct 10, 2024

Awarding Nabhag8848: 150 points 🕹️ Well done! Check out your new contribution on oss.gg/Nabhag8848

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

Successfully merging this pull request may close these issues.

Menu Items Order Should Match Table Column Headers Order
3 participants