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

[Security Solution] Changed landing page navigation #129000

Merged

Conversation

YulNaumenko
Copy link
Contributor

@YulNaumenko YulNaumenko commented Mar 31, 2022

Summary

Changes done in the current PR:

This this the behavior for the empty Security:

Screen.Recording.2022-03-30.at.9.58.27.PM.mov

New navigation leads to the Getting started page from the all global navigation links (not depends if the data is added or not):

  1. Screen Shot 2022-03-30 at 8 32 02 PM
  2. Screen Shot 2022-03-30 at 8 32 11 PM
  3. Screen Shot 2022-03-30 at 8 33 00 PM

If there is no data the landing page will be displayed for the hosts, network, overview, users and timelines components without redirecting to the Getting started page.

@bfishel, @adamwdraper please need your confirmation or comments on the new navigation:

  • there is a suggestion to have a Getting started page itself wide, but the landing pages from the Security pages not full with (keep the width of the old empty overview page). This is another recording. What do you think?
Screen.Recording.2022-03-30.at.10.02.04.PM.mov
  • I'm not sure about the behavior where some pages like hosts, network, overview show the Getting started, but some like alerts, rules, cases do not.

cc: @paulewing @asnehalb

  • component for overview_empty removed
  • moved LandingCards to the security_solution common components
  • created LandingPage component which reused for displaying landing page for the hosts, network, overview, users and timelines components.

TODO: Complete tests coverage.

Checklist

Delete any items that are not applicable to this PR.

@YulNaumenko YulNaumenko requested review from a team as code owners March 31, 2022 03:46
@YulNaumenko YulNaumenko self-assigned this Mar 31, 2022
@YulNaumenko YulNaumenko added Team:Threat Hunting Security Solution Threat Hunting Team Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. Team:Threat Hunting:Explore labels Mar 31, 2022
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-solution (Team: SecuritySolution)

@elasticmachine
Copy link
Contributor

Pinging @elastic/security-threat-hunting (Team:Threat Hunting)

@YulNaumenko YulNaumenko added release_note:skip Skip the PR/issue when compiling release notes v8.3.0 v8.2.0 labels Mar 31, 2022
Copy link
Member

@Bamieh Bamieh left a comment

Choose a reason for hiding this comment

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

core only owns 1 file (updated overviewIDs) lgtm 👍 please let me know if you want a more thorough review

@@ -26,7 +26,7 @@ import { Network } from './network';
import { NetworkRoutes } from './navigation';
import { mockCasesContract } from '../../../../cases/public/mocks';
import { APP_UI_ID, SecurityPageName } from '../../../common/constants';
import { getAppLandingUrl } from '../../common/components/link_to/redirect_to_overview';
import { getAppLandingUrl } from '../../common/components/link_to';
Copy link
Contributor

@semd semd Mar 31, 2022

Choose a reason for hiding this comment

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

shouldn't the import be from '../../common/components/link_to/redirect_to_landing';?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

./redirect_to_overview is exported in /link_to/index.ts, but I think I can refactor this by removing unnecessary.

@semd
Copy link
Contributor

semd commented Mar 31, 2022

Just one question. Do we want the "Getting Started" link to be available from the global navigation? And in case we want it, should it be in the last position? screenshot:

get_started_global_nav

In case we want to change it, this is controlled by deepLinks (at x-pack/plugins/security_solution/public/app/deep_links/index.ts) using navLinkStatus and order props.

@YulNaumenko
Copy link
Contributor Author

YulNaumenko commented Mar 31, 2022

ust one question. Do we want the "Getting Started" link to be available from the global navigation? And in case we want it, should it be in the last position? screenshot:

@semd thank you for catching this!

@YulNaumenko YulNaumenko requested a review from semd March 31, 2022 22:35
@YulNaumenko
Copy link
Contributor Author

@elasticmachine merge upstream

Copy link
Contributor

@semd semd left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

@YulNaumenko YulNaumenko enabled auto-merge (squash) April 2, 2022 04:31
@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
securitySolution 4.9MB 4.9MB -472.0B

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
core 309.1KB 309.1KB +3.0B
securitySolution 250.7KB 250.7KB -2.0B
total +1.0B

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @YulNaumenko

@YulNaumenko YulNaumenko merged commit a0cf450 into elastic:main Apr 2, 2022
YulNaumenko added a commit to YulNaumenko/kibana that referenced this pull request Apr 4, 2022
* [Security Solution] Changed landing page navigation

* made all landings big

* removed getting started from the main left menu; centered empty page content for security template

* fixed linting rules

* fixed linting rules

* fixed tests

* fixed tests

* fixed tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit a0cf450)
@YulNaumenko
Copy link
Contributor Author

💚 All backports created successfully

Status Branch Result
8.2

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

YulNaumenko added a commit that referenced this pull request Apr 4, 2022
* [Security Solution] Changed landing page navigation

* made all landings big

* removed getting started from the main left menu; centered empty page content for security template

* fixed linting rules

* fixed linting rules

* fixed tests

* fixed tests

* fixed tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit a0cf450)
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: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. Team:Threat Hunting:Explore Team:Threat Hunting Security Solution Threat Hunting Team v8.2.0 v8.3.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants