Skip to content

Commit

Permalink
Fit and Finish Changes for DataStreams and Rollups
Browse files Browse the repository at this point in the history
Signed-off-by: Sandeep Kumawat <[email protected]>
  • Loading branch information
Sandeep Kumawat committed Aug 28, 2024
1 parent 620551b commit 167797d
Show file tree
Hide file tree
Showing 59 changed files with 949 additions and 672 deletions.
4 changes: 2 additions & 2 deletions public/components/ContentPanel/ContentPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const ContentPanel: React.SFC<ContentPanelProps> = ({
const isGhost = color === "ghost";
const titleContent = (
<EuiFlexGroup
style={{ ...(noExtraPadding ? { marginTop: 0, marginBottom: 0 } : {}), padding: isGhost || accordion ? undefined : "0px 10px" }}
style={{ ...(noExtraPadding ? { marginTop: 0, marginBottom: 0 } : {}), padding: isGhost || accordion ? undefined : "0px 16px" }}
justifyContent="spaceBetween"
alignItems="flexStart"
>
Expand Down Expand Up @@ -111,7 +111,7 @@ const ContentPanel: React.SFC<ContentPanelProps> = ({
{children ? (
<div
style={{
padding: isGhost ? undefined : "0px 10px",
padding: isGhost ? undefined : "0px 16px",
...bodyStyles,
display: accordion && isAccordionOpen === "closed" ? "none" : undefined,
}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ exports[`<ContentPanel /> spec renders the component 1`] = `
>
<div
class="euiFlexGroup euiFlexGroup--gutterLarge euiFlexGroup--alignItemsFlexStart euiFlexGroup--justifyContentSpaceBetween euiFlexGroup--directionRow euiFlexGroup--responsive"
style="padding: 0px 10px;"
style="padding: 0px 16px;"
>
<div
class="euiFlexItem"
Expand Down Expand Up @@ -51,7 +51,7 @@ exports[`<ContentPanel /> spec renders the component 1`] = `
class="euiHorizontalRule euiHorizontalRule--full euiHorizontalRule--marginXSmall"
/>
<div
style="padding: 0px 10px;"
style="padding: 0px 16px;"
>
<div>
Testing ContentPanel
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const DisplayItem = (
const { listItem, ...others } = props;
return (
<EuiDescriptionList
compressed={true}
listItems={[
{
...listItem,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ exports[`<DescriptionListHoz /> spec renders the component 1`] = `
class="euiFlexItem"
>
<dl
class="euiDescriptionList euiDescriptionList--row"
class="euiDescriptionList euiDescriptionList--row euiDescriptionList--compressed"
>
<dt
class="euiDescriptionList__title"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ exports[`<IndexDetail /> spec renders the component 1`] = `
>
<div
class="euiFlexGroup euiFlexGroup--gutterLarge euiFlexGroup--alignItemsFlexStart euiFlexGroup--justifyContentSpaceBetween euiFlexGroup--directionRow euiFlexGroup--responsive"
style="padding: 0px 10px;"
style="padding: 0px 16px;"
>
<div
class="euiFlexItem"
Expand All @@ -29,7 +29,7 @@ exports[`<IndexDetail /> spec renders the component 1`] = `
class="euiHorizontalRule euiHorizontalRule--full euiHorizontalRule--marginXSmall"
/>
<div
style="padding: 0px 10px;"
style="padding: 0px 16px;"
>
<div
class="euiForm"
Expand Down
5 changes: 4 additions & 1 deletion public/components/IndexMapping/IndexMapping.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {
EuiButtonGroup,
EuiLink,
EuiCallOut,
EuiText,
} from "@elastic/eui";
import { set, get, isEmpty } from "lodash";
import MonacoJSONEditor, { IJSONEditorRef } from "../MonacoJSONEditor";
Expand Down Expand Up @@ -199,7 +200,9 @@ const IndexMapping = (
items={transformValueToTreeItems(value)}
/>
) : (
<p>You have no field mappings.</p>
<EuiText size="s">
<p>You have no field mappings.</p>
</EuiText>
)}
{readonly ? null : (
<>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ exports[`<ErrorNotification /> spec renders the component 1`] = `
>
<div
class="euiFlexGroup euiFlexGroup--gutterLarge euiFlexGroup--alignItemsFlexStart euiFlexGroup--justifyContentSpaceBetween euiFlexGroup--directionRow euiFlexGroup--responsive"
style="padding: 0px 10px;"
style="padding: 0px 16px;"
>
<div
class="euiFlexItem"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ exports[`<IndexDetail /> spec render the component 1`] = `
>
<div
class="euiFlexGroup euiFlexGroup--gutterLarge euiFlexGroup--alignItemsFlexStart euiFlexGroup--justifyContentSpaceBetween euiFlexGroup--directionRow euiFlexGroup--responsive"
style="padding: 0px 10px;"
style="padding: 0px 16px;"
>
<div
class="euiFlexItem"
Expand All @@ -30,7 +30,7 @@ exports[`<IndexDetail /> spec render the component 1`] = `
class="euiHorizontalRule euiHorizontalRule--full euiHorizontalRule--marginXSmall"
/>
<div
style="padding: 0px 10px;"
style="padding: 0px 16px;"
>
<div
class="euiSpacer euiSpacer--l"
Expand Down
22 changes: 13 additions & 9 deletions public/containers/IndexForm/__snapshots__/IndexForm.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ exports[`<IndexForm /> spec render page 1`] = `
>
<div
class="euiFlexGroup euiFlexGroup--gutterLarge euiFlexGroup--alignItemsFlexStart euiFlexGroup--justifyContentSpaceBetween euiFlexGroup--directionRow euiFlexGroup--responsive"
style="padding: 0px 10px;"
style="padding: 0px 16px;"
>
<div
class="euiFlexItem"
Expand All @@ -30,7 +30,7 @@ exports[`<IndexForm /> spec render page 1`] = `
class="euiHorizontalRule euiHorizontalRule--full euiHorizontalRule--marginXSmall"
/>
<div
style="padding: 0px 10px;"
style="padding: 0px 16px;"
>
<div
class="euiForm"
Expand Down Expand Up @@ -190,7 +190,7 @@ exports[`<IndexForm /> spec render page 1`] = `
>
<div
class="euiFlexGroup euiFlexGroup--gutterLarge euiFlexGroup--alignItemsFlexStart euiFlexGroup--justifyContentSpaceBetween euiFlexGroup--directionRow euiFlexGroup--responsive"
style="padding: 0px 10px;"
style="padding: 0px 16px;"
>
<div
class="euiFlexItem"
Expand All @@ -212,7 +212,7 @@ exports[`<IndexForm /> spec render page 1`] = `
class="euiHorizontalRule euiHorizontalRule--full euiHorizontalRule--marginXSmall"
/>
<div
style="padding: 0px 10px;"
style="padding: 0px 16px;"
>
<div
class="euiForm"
Expand Down Expand Up @@ -598,7 +598,7 @@ exports[`<IndexForm /> spec render page 1`] = `
>
<div
class="euiFlexGroup euiFlexGroup--gutterLarge euiFlexGroup--alignItemsFlexStart euiFlexGroup--justifyContentSpaceBetween euiFlexGroup--directionRow euiFlexGroup--responsive"
style="padding: 0px 10px;"
style="padding: 0px 16px;"
>
<div
class="euiFlexItem"
Expand Down Expand Up @@ -652,7 +652,7 @@ exports[`<IndexForm /> spec render page 1`] = `
class="euiHorizontalRule euiHorizontalRule--full euiHorizontalRule--marginXSmall"
/>
<div
style="padding: 0px 10px;"
style="padding: 0px 16px;"
>
<div
class="euiFormRow euiFormRow--fullWidth euiFormRow--compressed"
Expand Down Expand Up @@ -728,9 +728,13 @@ exports[`<IndexForm /> spec render page 1`] = `
<div
class="euiSpacer euiSpacer--l"
/>
<p>
You have no field mappings.
</p>
<div
class="euiText euiText--small"
>
<p>
You have no field mappings.
</p>
</div>
<div
class="euiSpacer euiSpacer--l"
/>
Expand Down
8 changes: 4 additions & 4 deletions public/containers/NotificationConfig/NotificationConfig.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/

import React, { useRef, forwardRef, useMemo, useImperativeHandle, useContext, useEffect, useState } from "react";
import { EuiBadge, EuiSmallButton, EuiFlexGroup, EuiFlexItem, EuiSpacer, EuiTitle } from "@elastic/eui";
import { EuiBadge, EuiSmallButton, EuiFlexGroup, EuiFlexItem, EuiSpacer, EuiText } from "@elastic/eui";
import ChannelSelect, { useChannels } from "../ChannelSelect";
import { AllBuiltInComponents } from "../../components/FormGenerator";
import {
Expand Down Expand Up @@ -122,9 +122,9 @@ const NotificationConfig = (

const content = (
<div>
<EuiTitle size="s">
<h5>Notifications</h5>
</EuiTitle>
<EuiText size="s">
<h3>Notifications</h3>
</EuiText>
<NotificationCallout
actionType={actionType}
operationType={operationType}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@ exports[`<ChannelNotification /> spec renders with create permission and no defa
class="euiSpacer euiSpacer--l"
/>
<div>
<h5
class="euiTitle euiTitle--small"
<div
class="euiText euiText--small"
>
Notifications
</h5>
<h3>
Notifications
</h3>
</div>
<div
class="euiSpacer euiSpacer--s"
/>
Expand Down Expand Up @@ -111,11 +113,13 @@ exports[`<ChannelNotification /> spec renders with full permission and default n
class="euiSpacer euiSpacer--l"
/>
<div>
<h5
class="euiTitle euiTitle--small"
<div
class="euiText euiText--small"
>
Notifications
</h5>
<h3>
Notifications
</h3>
</div>
<div
class="euiSpacer euiSpacer--s"
/>
Expand Down Expand Up @@ -287,11 +291,13 @@ exports[`<ChannelNotification /> spec renders with full permission and no defaul
class="euiSpacer euiSpacer--l"
/>
<div>
<h5
class="euiTitle euiTitle--small"
<div
class="euiText euiText--small"
>
Notifications
</h5>
<h3>
Notifications
</h3>
</div>
<div
class="euiSpacer euiSpacer--s"
/>
Expand Down Expand Up @@ -407,11 +413,13 @@ exports[`<ChannelNotification /> spec renders with view permission and default n
class="euiSpacer euiSpacer--l"
/>
<div>
<h5
class="euiTitle euiTitle--small"
<div
class="euiText euiText--small"
>
Notifications
</h5>
<h3>
Notifications
</h3>
</div>
<div
class="euiSpacer euiSpacer--s"
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ exports[`<Aliases /> spec renders the component 1`] = `
>
<div
class="euiFlexGroup euiFlexGroup--gutterLarge euiFlexGroup--alignItemsFlexStart euiFlexGroup--justifyContentSpaceBetween euiFlexGroup--directionRow euiFlexGroup--responsive"
style="padding: 0px 10px;"
style="padding: 0px 16px;"
>
<div
class="euiFlexItem"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ exports[`<ChangeManagedIndices /> spec renders the component 1`] = `
>
<div
class="euiFlexGroup euiFlexGroup--gutterLarge euiFlexGroup--alignItemsFlexStart euiFlexGroup--justifyContentSpaceBetween euiFlexGroup--directionRow euiFlexGroup--responsive"
style="padding: 0px 10px;"
style="padding: 0px 16px;"
>
<div
class="euiFlexItem"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ exports[`<NewPolicy /> spec renders the component 1`] = `
>
<div
class="euiFlexGroup euiFlexGroup--gutterLarge euiFlexGroup--alignItemsFlexStart euiFlexGroup--justifyContentSpaceBetween euiFlexGroup--directionRow euiFlexGroup--responsive"
style="padding: 0px 10px;"
style="padding: 0px 16px;"
>
<div
class="euiFlexItem"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ exports[`<ChangePolicy /> spec renders the component 1`] = `
>
<div
class="euiFlexGroup euiFlexGroup--gutterLarge euiFlexGroup--alignItemsFlexStart euiFlexGroup--justifyContentSpaceBetween euiFlexGroup--directionRow euiFlexGroup--responsive"
style="padding: 0px 10px;"
style="padding: 0px 16px;"
>
<div
class="euiFlexItem"
Expand Down Expand Up @@ -218,7 +218,7 @@ exports[`<ChangePolicy /> spec renders the component 1`] = `
>
<div
class="euiFlexGroup euiFlexGroup--gutterLarge euiFlexGroup--alignItemsFlexStart euiFlexGroup--justifyContentSpaceBetween euiFlexGroup--directionRow euiFlexGroup--responsive"
style="padding: 0px 10px;"
style="padding: 0px 16px;"
>
<div
class="euiFlexItem"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ exports[`<ComposableTemplates /> spec renders the component 1`] = `
>
<div
class="euiFlexGroup euiFlexGroup--gutterLarge euiFlexGroup--alignItemsFlexStart euiFlexGroup--justifyContentSpaceBetween euiFlexGroup--directionRow euiFlexGroup--responsive"
style="padding: 0px 10px;"
style="padding: 0px 16px;"
>
<div
class="euiFlexItem"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ exports[`<CreateComposableTemplate /> spec it goes to templates page when click
>
<div
class="euiFlexGroup euiFlexGroup--gutterLarge euiFlexGroup--alignItemsFlexStart euiFlexGroup--justifyContentSpaceBetween euiFlexGroup--directionRow euiFlexGroup--responsive"
style="padding: 0px 10px;"
style="padding: 0px 16px;"
>
<div
class="euiFlexItem"
Expand All @@ -85,7 +85,7 @@ exports[`<CreateComposableTemplate /> spec it goes to templates page when click
class="euiHorizontalRule euiHorizontalRule--full euiHorizontalRule--marginXSmall"
/>
<div
style="padding: 0px 10px;"
style="padding: 0px 16px;"
>
<div
class="euiSpacer euiSpacer--s"
Expand Down Expand Up @@ -166,7 +166,7 @@ exports[`<CreateComposableTemplate /> spec it goes to templates page when click
>
<div
class="euiFlexGroup euiFlexGroup--gutterLarge euiFlexGroup--alignItemsFlexStart euiFlexGroup--justifyContentSpaceBetween euiFlexGroup--directionRow euiFlexGroup--responsive"
style="margin-top: 0px; margin-bottom: 0px; padding: 0px 10px;"
style="margin-top: 0px; margin-bottom: 0px; padding: 0px 16px;"
>
<div
class="euiFlexItem"
Expand Down Expand Up @@ -264,7 +264,7 @@ exports[`<CreateComposableTemplate /> spec it goes to templates page when click
>
<div
class="euiFlexGroup euiFlexGroup--gutterLarge euiFlexGroup--alignItemsFlexStart euiFlexGroup--justifyContentSpaceBetween euiFlexGroup--directionRow euiFlexGroup--responsive"
style="margin-top: 0px; margin-bottom: 0px; padding: 0px 10px;"
style="margin-top: 0px; margin-bottom: 0px; padding: 0px 16px;"
>
<div
class="euiFlexItem"
Expand Down Expand Up @@ -344,7 +344,7 @@ exports[`<CreateComposableTemplate /> spec it goes to templates page when click
>
<div
class="euiFlexGroup euiFlexGroup--gutterLarge euiFlexGroup--alignItemsFlexStart euiFlexGroup--justifyContentSpaceBetween euiFlexGroup--directionRow euiFlexGroup--responsive"
style="margin-top: 0px; margin-bottom: 0px; padding: 0px 10px;"
style="margin-top: 0px; margin-bottom: 0px; padding: 0px 16px;"
>
<div
class="euiFlexItem"
Expand Down
Loading

0 comments on commit 167797d

Please sign in to comment.