-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Refactor "Settings" panel of Navigation Item block to use ToolsPanel instead of PanelBody #67973
Refactor "Settings" panel of Navigation Item block to use ToolsPanel instead of PanelBody #67973
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. |
@rinkalpagdar Looks like the Linting GitHub Action Check is failing. Would you mind addressing that? :) |
I see See contribution guidelines for developer tool setup - https://developer.wordpress.org/block-editor/contributors/code/getting-started-with-code-contribution/#developer-tools. |
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.
Besides the linting there are some additional notes here:
In this initial refactor we need to make sure that all settings that were present before this update are still always visible after the update. So every ToolsPanelItem
needs to have isShownByDefault
set on it
CleanShot.2024-12-13.at.15.48.48.mp4
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.
Thank you for tackling this.
I wonder if you'd be able to revise the PR to remove the whitespace changes as it's making it quite challenging to review.
Much appreciated.
handleDragEnter( event ); | ||
handleDragEnter(event); |
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.
Could we please remove all the whitespace changes in this PR? 🙏
It would make it a lot easier to review. Many thanks.
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.
Hello @getdave I have removed all whitespace changes.
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.
@rinkalpagdar, unfortunately, linting errors remain. I would recommend setting up ESLint + Prettier and letting the editor handle stylistic fixes for you.
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.
These now look fixed to me thank you.
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.
Thank you for your continued work on this.
@fabiankaegy I just tested and the settings look the same and are set to display in the same way they were previously. Tests pass with is encouraging.
I would suggest an additional confidence check from @fabiankaegy @Mamaduka and perhaps @draganescu?
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.
Thanks for much for working on this! This works as expected :)
Part of #67813
Fixes #67947
Testing Instructions
Screenshots or screencast