Repository navigation
Forms: remove orphaned SCSS @use imports from dashboard partials - #48192
Conversation
|
Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.
Interested in more tips and information?
|
|
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 Follow this PR Review Process:
If you have questions about anything, reach out in #jetpack-developers for guidance! |
Code Coverage SummaryThis PR did not change code coverage! That could be good or bad, depending on the situation. Everything covered before, and still is? Great! Nothing was covered before? Not so great. 🤷 |
Drop @use imports of @wordpress/base-styles/{breakpoints,colors,variables} in six forms dashboard SCSS files where the namespace was never referenced. Root cause is the same pattern as #48184 — stale imports left behind when downstream code removed their only consumer. No effect on compiled CSS: the base-style partials emit no top-level rules, and @use namespaces are file-scoped (no @forward exists in the package), so removing the imports is a pure no-op at build time. Part of #48160.
Patch / removed entry for the dead-import removal in the previous commit.
3b8bc49 to
aa4b742
Compare
Part of #48160.
Proposed changes
Remove
@use "@wordpress/base-styles/{breakpoints,colors,variables}"imports from six forms dashboard SCSS files where the imported namespace was never referenced. Same root cause as #48184 — stale imports left behind after the only consumer was removed upstream (#46732 for theinbox/style.scssones; the others are sibling orphans surfaced while auditing the package).Files touched (9
@uselines total):src/dashboard/inbox/style.scssbreakpoints,colorssrc/dashboard/components/inspector/style.scssvariablessrc/dashboard/components/inspector/response-meta/style.scssbreakpointssrc/dashboard/components/feedback-comments/style.scssvariablessrc/dashboard/components/page/style.scsscolorsroutes/responses/response/style.scssbreakpoints,variablesWhy this is safe
breakpoints,colors,variables) emit no top-level rules — they're pure Sass definitions. Removing an unreferenced@useof a definition-only partial produces zero output change.@usenamespaces are scoped to the importing file. Only@forwardre-exports — and there are zero@forwarddirectives anywhere inprojects/packages/forms.@uses or@imports any of the six edited files. The only external hits are webpack-emitted source-path comments inside Jetpack's own compiled JS bundle — regenerated every build.Related product discussion/links
#46732root cause,.jp-forms-filters-bardead SCSS): Forms: remove dead .jp-forms-filters-bar SCSS #48184Does this pull request change what data or activity we track or use?
No.
Testing instructions
pnpm --filter @automattic/jetpack-forms build:dashboard— should complete without Sass errors.projects/packages/forms/build/jetpack-forms-dashboard.cssbefore and after this branch — the output should be byte-identical.packages/forms, patch / removed).