forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Bug][Investigations][Timeline] - Fix row highlighting & default enab…
…le row renderers (elastic#188388) ## Summary This PR accomplishes the following 2 things. 1. It fixes row highlighting for the default table as the timeline styles were only being applied when `renderCustomGridBody` was being used. https://github.com/user-attachments/assets/27fdfae2-729f-46d3-b1f3-691e768c871a 2. It default enables the Row Renderers for the `investigateInTimeline` and timeline template workflows. https://github.com/user-attachments/assets/f074eaf7-3b8e-4f07-9a5d-face2b9f94a2 --------- Co-authored-by: Jatin Kathuria <[email protected]> Co-authored-by: kibanamachine <[email protected]>
- Loading branch information
1 parent
788d859
commit 5efc0f6
Showing
16 changed files
with
180 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
...melines/components/timeline/unified_components/data_table/get_event_type_row_classname.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
import type { TimelineItem } from '@kbn/timelines-plugin/common'; | ||
import { getEventType, isEvenEqlSequence, isEventBuildingBlockType } from '../../body/helpers'; | ||
|
||
export const getEventTypeRowClassName = (ecsData: TimelineItem['ecs']) => { | ||
const eventType = getEventType(ecsData); | ||
const eventTypeClassName = | ||
eventType === 'raw' | ||
? 'rawEvent' | ||
: eventType === 'eql' | ||
? isEvenEqlSequence(ecsData) | ||
? 'eqlSequence' | ||
: 'eqlNonSequence' | ||
: 'nonRawEvent'; | ||
|
||
const buildingBlockTypeClassName = isEventBuildingBlockType(ecsData) ? 'buildingBlockType' : ''; | ||
|
||
return `${eventTypeClassName} ${buildingBlockTypeClassName}`.trim(); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 0 additions & 34 deletions
34
...nes/components/timeline/unified_components/data_table/use_get_event_type_row_classname.ts
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.