Skip to content

Commit

Permalink
[SIEM] Use proper icons on Detections view (#55215)
Browse files Browse the repository at this point in the history
  • Loading branch information
patrykkopycinski committed Jan 20, 2020
1 parent 641fe3d commit 4328265
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ const WrappedByAutoSizer = styled.div`
`; // required by AutoSizer
WrappedByAutoSizer.displayName = 'WrappedByAutoSizer';

const StyledEuiPanel = styled(EuiPanel)`
max-width: 100%;
`;

interface Props {
browserFields: BrowserFields;
columns: ColumnHeader[];
Expand Down Expand Up @@ -113,7 +117,7 @@ const EventsViewerComponent: React.FC<Props> = ({
);

return (
<EuiPanel data-test-subj="events-viewer-panel">
<StyledEuiPanel data-test-subj="events-viewer-panel">
<AutoSizer detectAnyWindowResize={true} content>
{({ measureRef, content: { width = 0 } }) => (
<>
Expand Down Expand Up @@ -225,7 +229,7 @@ const EventsViewerComponent: React.FC<Props> = ({
</>
)}
</AutoSizer>
</EuiPanel>
</StyledEuiPanel>
);
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,13 +188,13 @@ export const getSignalsActions = ({
updateTimelineIsLoading: ({ id, isLoading }: { id: string; isLoading: boolean }) => void;
}): TimelineAction[] => [
{
getAction: ({ eventId, ecsData }: TimelineActionProps): JSX.Element => (
getAction: ({ ecsData }: TimelineActionProps): JSX.Element => (
<EuiToolTip
data-test-subj="send-signal-to-timeline-tool-tip"
content={i18n.ACTION_VIEW_IN_TIMELINE}
>
<EuiButtonIcon
data-test-subj={'send-signal-to-timeline-button'}
data-test-subj="send-signal-to-timeline-button"
onClick={() =>
sendSignalToTimelineAction({
apolloClient,
Expand All @@ -203,7 +203,7 @@ export const getSignalsActions = ({
updateTimelineIsLoading,
})
}
iconType="tableDensityNormal"
iconType="timeline"
aria-label="Next"
/>
</EuiToolTip>
Expand All @@ -228,7 +228,7 @@ export const getSignalsActions = ({
})
}
isDisabled={!canUserCRUD || !hasIndexWrite}
iconType={status === FILTER_OPEN ? 'indexOpen' : 'indexClose'}
iconType={status === FILTER_OPEN ? 'securitySignalDetected' : 'securitySignalResolved'}
aria-label="Next"
/>
</EuiToolTip>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export const getBatchItems = ({

<EuiContextMenuItem
key={filterString}
icon={isFilteredToOpen ? 'indexClose' : 'indexOpen'}
icon={isFilteredToOpen ? 'securitySignalResolved' : 'securitySignalDetected'}
disabled={allDisabled}
onClick={async () => {
closePopover();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const SignalsUtilityBarComponent: React.FC<SignalsUtilityBarProps> = ({

<UtilityBarAction
disabled={areEventsLoading || isEmpty(selectedEventIds)}
iconType={isFilteredToOpen ? 'indexClose' : 'indexOpen'}
iconType={isFilteredToOpen ? 'securitySignalResolved' : 'securitySignalDetected'}
onClick={handleUpdateStatus}
>
{isFilteredToOpen
Expand All @@ -89,7 +89,7 @@ const SignalsUtilityBarComponent: React.FC<SignalsUtilityBarProps> = ({
</UtilityBarAction>

<UtilityBarAction
iconType="listAdd"
iconType={showClearSelection ? 'cross' : 'pagesSelect'}
onClick={() => {
if (!showClearSelection) {
selectAll();
Expand Down

0 comments on commit 4328265

Please sign in to comment.