-
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] expandable flyout - expandable mode only for signal documents #163557
Conversation
ba6f9e8
to
e80b214
Compare
> | ||
<ExpandDetailButton /> | ||
</div> | ||
{flyoutIsExpandable && ( |
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.
consider adding some unit tests 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.
the only reason I didn't add some is because we didn't have any for this file and I was being lazy.. But you're right, I will add them on Monday!
e80b214
to
2f36733
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! Thanks for putting in the unit test. I just have 1 nit comment on the commented line
} from './components/test_ids'; | ||
import { mockFlyoutContextValue } from '../shared/mocks/mock_flyout_context'; | ||
|
||
// jest.mock('../../common/components/link_to'); |
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.
remove commented line
c26a613
to
95595b1
Compare
95595b1
to
fe00ed4
Compare
💔 Build FailedFailed CI StepsTest Failures
Metrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: |
Summary
The expandable flyout is going GA for 8.10, but not all of it. We're release the right panel and a few tabs in the left panel.
Currently the flyout can handle non
signal
documents, but not gracefully as it was built for alerts specifically. More UI work is needed to correctly handle all other types (event.kind
=alert
,asset
,enrichment
,event
,metric
,state
andpipeline_error
).This PR adds a small internal check to the expandable flyout which will hide the
Expand details
button as well as theOverrview
tab if the fieldevent.kind
of the viewed document isn'tsignal
.Screen.Recording.2023-08-10.at.9.40.22.AM.mov
https://github.com/elastic/security-team/issues/6641