-
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
Nav unified show timeline #131811
Nav unified show timeline #131811
Conversation
48076f6
to
0eed070
Compare
x-pack/plugins/security_solution/public/common/utils/timeline/use_show_timeline.tsx
Outdated
Show resolved
Hide resolved
Pinging @elastic/security-solution (Team: SecuritySolution) |
Pinging @elastic/security-threat-hunting (Team:Threat Hunting) |
x-pack/plugins/security_solution/public/app/deep_links/index.ts
Outdated
Show resolved
Hide resolved
.../plugins/security_solution/public/common/components/link_to/redirect_to_detection_engine.tsx
Show resolved
Hide resolved
c35ca17
to
2ccf8c4
Compare
2dfcde3
to
a4dac0e
Compare
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 🚀
ed17d15
to
679ac04
Compare
@@ -439,7 +439,7 @@ const CreateRulePageComponent: React.FC = () => { | |||
</EuiFlexGroup> | |||
</SecuritySolutionPageWrapper> | |||
|
|||
<SpyRoute pageName={SecurityPageName.rules} /> | |||
<SpyRoute pageName={SecurityPageName.rulesCreate} /> |
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.
Add rulesCreate
to SpyRoute
so we can disable the timeline.
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.
Tested this locally -- LGTM 👍
And thank you for these comments, they are really helpful for code review.
@@ -80,14 +67,13 @@ const PrePackagedRulesPromptComponent: React.FC<PrePackagedRulesPromptProps> = ( | |||
<EuiFlexGroup justifyContent="center"> | |||
<EuiFlexItem grow={false}>{loadPrebuiltRulesAndTemplatesButton}</EuiFlexItem> | |||
<EuiFlexItem grow={false}> | |||
<LinkButton | |||
<SecuritySolutionLinkButton |
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.
A small refactor.
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 looks so much cleaner! 🙌 Thank you!
💚 Build SucceededMetrics [docs]Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: cc @machadoum |
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.
file x-pack/plugins/security_solution/public/management/links.ts
changes LGTM 👍
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.
👌
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.
Rules-related changes LGTM 👍 Tested a bit locally. Thank you @machadoum!
expect( | ||
wrapper.find('[data-test-subj="load-prebuilt-rules"] button').props().disabled | ||
).toEqual(true); | ||
expect(wrapper.find('button[data-test-subj="load-prebuilt-rules"]').props().disabled).toEqual( |
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.
Nit: could we just use [data-test-subj="load-prebuilt-rules"]
w/o button
as a selector here?
@@ -80,14 +67,13 @@ const PrePackagedRulesPromptComponent: React.FC<PrePackagedRulesPromptProps> = ( | |||
<EuiFlexGroup justifyContent="center"> | |||
<EuiFlexItem grow={false}>{loadPrebuiltRulesAndTemplatesButton}</EuiFlexItem> | |||
<EuiFlexItem grow={false}> | |||
<LinkButton | |||
<SecuritySolutionLinkButton |
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 looks so much cleaner! 🙌 Thank you!
@@ -439,7 +439,7 @@ const CreateRulePageComponent: React.FC = () => { | |||
</EuiFlexGroup> | |||
</SecuritySolutionPageWrapper> | |||
|
|||
<SpyRoute pageName={SecurityPageName.rules} /> | |||
<SpyRoute pageName={SecurityPageName.rulesCreate} /> |
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.
Tested this locally -- LGTM 👍
And thank you for these comments, they are really helpful for code review.
Summary
Update
useShowTimeline
to read timeline status from app links config whenGroupedNavigation
is enabled.SecurityPageName.rulesCreate
to deep links.Checklist
Delete any items that are not applicable to this PR.