Skip to content
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

[Stack mgt apps] Wrap all apps with KibanaThemeProvider #120003

Merged
merged 25 commits into from
Dec 8, 2021

Conversation

sebelga
Copy link
Contributor

@sebelga sebelga commented Nov 30, 2021

This PR wraps all the apps of the Stack management team with the new <KibanaThemeProvider/>.

Plugins

  • license_managment
  • cross_cluster_replication
  • watcher
  • remote_clusters
  • rollup
  • snapshot_restore
  • ingest_pipelines
  • index_management
  • index_lifecycle
  • upgrade_assistant
  • dev_tools
  • console
  • searchprofiler
  • grokdebugger
  • painless_lab
  • management

Note: there is one commit for each plugin change

How to test

There should not be much manual test to do as we should have smoke tests for all of our apps. Navigate to each of the app and verify that it renders correctly.

See #118866 for context.

@sebelga sebelga requested a review from a team as a code owner November 30, 2021 18:17
@sebelga sebelga added backport:skip This commit does not require backporting chore release_note:skip Skip the PR/issue when compiling release notes Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more v8.1.0 labels Nov 30, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-stack-management (Team:Stack Management)

Copy link
Member

@sabarasaba sabarasaba left a comment

Choose a reason for hiding this comment

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

Thanks for taking on this @sebelga! Code changes lgtm, tested locally and it all works as expected 🚀

import {
createKibanaReactContext,
KibanaThemeProvider,
} from '../../../../../src/plugins/kibana_react/public';
Copy link
Member

Choose a reason for hiding this comment

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

nit: Would be nice to move this into a shared_imports file

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good idea. Addressed in b7a22c7

@sebelga
Copy link
Contributor Author

sebelga commented Dec 7, 2021

Thanks for the review @sabarasaba! 👍

@sebelga
Copy link
Contributor Author

sebelga commented Dec 7, 2021

@elasticmachine merge upstream

@sebelga
Copy link
Contributor Author

sebelga commented Dec 8, 2021

@elasticmachine merge upstream

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
painlessLab 31 32 +1

Async chunks

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

id before after diff
console 373.2KB 373.3KB +107.0B
crossClusterReplication 163.1KB 163.2KB +57.0B
devTools 2.5KB 2.5KB +56.0B
grokdebugger 59.0KB 59.1KB +94.0B
indexLifecycleManagement 148.0KB 148.0KB +51.0B
indexManagement 515.0KB 515.1KB +75.0B
ingestPipelines 452.7KB 452.7KB +41.0B
licenseManagement 61.1KB 61.2KB +42.0B
management 8.5KB 8.5KB +48.0B
painlessLab 16.2KB 16.2KB +57.0B
remoteClusters 83.5KB 83.5KB +47.0B
rollup 129.0KB 129.0KB +43.0B
searchprofiler 159.1KB 159.2KB +67.0B
snapshotRestore 258.4KB 258.5KB +57.0B
watcher 272.6KB 272.6KB +41.0B
total +883.0B

Page load bundle

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

id before after diff
console 12.1KB 12.1KB +18.0B
crossClusterReplication 11.9KB 11.9KB +18.0B
devTools 10.5KB 10.7KB +141.0B
grokdebugger 4.7KB 4.7KB +11.0B
indexLifecycleManagement 28.0KB 28.0KB +11.0B
ingestPipelines 13.0KB 13.1KB +110.0B
licenseManagement 10.2KB 10.2KB +18.0B
painlessLab 10.5KB 10.5KB +18.0B
remoteClusters 7.3KB 7.4KB +11.0B
searchprofiler 21.3KB 21.5KB +157.0B
snapshotRestore 26.6KB 26.6KB +54.0B
upgradeAssistant 18.3KB 18.4KB +121.0B
watcher 13.6KB 13.6KB +18.0B
total +706.0B

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@sebelga sebelga merged commit b5e8b12 into elastic:main Dec 8, 2021
@sebelga sebelga deleted the stack-mgt-apps/kibana_theme_provider branch December 8, 2021 12:18
TinLe pushed a commit to TinLe/kibana that referenced this pull request Dec 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting chore release_note:skip Skip the PR/issue when compiling release notes Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more v8.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants