-
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
[Security Solution][Alert details] - bring back last alert status change to flyout #205224
base: main
Are you sure you want to change the base?
[Security Solution][Alert details] - bring back last alert status change to flyout #205224
Conversation
Pinging @elastic/security-threat-hunting-investigations (Team:Threat Hunting:Investigations) |
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.
Changes look good - thanks!
<FormattedMessage | ||
id="xpack.securitySolution.flyout.right.about.status.statusHistoryDetails" | ||
defaultMessage="Alert status updated by {user} on {date}" | ||
values={{ |
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...since there isn't a whole nested tree of components here, but probably best to memoize this entire object or pull out the new Date(statusUpdatedAt)
so it's not calculated in the render
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.
yeah, these are annoying because I have to do the memoization before the return null
so I have to do the check there as well... done here!
1a99cc5
to
6df2909
Compare
6df2909
to
5e8c28c
Compare
💚 Build Succeeded
Metrics [docs]Module Count
Async chunks
History
|
Summary
Over a year ago, this PR added some information to the alert details flyout, to show when an alert's status (
closed
,open
oraknowledged
) had been modified last and by which user.Shortly after, this follow up PR removed the UI from the alert details flyout, as the information wasn't extremely important and was taking some valuable vertical space, pushing down below the
Highlighted fields
section, that users were finding very important.A few months later, we added the ability to persist which of the top sections (
About
,Investigation
,Visualizations
,Insights
andResponse
) were collapsed or expanded. That way the user wouldn't have to always collapse or expand sections they would often don't need.This PR brings back the alert's last status changes to the
About
section, as the vertical space is no longer a big issues, because users can now collapse the entireAbout
section.If data is not present, the last change UI is not shown
If the correct data is shown:
How to test
About
sectionChecklist