[Visualize] Lazy load default editor, fix duplicated styles#66732
[Visualize] Lazy load default editor, fix duplicated styles#66732sulemanof merged 7 commits intoelastic:masterfrom
Conversation
src/plugins/vis_default_editor/public/default_editor_controller.tsx
Outdated
Show resolved
Hide resolved
@flash1293 we are still planning to land tree-shaking in 7.9 (and hopefully we can port it to 7.8) |
|
@restrry Thanks, makes sense. I'm really excited for this :) @sulemanof I think we can reap the |
|
Pinging @elastic/kibana-app (Team:KibanaApp) |
|
Down to |
flash1293
left a comment
There was a problem hiding this comment.
Tested in Firefox, Visualize still works, LGTM.
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
cchaos
left a comment
There was a problem hiding this comment.
I didn't test locally, but the SASS imports look ok.
…66732) * Lazy load bundle, fix duplicated styles * Add EuiLoadingChart and EuiErrorBoundary * Return localStorage service * Use mono spinner * Get rid of loading the editor outside of visualize mounting # Conflicts: # src/plugins/visualize/public/kibana_services.ts # src/plugins/visualize/public/plugin.ts
…67116) * Lazy load bundle, fix duplicated styles * Add EuiLoadingChart and EuiErrorBoundary * Return localStorage service * Use mono spinner * Get rid of loading the editor outside of visualize mounting # Conflicts: # src/plugins/visualize/public/kibana_services.ts # src/plugins/visualize/public/plugin.ts
…ent/add-support-in-url-for-hidden-toggle * 'master' of github.com:elastic/kibana: (49 commits) [Uptime] Improve responsiveness details page (elastic#67034) skip flaky suite (elastic#66669) Revert "Integration of a static filesystem for the node_modules (elastic#47998)" (elastic#67124) Support api_integration/kibana/stats against remote hosts (elastic#53000) chore(NA): add module name mapper for src plugins on x-pack (elastic#67103) Change the error message on TSVB in order to be more user friendly (elastic#67090) [kbn/optimizer] poll parent process to avoid zombie processes (elastic#67059) [Visualize] Lazy load default editor, fix duplicated styles (elastic#66732) Bump styled-component dependencies (elastic#66611) Bump react-markdown dependencies (elastic#66615) Fix Core docs links (elastic#66977) Timelion graph is not refreshing content after searching or filtering (elastic#67023) Remove `--xpack.endpoint.enabled=true` from README.md file (elastic#67053) Move apm tutorial from apm plugin into apm_oss plugin (elastic#66432) [Logs UI] Restore call to `UsageCollector.countLogs` (elastic#67051) Remove unused license check result from LP Security plugin (elastic#66966) [Saved Objects] adds support for including hidden types in saved objects client (elastic#66879) [Discover] Deangularize timechart header (elastic#66532) [Discover] Improve and unskip a11y context view test (elastic#66959) [SIEM] Refactor Timeline.timelineType draft to Timeline.status draft (elastic#66864) ... # Conflicts: # x-pack/plugins/index_management/__jest__/client_integration/helpers/home.helpers.ts
* master: [apm] Annotation API documentation (elastic#65963) [Uptime] Improve responsiveness details page (elastic#67034) skip flaky suite (elastic#66669) Revert "Integration of a static filesystem for the node_modules (elastic#47998)" (elastic#67124) Support api_integration/kibana/stats against remote hosts (elastic#53000) chore(NA): add module name mapper for src plugins on x-pack (elastic#67103) Change the error message on TSVB in order to be more user friendly (elastic#67090) [kbn/optimizer] poll parent process to avoid zombie processes (elastic#67059) [Visualize] Lazy load default editor, fix duplicated styles (elastic#66732) Bump styled-component dependencies (elastic#66611) Bump react-markdown dependencies (elastic#66615) Fix Core docs links (elastic#66977) Timelion graph is not refreshing content after searching or filtering (elastic#67023) Remove `--xpack.endpoint.enabled=true` from README.md file (elastic#67053) Move apm tutorial from apm plugin into apm_oss plugin (elastic#66432) [Logs UI] Restore call to `UsageCollector.countLogs` (elastic#67051) Remove unused license check result from LP Security plugin (elastic#66966)
* master: (21 commits) [Alerting] Hides the `alert` SavedObjects type (elastic#66719) skip flaky suite (elastic#66869) fix visual baseline tests [kbn/optimizer] require fsevents on macos (elastic#67147) [APM] Fix obscured service map connections (elastic#67129) [apm] Annotation API documentation (elastic#65963) [Uptime] Improve responsiveness details page (elastic#67034) skip flaky suite (elastic#66669) Revert "Integration of a static filesystem for the node_modules (elastic#47998)" (elastic#67124) Support api_integration/kibana/stats against remote hosts (elastic#53000) chore(NA): add module name mapper for src plugins on x-pack (elastic#67103) Change the error message on TSVB in order to be more user friendly (elastic#67090) [kbn/optimizer] poll parent process to avoid zombie processes (elastic#67059) [Visualize] Lazy load default editor, fix duplicated styles (elastic#66732) Bump styled-component dependencies (elastic#66611) Bump react-markdown dependencies (elastic#66615) Fix Core docs links (elastic#66977) Timelion graph is not refreshing content after searching or filtering (elastic#67023) Remove `--xpack.endpoint.enabled=true` from README.md file (elastic#67053) Move apm tutorial from apm plugin into apm_oss plugin (elastic#66432) ...

Summary
Part of #64517
This is intended to split loading the default editor code and prevent duplicating of css rules across all places where stuff is imported from
vis_default_editor/public(the most of vis types)The
EuiLoadingChartmono is added as spinner (more visible if internet is slow):And the
EuiErrorBoundaryif something went wrong:Checklist
Delete any items that are not applicable to this PR.
For maintainers