-
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] Update Empty Page Messages #37251
[SIEM] Update Empty Page Messages #37251
Conversation
…ngest-dev-457/no-data-messages
…ngest-dev-457/no-data-messages
Pinging @elastic/secops |
title={<h2>{title}</h2>} | ||
body={<p>{message}</p>} | ||
body={message && <p>{message}</p>} |
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.
maybe the function isEmpty
from lodash will be a good solution here
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'm not terribly familiar with lodash. Is there a benefit to using isEmpty
versus what I have?
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 that I will implement it, so like that, it will check for an undefined, null and empty string.
💔 Build Failed |
💔 Build Failed |
💔 Build Failed |
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.
Checked it out, played with it, removed indicies and saw the correct new messages came up. Added back the indicies and everything worked ok. Added extra indicies and everything still operates.
LGTM
💔 Build Failed |
…ngest-dev-457/no-data-messages
💔 Build Failed |
To fix the localization error, you might have to run:
|
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.
Text and screenshot LGTM.
…ngest-dev-457/no-data-messages
…ngest-dev-457/no-data-messages # Conflicts: # x-pack/plugins/translations/translations/ja-JP.json
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
💚 Build Succeeded |
* [SIEM] Update Empty Page Messages (#37251) * update EmptyPage comp and text on all pages * change proptype from `string` to `IconType` * update tests and snapshots * remove translation imports * restore `align-self` styles for IE11 centering * proper apostrophe and string in single quotes, per frank * update host and ip details * DRYing up host and network empty page message * fix localization * fixing localization again * fix localizations again again
* [SIEM] Update Empty Page Messages (#37251) * update EmptyPage comp and text on all pages * change proptype from `string` to `IconType` * update tests and snapshots * remove translation imports * restore `align-self` styles for IE11 centering * proper apostrophe and string in single quotes, per frank * update host and ip details * DRYing up host and network empty page message * fix localization * fixing localization again * fix localizations again again
* [SIEM] Update Empty Page Messages (elastic#37251) * update EmptyPage comp and text on all pages * change proptype from `string` to `IconType` * update tests and snapshots * remove translation imports * restore `align-self` styles for IE11 centering * proper apostrophe and string in single quotes, per frank * update host and ip details * DRYing up host and network empty page message * fix localization * fixing localization again * fix localizations again again
* update EmptyPage comp and text on all pages * change proptype from `string` to `IconType` * update tests and snapshots * remove translation imports * restore `align-self` styles for IE11 centering * proper apostrophe and string in single quotes, per frank * update host and ip details * DRYing up host and network empty page message * fix localization * fixing localization again
Summary
This PR updates the empty page messages across the SIEM application. Changes include basic text edits and updates to the
EmptyPage
component (to support a secondary action button, button icons, and button targets).Issue Ticket: https://github.com/elastic/ingest-dev/issues/457
Checklist
Use
strikethroughsto remove checklist items you don't feel are applicable to this PR.- [ ] Documentation was added for features that require explanation or tutorialsFor 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