Skip to content

Commit

Permalink
[Security Solution][Alert details] - remove old flyout unnecessary z-…
Browse files Browse the repository at this point in the history
…index change
  • Loading branch information
PhilippeOberti committed Apr 25, 2024
1 parent 725b9bf commit e5e6572
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import { EuiFlyout } from '@elastic/eui';

import type { EntityType } from '@kbn/timelines-plugin/common';
import { dataTableActions, dataTableSelectors } from '@kbn/securitysolution-data-table';
import styled from 'styled-components';
import { getScopedActions, isInTableScope, isTimelineScope } from '../../../helpers';
import { timelineSelectors } from '../../store';
import { timelineDefaults } from '../../store/defaults';
Expand All @@ -36,11 +35,6 @@ interface DetailsPanelProps {
isReadOnly?: boolean;
}

// hack to to get around the fact that this flyout causes issue with timeline modal z-index
const StyleEuiFlyout = styled(EuiFlyout)`
z-index: 1002;
`;

/**
* This panel is used in both the main timeline as well as the flyouts on the host, detection, cases, and network pages.
* To prevent duplication the `isFlyoutView` prop is passed to determine the layout that should be used
Expand Down Expand Up @@ -172,15 +166,15 @@ export const DetailsPanel = React.memo(
}

return isFlyoutView ? (
<StyleEuiFlyout
<EuiFlyout
data-test-subj="timeline:details-panel:flyout"
size={panelSize}
onClose={closePanel}
ownFocus={false}
key={flyoutUniqueKey}
>
{visiblePanel}
</StyleEuiFlyout>
</EuiFlyout>
) : (
visiblePanel
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ describe(
createNewTimeline();
executeTimelineSearch('*');
});

it('should be able to add/remove columns correctly', () => {
cy.get(GET_UNIFIED_DATA_GRID_CELL_HEADER('agent.type')).should('not.exist');
addFieldToTable('agent.type');
Expand All @@ -55,8 +56,9 @@ describe(
cy.get(GET_DISCOVER_DATA_GRID_CELL_HEADER('agent.type')).should('not.exist');
});

// these tests are skipped until we implement the expandable flyout in the unified table for timeline
context('flyout', () => {
it('should be able to open/close details details/host/user flyout', () => {
it.skip('should be able to open/close details details/host/user flyout', () => {
cy.log('Event Details Flyout');
openEventDetailsFlyout(0);
cy.get(TIMELINE_DETAILS_FLYOUT).should('be.visible');
Expand Down

0 comments on commit e5e6572

Please sign in to comment.