diff --git a/public/components/ContentPanel/ContentPanel.tsx b/public/components/ContentPanel/ContentPanel.tsx index 466ee02e..690ee45f 100644 --- a/public/components/ContentPanel/ContentPanel.tsx +++ b/public/components/ContentPanel/ContentPanel.tsx @@ -41,7 +41,6 @@ type ContentPanelProps = { hideBody?: boolean; titleDataTestSubj?: string; }; - const ContentPanel = (props: ContentPanelProps) => { const titleDataTestSubj = get( props, @@ -50,12 +49,11 @@ const ContentPanel = (props: ContentPanelProps) => { ); return ( @@ -135,7 +133,7 @@ const ContentPanel = (props: ContentPanelProps) => { margin="s" className={props.horizontalRuleClassName} /> -
+
{props.children}
diff --git a/public/pages/Overview/components/SampleDataBox/SampleDataBox.tsx b/public/pages/Overview/components/SampleDataBox/SampleDataBox.tsx index 9884e488..367d0c8d 100644 --- a/public/pages/Overview/components/SampleDataBox/SampleDataBox.tsx +++ b/public/pages/Overview/components/SampleDataBox/SampleDataBox.tsx @@ -18,6 +18,8 @@ import { EuiFlexItem, EuiTitle, EuiLink, + EuiCard, + EuiHorizontalRule, } from '@elastic/eui'; import { PLUGIN_NAME } from '../../../../utils/constants'; @@ -37,7 +39,7 @@ interface SampleDataBoxProps { export const SampleDataBox = (props: SampleDataBoxProps) => { return (
- {
} titleSize="s" - badgeLabel={props.isDataLoaded ? 'INSTALLED' : undefined} + betaBadgeLabel={props.isDataLoaded ? 'INSTALLED' : undefined} + paddingSize='l' > + +

{ - + ); -}; +}; \ No newline at end of file diff --git a/public/pages/Overview/components/SampleDataBox/__tests__/__snapshots__/SampleDataBox.test.tsx.snap b/public/pages/Overview/components/SampleDataBox/__tests__/__snapshots__/SampleDataBox.test.tsx.snap index 0b92fa45..b80d7919 100644 --- a/public/pages/Overview/components/SampleDataBox/__tests__/__snapshots__/SampleDataBox.test.tsx.snap +++ b/public/pages/Overview/components/SampleDataBox/__tests__/__snapshots__/SampleDataBox.test.tsx.snap @@ -5,90 +5,58 @@ exports[` spec Data is loaded renders component 1`] = ` style="height: auto;" >

-
- -
-
-
-
-
-
-
-
+ + +

+ Sample title +

+
-
-
-
-
+
+
spec Data is loaded renders component 1`] = `
+ + + INSTALLED + +
`; @@ -149,89 +128,58 @@ exports[` spec Data is loading renders component 1`] = ` style="height: auto;" >
-
- -
-
-
-
-
-
-
-
+ + +

+ Sample title +

+
-
-
-
-
+
+
spec Data not loaded renders component 1`] = ` style="height: auto;" >
-
-
-
-
- -

- Sample title -

- -
-
-
-
-
-
-
-
- -
-
-
-
+
+
- + - + {showHttpResponseDetailsFlyout ? ( spec No sample detectors created renders c style="padding: 10px 0px;" >
spec No sample detectors created renders c style="height: auto;" >
-
-
-
- -

- Monitor HTTP responses -

- -
-
-
-
-
-
-
-
-
-
+ +

+ Monitor HTTP responses +

+
-
-
-
-
+
+
spec No sample detectors created renders c style="height: auto;" >
-
-
-
-
- -

- Monitor eCommerce orders -

- -
-
-
-
-
-
-
-
-
+ +

+ Monitor eCommerce orders +

+
-
-
-
-
+
+
spec No sample detectors created renders c style="height: auto;" >
-
-
-
-
- -

- Monitor host health -

- -
-
-
-
-
-
-
-
-
+ +

+ Monitor host health +

+
-
-
-
-
+
+
spec Some detectors created renders compon style="padding: 10px 0px;" >
spec Some detectors created renders compon style="height: auto;" >
-
-
+
- -

- Monitor HTTP responses -

- -
-
-
-
-
-
-
-
-
-
+ + +

+ Monitor HTTP responses +

+
-
-
-
-
+
+
spec Some detectors created renders compon style="height: auto;" >
-
-
+
- -

- Monitor eCommerce orders -

- -
-
-
-
-
-
-
-
-
-
+ + +

+ Monitor eCommerce orders +

+
-
-
-
-
+
+
spec Some detectors created renders compon style="height: auto;" >
-
-
+
- -

- Monitor host health -

- -
-
-
-
-
-
-
-
-
-
+ + +

+ Monitor host health +

+
-
-
-
-
+
+
spec Some detectors created renders compon style="padding: 10px 0px;" >
spec Some detectors created renders compon style="height: auto;" >
-
-
+
- -

- Monitor HTTP responses -

- -
-
-
-
-
-
-
-
-
-
+ + +

+ Monitor HTTP responses +

+
-
-
-
-
+
+
spec Some detectors created renders compon
+ + + INSTALLED + +
@@ -2451,88 +2244,57 @@ exports[` spec Some detectors created renders compon style="height: auto;" >
-
-
+
- -

- Monitor eCommerce orders -

- -
-
-
-
-
-
-
-
-
-
+ + +

+ Monitor eCommerce orders +

+
-
-
-
-
+
+
spec Some detectors created renders compon style="height: auto;" >
-
-
+
- -

- Monitor host health -

- -
-
-
-
-
-
-
-
-
-
+ + +

+ Monitor host health +

+
-
-
-
-
+
+
spec renders the component in create mode (no ID
spec renders the component in edit mode (with ID
spec renders the component 1`] = `
spec renders the component 1`] = ` />