-
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
[Cases] Add Lens markdown plugin #96703
[Cases] Add Lens markdown plugin #96703
Conversation
…ns-markdown-plugin
…ns-markdown-plugin
…ns-markdown-plugin
…ns-markdown-plugin
...ck/plugins/security_solution/public/common/components/markdown_editor/plugins/lens/parser.ts
Outdated
Show resolved
Hide resolved
...k/plugins/security_solution/public/common/components/markdown_editor/plugins/lens/plugin.tsx
Outdated
Show resolved
Hide resolved
This looks awesome Patryk! We are going to be merging the It would be awesome if you could either open this PR against that |
Thank you for the heads up @stephmilovic :) |
well i cant wait to get it merged, it looks really cool!! |
hi! these are my initial comments based only on the video. Comments:
Clarification:
|
…ns-markdown-plugin # Conflicts: # x-pack/plugins/security_solution/public/common/components/markdown_editor/plugins/index.ts
@elasticmachine merge upstream |
Lens Cases UI
…ns-markdown-plugin
…ns-markdown-plugin
|
||
const savedObjectMetaData = useMemo( | ||
() => [ | ||
{ |
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.
this all looks static, no props? can move outside of component to a plain const
</EuiText> | ||
</EuiFlexItem> | ||
<EuiFlexItem grow={false}> | ||
{viewMode && canUseEditor() ? ( |
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.
i think we can put canUseEditor
in a useMemo?
isDisabled={!canUseEditor()} | ||
onClick={handleClick} | ||
> | ||
{`Open visualization`} |
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.
needs i18n
<EuiSpacer size="xs" /> | ||
|
||
<EmbeddableComponent | ||
id="" |
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.
is this correct?
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.
Just a few nits and the bugs we discussed over zoom. Remember to add validation to the Visualization Title! LGTM
…ns-markdown-plugin # Conflicts: # x-pack/plugins/security_solution/public/common/components/markdown_editor/editor.tsx
…ns-markdown-plugin
💚 Build Succeeded
Metrics [docs]Module Count
Async chunks
Page load bundle
Unknown metric groupsAPI count
API count missing comments
async chunk count
Non-exported public API item count
History
To update your PR or re-run it, just comment with: |
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.
Summary of sync meeting today between @patrykkopycinski @paulewing @yiyangliu9286 @adamwdraper
Current design as implemented in this pr is not ready to be released as is. It requires iteration of ux to fix UI bugs and align with EUI guidelines. This pr will be merged, but will be behind a feature flag. This feature flag must default to off, unless the new ux is finalized and delivered, and @yiyangliu9286 or @adamwdraper approve the ux matches designs.
Next Steps:
- @yiyangliu9286 to make ux adjustments
- @yiyangliu9286 to sync with @patrykkopycinski to agree on the final design
- @patrykkopycinski will implement finalized ux
- @yiyangliu9286 or @adamwdraper signoff before feature flag is enabled
💔 Backport failed
To backport manually run: |
@patrykkopycinski Please see design followup issue: #109121 (cc: @adamwdraper @paulewing) |
# Conflicts: # x-pack/plugins/observability/public/components/shared/exploratory_view/header/header.test.tsx # x-pack/plugins/observability/public/components/shared/exploratory_view/header/header.tsx # x-pack/plugins/observability/public/plugin.ts
Summary
Untitled_.Apr.9.2021.7_17.PM.mp4
Design links
Whimsical wireframe
Figma
TODO in the follow up PR:
Open in Lens
just for the preview (disable Save button)