-
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
[SIEM] Add button with link to license management in ML popup #47841
[SIEM] Add button with link to license management in ML popup #47841
Conversation
Pinging @elastic/siem (Team:SIEM) |
@MichaelMarcialis |
💚 Build Succeeded |
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.
Looking good! Left a couple of small comments to address before merging.
<EuiButton | ||
href={`${chrome.getBasePath()}/app/kibana#/management/elasticsearch/license_management`} | ||
iconType="popout" | ||
iconSide="right" | ||
target="_blank" | ||
> |
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.
Since the management app is part of Kibana, I think it might be better to use managementApp
for the iconType
prop (as it's not an external link). Whether or not it should also have target="_blank"
is debatable. I'm personally fine with it either way.
Also, I'm thinking we should remove the iconSide
prop here (which will move the icon to the left side).
<EuiButton | ||
href="https://www.elastic.co/subscriptions" | ||
iconType="popout" | ||
iconSide="right" | ||
target="_blank" | ||
> | ||
{i18n.UPGRADE_BUTTON} | ||
</EuiButton> | ||
<EuiButton | ||
href={`${chrome.getBasePath()}/app/kibana#/management/elasticsearch/license_management`} | ||
iconType="popout" | ||
iconSide="right" | ||
target="_blank" | ||
> |
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'll need to wrap each of the EuiButton
components in a EuiFlexItem
component. You'll also want to give each EuiFlexItem
a prop of grow={false}
.
> | ||
{i18n.UPGRADE_BUTTON} | ||
</EuiButton> | ||
<EuiFlexGroup justifyContent="spaceBetween" gutterSize="none"> |
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.
Couple of changes to the props for EuiFlexGroup
:
- Remove
justifyContent
prop. - Make
gutterSize
propgutterSize="s"
. - Add boolean prop
wrap
.
@MichaelMarcialis Thanks for your help, made the corrections: |
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, thanks!
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.
Thanks for making those changes @benskelker. This looks great. Approving now so as not to block you, but before you merge, would you mind changing the managementApp
icon to gear
? I thought it would inherit the button colors, but I guess it doesn't. Changing to gear
should fix that :)
@@ -11157,4 +11157,4 @@ | |||
"xpack.fileUpload.fileParser.errorReadingFile": "ファイルの読み込み中にエラーが発生しました", | |||
"xpack.fileUpload.fileParser.noFileProvided": "エラー、ファイルが提供されていません" | |||
} | |||
} | |||
} |
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 these are unintentional -- does regenerating them return the newline?
@@ -11323,4 +11323,4 @@ | |||
"xpack.fileUpload.fileParser.errorReadingFile": "读取文件时出错", | |||
"xpack.fileUpload.fileParser.noFileProvided": "错误,未提供任何文件" | |||
} | |||
} | |||
} |
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 these are unintentional -- does regenerating them return the newline?
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.
Hey @spong
I regenerated them, but they didn't change. Is it a concern or can I merge?
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.
Interesting. Judging by the history it looks like it's bounced back and forth between having a terminating new line and not. Generally speaking you want the terminating new line, so I would just revert these two files since that's the only changes.
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.
} | |
} | |
Can try accepting this suggestion from within Github as well too 🙂
💚 Build Succeeded |
💔 Build Failed |
💚 Build Succeeded |
💔 Build Failed |
@@ -1,4 +1,4 @@ | |||
{ | |||
SIEM_license_button_ML_popup{ |
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.
Looks like this snagged the build with the following error:
[21:11:34] Compatibility check with x-pack/plugins/translations/translations/zh-CN.json [failed]
[21:11:34] → Unexpected token S in JSON at position 0
[21:11:34] Compatibility Checks [failed]
[21:11:34] → Unexpected token S in JSON at position 0
ERROR Unhandled exception!
ERROR SyntaxError: Unexpected token S in JSON at position 0
at JSON.parse (<anonymous>)
at parse (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/src/dev/i18n/integrate_locale_files.ts:183:34)
💔 Build Failed |
retest |
💚 Build Succeeded |
…c#47841) * Add button with link to license management in ML popup * Corrections to button styling * Updated button icon * Update snapshots * Correcting json translation files * Fix zh_CN json file * And now fixing the translation file properly
#48207) * Add button with link to license management in ML popup * Corrections to button styling * Updated button icon * Update snapshots * Correcting json translation files * Fix zh_CN json file * And now fixing the translation file properly
Summary
Adds button linking to license management to the ML popup text, as requested in #462:

Checklist
Use
strikethroughsto remove checklist items you don't feel are applicable to this PR.- [ ] This was checked for cross-browser compatibility, including a check against IE11- [ ] Documentation was added for features that require explanation or tutorials- [ ] Unit or functional tests were updated or added to match the most common scenarios- [ ] This was checked for keyboard-only and screenreader accessibilityFor maintainers
- [ ] This was checked for breaking API changes and was labeled appropriately- [ ] This includes a feature addition or change that requires a release note and was labeled appropriately