Skip to content

Commit

Permalink
[BUG] No space between the detector details and the rule panel opense…
Browse files Browse the repository at this point in the history
…arch-project#522

[BUG] A rule flyout without references have an empty link opensearch-project#521
[FEATURE] Update header size to use euiTitle--small opensearch-project#520

Signed-off-by: Jovan Cvetkovic <jovanca.cvetkovic@gmail.com>
  • Loading branch information
jovancacvetkovic committed Apr 17, 2023
1 parent fdcc9c5 commit 2a11ebe
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ export default class ConfigureFieldMapping extends Component<
<EuiAccordion
buttonContent={
<div data-test-subj="mapped-fields-btn">
<EuiTitle>
<EuiTitle size={'s'}>
<h6>{`Automatically mapped fields (${mappedRuleFields.length})`}</h6>
</EuiTitle>
</div>
Expand Down Expand Up @@ -303,7 +303,7 @@ export default class ConfigureFieldMapping extends Component<

<EuiSpacer size={'m'} />

<EuiTitle>
<EuiTitle size={'s'}>
<h6>Pending field mappings</h6>
</EuiTitle>
<FieldMappingsTable<MappingViewType.Edit>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export const DetectionRules: React.FC<DetectionRulesProps> = ({
<EuiAccordion
buttonContent={
<div data-test-subj="detection-rules-btn">
<EuiTitle>
<EuiTitle size={'s'}>
<h4>{`Detection rules (${enabledRulesCount} selected)`}</h4>
</EuiTitle>
<EuiText size="s" color="subdued">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*/

import React from 'react';
import { EuiSpacer } from '@elastic/eui';
import { DetectorBasicDetailsView } from '../../components/DetectorBasicDetailsView/DetectorBasicDetailsView';
import { DetectorRulesView } from '../../components/DetectorRulesView/DetectorRulesView';
import { RuleItem } from '../../../CreateDetector/components/DefineDetector/components/DetectionRules/types/interfaces';
Expand Down Expand Up @@ -64,7 +65,12 @@ export class DetectorDetailsView extends React.Component<
{rulesCanFold ? detectorRules : null}
</DetectorBasicDetailsView>

{rulesCanFold ? null : detectorRules}
{rulesCanFold ? null : (
<>
<EuiSpacer size={'m'} />
{detectorRules}
</>
)}
</>
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const ruleEditorStateDefaultValue: RuleEditorFormModel = {
description: '',
status: '',
author: '',
references: [''],
references: [],
tags: [],
detection: '',
level: '',
Expand Down

0 comments on commit 2a11ebe

Please sign in to comment.