-
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
Components: Remove unused components from /ui
#52953
Conversation
Size Change: +5.46 kB (0%) Total Size: 1.44 MB
ℹ️ View Unchanged
|
Flaky tests detected in 6989960. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/5662179505
|
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.
This tests well for me! ✅
I appreciate being added to review this, thank you! The new tooltip I've been working on is currently in the ui folder, so I'll make sure to move that out. And when that is ready, we'll be able to remove the ui/tooltip you mentioned and Shortcut. 😄
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.
LGTM 🚀 🚢
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.
Love the cleanup here ❤️ 🚀
What?
Removes unused components from the
packages/components/src/ui
folder.Why?
For context, there is no longer a need to keep a separate
/ui
folder around, so we want to move toward removing this extra folder grouping.To begin with, there are a lot of experimental components in this folder that are not used anywhere, and are no longer part of our overall component strategy. They add unnecessary overhead when auditing or just looking for components.
Removed components
ControlGroup
: Should be redesigned specifically for Implement a standard "controls grid" component for sidebar #43423.FormGroup
,ControlLabel
: Superseded byBaseControl
.Spinner
: Unused, and no plans to use.Not removed (or moved) in this PR
These will be addressed separately.
ContextSystemProvider
: Should be moved to root.Tooltip
: There is one use in the Gutenberg app, which I believe is pretty unintentional. This use should be replaced with the main Tooltip component.Shortcut
: This is a dependency ofTooltip
, but is unused elsewhere.Testing Instructions
✅
npm run build
succeeds without errorFYI, none of these components are exported publicly. The readme files are already excluded from the public docs as well.