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

[Canvas] Added KibanaThemeProvider to expression_error. #120073

Merged

Conversation

Kuznietsov
Copy link
Contributor

Summary

Performed required changes at the issue #120071.

Added KibanaThemeProvider to the expression_error plugin in all places, where ReactDOM.render is executed.

@Kuznietsov Kuznietsov added Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas loe:small Small Level of Effort release_note:skip Skip the PR/issue when compiling release notes impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. backport:skip This commit does not require backporting Feature:Canvas v8.1.0 labels Dec 1, 2021
@Kuznietsov Kuznietsov self-assigned this Dec 1, 2021
@Kuznietsov Kuznietsov requested a review from a team as a code owner December 1, 2021 09:39
@elasticmachine
Copy link
Contributor

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

# Conflicts:
#	x-pack/plugins/canvas/canvas_plugin_src/renderers/markdown/index.tsx
#	x-pack/plugins/canvas/canvas_plugin_src/renderers/table.tsx
#	x-pack/plugins/canvas/canvas_plugin_src/renderers/text.tsx
#	x-pack/plugins/canvas/shareable_runtime/supported_renderers.js
@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
canvas 1075 1074 -1
presentationUtil 265 266 +1
total -0

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
expressionError 12 17 +5
presentationUtil 243 244 +1
total +6

Async chunks

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

id before after diff
canvas 1021.8KB 1021.7KB -65.0B
expressionError 13.9KB 13.9KB -1.0B
total -66.0B

Page load bundle

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

id before after diff
expressionError 4.8KB 5.1KB +259.0B
presentationUtil 68.2KB 68.4KB +164.0B
total +423.0B
Unknown metric groups

API count

id before after diff
expressionError 12 17 +5
presentationUtil 271 272 +1
total +6

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

cc @Kunzetsov

Copy link
Contributor

@crob611 crob611 left a comment

Choose a reason for hiding this comment

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

👍 This is good to go. One question that doesn't have to be addressed in this PR

@@ -26,4 +27,4 @@ export const renderFunctions = [
progressRenderer,
];

export const renderFunctionFactories = [];
export const renderFunctionFactories = [debugRendererFactory, errorRendererFactory];
Copy link
Contributor

Choose a reason for hiding this comment

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

Is including these renderers here causing them to be double registered, since htey are also being registered in the errorPlugin?

@Kuznietsov Kuznietsov merged commit fea14a0 into elastic:main Dec 3, 2021
TinLe pushed a commit to TinLe/kibana that referenced this pull request Dec 22, 2021
* Wrapped up debug and error with KibanaThemeProvider.

1. Replaced renderer with getRenderer function and factory.
2. Updated storybook.
3. Moved defaultTheme$ to presentain_util.

* Fixed exports.

Co-authored-by: Kibana Machine <[email protected]>
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 Feature:Canvas impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. loe:small Small Level of Effort release_note:skip Skip the PR/issue when compiling release notes Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas v8.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants