-
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] 7.11 Timeline EVOLUTION #83378
[Security Solution] 7.11 Timeline EVOLUTION #83378
Conversation
…-modal-full-width # Conflicts: # x-pack/plugins/security_solution/public/timelines/components/timeline/body/events/index.tsx # x-pack/plugins/security_solution/public/timelines/components/timeline/body/events/stateful_event.tsx
@elasticmachine merge upstream |
…ski/kibana into feat/timeline-modal-layout
x-pack/plugins/security_solution/public/common/components/error_toast_dispatcher/index.tsx
Show resolved
Hide resolved
x-pack/plugins/security_solution/public/common/components/event_details/event_details.tsx
Outdated
Show resolved
Hide resolved
({ browserFields, columnHeaders, data, eventId, onUpdateColumns, timelineId, toggleColumn }) => { | ||
({ browserFields, data, eventId, timelineId }) => { | ||
const dispatch = useDispatch(); | ||
const getTimeline = useMemo(() => timelineSelectors.getTimelineByIdSelector(), []); |
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.
Reading more and more your PR, I agree with you we should get more generic selector, the same way that we did/fix it for sourcerer.
...ck/plugins/security_solution/public/common/components/event_details/event_fields_browser.tsx
Outdated
Show resolved
Hide resolved
export const JsonView = React.memo<Props>(({ data }) => { | ||
const value = useMemo( | ||
() => | ||
JSON.stringify( |
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 -> we should have a try catch just in case that the stringify blow out
...ck/plugins/security_solution/public/common/components/events_viewer/event_details_flyout.tsx
Show resolved
Hide resolved
x-pack/plugins/security_solution/public/common/components/navigation/use_get_url_search.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/security_solution/public/network/components/network_top_n_flow_table/index.tsx
Outdated
Show resolved
Hide resolved
|
||
const toggleColumn = useCallback( | ||
(column: ColumnHeaderOptions) => { | ||
const exists = columnHeaders.findIndex((c) => c.id === column.id) !== -1; |
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 ->
if (columnHeaders.some((c) => c.id === column.id)) {
dispatch(
timelineActions.removeColumn({
columnId: column.id,
id: timelineId,
})
);
} else {
dispatch(
timelineActions.upsertColumn({
column,
id: timelineId,
index: 1,
})
);
}
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.
by the way we had the same code in solution/public/common/components/event_details/event_fields_browser.tsx
x-pack/plugins/security_solution/public/timelines/components/flyout/header/active_timelines.tsx
Outdated
Show resolved
Hide resolved
...k/plugins/security_solution/public/timelines/components/timeline/query_tab_content/index.tsx
Outdated
Show resolved
Hide resolved
I have this user feeling when I open a timeline, it is slower than before. Do you have the same feeling? if you do we should keep this in mind and fix it in another PR. |
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.
I reviewed all the lines of this PR and I played/tested the timeline and other features from the app. Everything seems to work as expected. I think we should merge it and see if other people are discovering issue that I missed.
There is a lot improvement in this PR thanks to you @patrykkopycinski and you are also giving a revolution to timeline. We/I appreciate all this work.
Would you mind creating a ticket about improving our timeline selector so we do not have to get the full timeline object and memoized specific attributes. Like you say, it will improve timeline.
💚 Build SucceededMetrics [docs]Module Count
Async chunks
Distributable file count
Page load bundle
History
To update your PR or re-run it, just comment with: |
Summary
This PR is focused on layout changes, accessibility improvements will be addressed in the followup PR
Checklist