-
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
Toolbar: move all subcomponents under the same folder #46951
Conversation
export { default as Toolbar } from './toolbar'; | ||
export { default as ToolbarButton } from './toolbar-button'; | ||
export { default as __experimentalToolbarContext } from './toolbar-context'; | ||
export { default as ToolbarGroup } from './toolbar-group'; | ||
export { default as ToolbarItem } from './toolbar-item'; | ||
export { default as ToolbarDropdownMenu } from './toolbar-dropdown-menu'; | ||
export { | ||
Toolbar, | ||
ToolbarButton, | ||
ToolbarContext as __experimentalToolbarContext, | ||
ToolbarDropdownMenu, | ||
ToolbarGroup, | ||
ToolbarItem, | ||
} from './toolbar'; |
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.
@geriux quick ping to make sure that the native side still builds and works like before
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.
I'll take a look 👍
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.
All working well 👍
export { default as Toolbar } from './toolbar'; | ||
export { default as ToolbarButton } from './toolbar-button'; | ||
export { default as ToolbarContext } from './toolbar-context'; | ||
export { default as ToolbarDropdownMenu } from './toolbar-dropdown-menu'; | ||
export { default as ToolbarGroup } from './toolbar-group'; | ||
export { default as ToolbarItem } from './toolbar-item'; |
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.
For ease of review: the contents of this file have simply been moved to packages/components/src/toolbar/toolbar/index.js
(the only code changes would be in the import paths).
A new index.js
file was then added to re-export all components out of the toolbar
folder.
Reviewing this PR commit-by-commit may be simpler.
Size Change: 0 B Total Size: 1.32 MB ℹ️ View Unchanged
|
Flaky tests detected in 4531710. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/3874016107
|
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.
Good call to do this prep work separately 👍
Looks good, should be good to go once the docs/manifest.json
is updated.
edab6d7
to
4531710
Compare
What?
Unify under the same parent
toolbar
folder all related subcomponents.Why?
This PR is in preparation to two refactors:
Moving all of the subcomponents under the same folder will reduce overhead during those two refactors, while keeping all these changes in a separate PR will also greatly reduce diff noise.
How?
Toolbar*
subcomponent in its own folder, under thetoolbar
folderstories
foldertests
foldertsconfig.json
Testing Instructions
trunk