Skip to content

Comments

[Controls] migrate scss to emotion#216413

Merged
mbondyra merged 19 commits intoelastic:mainfrom
mbondyra:controls_scss_emotion
Jun 6, 2025
Merged

[Controls] migrate scss to emotion#216413
mbondyra merged 19 commits intoelastic:mainfrom
mbondyra:controls_scss_emotion

Conversation

@mbondyra
Copy link
Contributor

@mbondyra mbondyra commented Mar 30, 2025

Summary

Part of #207852

About bundle size change: the bundle increased slightly since we have to add core/public package. It's only 100B though, so I don't think it's worth optimizing (if we do, we should focus on different parts on application, for example async load of ControlPanel)
Screenshot 2025-06-03 at 12 09 03

@mbondyra mbondyra added Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas t// release_note:skip Skip the PR/issue when compiling release notes backport:skip This PR does not require backporting v9.1.0 scss-removal labels Mar 30, 2025
@mbondyra mbondyra force-pushed the controls_scss_emotion branch 2 times, most recently from 276ea69 to a89380b Compare April 3, 2025 13:53
@elastic elastic deleted a comment from elasticmachine Apr 3, 2025
@mbondyra mbondyra force-pushed the controls_scss_emotion branch from 3e64887 to 3817cd6 Compare April 3, 2025 19:47
@mbondyra mbondyra force-pushed the controls_scss_emotion branch from 3817cd6 to 110406f Compare May 8, 2025 14:23
@mbondyra mbondyra force-pushed the controls_scss_emotion branch 4 times, most recently from f188033 to 09ed761 Compare June 2, 2025 09:23
@mbondyra mbondyra marked this pull request as ready for review June 2, 2025 10:24
@mbondyra mbondyra requested review from a team as code owners June 2, 2025 10:24
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-presentation (Team:Presentation)

@mbondyra mbondyra force-pushed the controls_scss_emotion branch from 633c538 to 9af4f56 Compare June 2, 2025 12:06
@mbondyra mbondyra force-pushed the controls_scss_emotion branch from d7e9fe5 to 05efa7f Compare June 2, 2025 13:23
@Heenawter Heenawter self-requested a review June 2, 2025 16:20
@mbondyra mbondyra requested a review from a team as a code owner June 3, 2025 10:10
mbondyra and others added 4 commits June 3, 2025 13:26
…t --include-path /api/status --include-path /api/alerting/rule/ --include-path /api/alerting/rules --include-path /api/actions --include-path /api/security/role --include-path /api/spaces --include-path /api/streams --include-path /api/fleet --include-path /api/dashboards --include-path /api/saved_objects/_import --include-path /api/saved_objects/_export --include-path /api/maintenance_window --update'
@mbondyra mbondyra force-pushed the controls_scss_emotion branch from 964a5c7 to b494e45 Compare June 3, 2025 13:03
Copy link
Contributor

@jbudz jbudz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

packages/kbn-optimizer/limits.yml LGTM

Copy link
Contributor

@Heenawter Heenawter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - tested various scenarios and this PR actually fixes a lot of previously-broken styles 🎉 Thanks so much for your work on this!

mbondyra and others added 3 commits June 3, 2025 23:03
…_snapshot --include-path /api/status --include-path /api/alerting/rule/ --include-path /api/alerting/rules --include-path /api/actions --include-path /api/security/role --include-path /api/spaces --include-path /api/streams --include-path /api/fleet --include-path /api/dashboards --include-path /api/saved_objects/_import --include-path /api/saved_objects/_export --include-path /api/maintenance_window --update'"

This reverts commit 4fc6c08.
@mbondyra mbondyra force-pushed the controls_scss_emotion branch from d8f3dc4 to 0352ba8 Compare June 5, 2025 21:38
mbondyra and others added 4 commits June 5, 2025 23:47
…t --include-path /api/status --include-path /api/alerting/rule/ --include-path /api/alerting/rules --include-path /api/actions --include-path /api/security/role --include-path /api/spaces --include-path /api/streams --include-path /api/fleet --include-path /api/dashboards --include-path /api/saved_objects/_import --include-path /api/saved_objects/_export --include-path /api/maintenance_window --update'
@elasticmachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
controls 380 354 -26

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
controls 479.0KB 464.3KB -14.8KB
dashboard 622.9KB 622.8KB -144.0B
total -14.9KB

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
controls 11.7KB 11.8KB +120.0B

History

@mbondyra mbondyra merged commit 410ff44 into elastic:main Jun 6, 2025
10 checks passed
pmuellr pushed a commit to pmuellr/kibana that referenced this pull request Jun 11, 2025
## Summary

Part of elastic#207852

About bundle size change: the bundle increased slightly since we have to
add core/public package. It's only 100B though, so I don't think it's
worth optimizing (if we do, we should focus on different parts on
application, for example async load of ControlPanel)
<img width="1580" alt="Screenshot 2025-06-03 at 12 09 03"
src="https://github.com/user-attachments/assets/2fcd558c-0401-4f1a-b8d5-f63b66d2fad2"
/>

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
nickpeihl pushed a commit to nickpeihl/kibana that referenced this pull request Jun 12, 2025
## Summary

Part of elastic#207852

About bundle size change: the bundle increased slightly since we have to
add core/public package. It's only 100B though, so I don't think it's
worth optimizing (if we do, we should focus on different parts on
application, for example async load of ControlPanel)
<img width="1580" alt="Screenshot 2025-06-03 at 12 09 03"
src="https://github.com/user-attachments/assets/2fcd558c-0401-4f1a-b8d5-f63b66d2fad2"
/>

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:skip This PR does not require backporting release_note:skip Skip the PR/issue when compiling release notes scss-removal Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas t// v8.19.0 v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants