-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
DataViews: Allow column re-ordering. #63416
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
</DropdownMenuGroup> | ||
) } | ||
<DropdownMenuGroup> | ||
<DropdownMenuItem |
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.
The two additional menu items here are the main changes here, this component was just extracted from the "index.tsx" file otherwise.
I'm not sure what steps I need to take to reproduce, could you file a separate issue if it's unrelated? I'm also not sure how to test this PR tbh, I don't see the move left/right buttons anywhere when I click the header of a column. |
@ellatrix yeah, sorry that was unclear. Here's a video that shows the bug. Screen.Recording.2024-07-11.at.2.14.02.PM.mov |
A question for @WordPress/gutenberg-design (not necessary to address in this PR): should the menu remain open after moving rather than auto-closing? |
There are some separate discussion on that, e.g. this menu doesn't auto-close: I personally find that disruptive and confusing, and I think I'd find it confusing here too. But those are not strong opinions, rather to say: it may be a broader than just-design question. |
Probably something we should define at the system level 👍 |
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.
Code wise this looks good, thanks!
Co-authored-by: youknowriad <[email protected]> Co-authored-by: ntsekouras <[email protected]> Co-authored-by: jameskoster <[email protected]> Co-authored-by: ellatrix <[email protected]> Co-authored-by: jasmussen <[email protected]>
Closes #63414
What?
This PR implements column reordering in table dataviews.
Notes:
Testing Instructions