-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[examples] expressions explorer #88344
Conversation
Pinging @elastic/kibana-app-services (Team:AppServices) |
0a7b7b0
to
fd74647
Compare
handlers.onResize(() => { | ||
ReactDOM.render(renderDebug(), domNode, () => handlers.done()); | ||
}); | ||
if (handlers.onResize) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@elastic/kibana-presentation this check was added to make it usable outside of canvas
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems pretty straightforward.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, tested on Mac/Chrome.
} | ||
|
||
export class ExpressionsExplorerPlugin implements Plugin<void, void, SetupDeps, StartDeps> { | ||
public setup(core: CoreSetup<StartDeps>, deps: SetupDeps) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: we usually call deps
plugins
. It does not matter at all, just a bit unexpected.
appId: 'expressionsExplorer', | ||
title: 'Expressions', | ||
description: `Expressions are ...`, | ||
image, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to remove or update this image, it is ui_actions
image.
deps.developerExamples.register({ | ||
appId: 'expressionsExplorer', | ||
title: 'Expressions', | ||
description: `Expressions are ...`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
description: `Expressions are ...`, | |
description: `Expressions is a plugin that allows to execute Kibana expressions and render content using expression renderers. This example plugin showcases various usage scenarios.`, |
@elasticmachine merge upstream |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Looked through the expressions example plugin. Everything seems to be working as expected. It might be nice to get a few more examples eventually.
handlers.onResize(() => { | ||
ReactDOM.render(renderDebug(), domNode, () => handlers.done()); | ||
}); | ||
if (handlers.onResize) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems pretty straightforward.
💚 Build SucceededMetrics [docs]Module Count
Page load bundle
History
To update your PR or re-run it, just comment with: |
Summary
Adds expression explorer example plugin
Checklist
Delete any items that are not applicable to this PR.
For maintainers