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

[SIEM] Update Empty Page Messages #37251

Merged
merged 16 commits into from
May 29, 2019
Merged

[SIEM] Update Empty Page Messages #37251

merged 16 commits into from
May 29, 2019

Conversation

MichaelMarcialis
Copy link
Contributor

@MichaelMarcialis MichaelMarcialis commented May 28, 2019

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

image

Checklist

Use strikethroughs to remove checklist items you don't feel are applicable to this PR.

For 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

@elasticmachine
Copy link
Contributor

Pinging @elastic/secops

@MichaelMarcialis MichaelMarcialis added the release_note:skip Skip the PR/issue when compiling release notes label May 28, 2019
@MichaelMarcialis MichaelMarcialis requested a review from tsg May 28, 2019 17:39
@MichaelMarcialis MichaelMarcialis marked this pull request as ready for review May 28, 2019 17:39
title={<h2>{title}</h2>}
body={<p>{message}</p>}
body={message && <p>{message}</p>}
Copy link
Contributor

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

Copy link
Contributor Author

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?

Copy link
Contributor

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.

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💔 Build Failed

Copy link
Contributor

@FrankHassanabad FrankHassanabad left a 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

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💔 Build Failed

@tsg
Copy link
Contributor

tsg commented May 29, 2019

To fix the localization error, you might have to run:

node scripts/i18n_check.js --fix

Copy link
Contributor

@tsg tsg left a 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

# Conflicts:
#	x-pack/plugins/translations/translations/ja-JP.json
Copy link
Contributor

@XavierM XavierM left a comment

Choose a reason for hiding this comment

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

LGTM

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@MichaelMarcialis MichaelMarcialis merged commit 78afde9 into elastic:master May 29, 2019
@MichaelMarcialis MichaelMarcialis deleted the bug/ingest-dev-457/no-data-messages branch May 29, 2019 15:07
MichaelMarcialis added a commit that referenced this pull request May 29, 2019
* [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
MichaelMarcialis added a commit that referenced this pull request May 29, 2019
* [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
dgieselaar pushed a commit to dgieselaar/kibana that referenced this pull request May 30, 2019
* [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
jkakavas pushed a commit to jkakavas/kibana that referenced this pull request May 30, 2019
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:skip Skip the PR/issue when compiling release notes Team:SIEM v7.2.0 v7.3.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants