From ce3d66d5b7325e9e8e79a36d823fc542a71dd604 Mon Sep 17 00:00:00 2001 From: Zhongnan Su Date: Mon, 8 Jul 2024 19:48:31 +0000 Subject: [PATCH] [Look&Feel] Update sementic header to use correct size Signed-off-by: Zhongnan Su --- .../utils/get_no_items_message.tsx | 30 +++++++++++-------- .../loading_spinner/loading_spinner.tsx | 2 +- .../inspector_panel.test.tsx.snap | 8 ++--- .../inspector/public/ui/inspector_panel.tsx | 4 +-- .../public/components/landing/landing.tsx | 2 +- .../__snapshots__/add_data.test.tsx.snap | 2 +- .../public/components/add_data/add_data.tsx | 2 +- .../__snapshots__/manage_data.test.tsx.snap | 2 +- .../components/manage_data/manage_data.tsx | 2 +- .../overview_page_header.test.tsx.snap | 2 +- .../overview_page_header.tsx | 2 +- .../object_view/components/header.tsx | 18 ++++++----- .../__snapshots__/header.test.tsx.snap | 4 ++- .../objects_table/components/header.tsx | 2 +- .../components/sidebar/sidebar_title.tsx | 4 +-- .../public/markdown_options.tsx | 2 +- .../__snapshots__/new_vis_modal.test.tsx.snap | 12 ++++---- .../wizard/type_selection/type_selection.tsx | 2 +- .../wizard/type_selection/vis_help_text.tsx | 2 +- .../application/utils/get_table_columns.tsx | 24 ++++++++++----- 20 files changed, 74 insertions(+), 54 deletions(-) diff --git a/src/plugins/dashboard/public/application/utils/get_no_items_message.tsx b/src/plugins/dashboard/public/application/utils/get_no_items_message.tsx index 175cafdc7a5c..f0ac40f28edf 100644 --- a/src/plugins/dashboard/public/application/utils/get_no_items_message.tsx +++ b/src/plugins/dashboard/public/application/utils/get_no_items_message.tsx @@ -5,7 +5,7 @@ import React, { Fragment } from 'react'; import { FormattedMessage } from '@osd/i18n/react'; -import { EuiButton, EuiEmptyPrompt, EuiLink } from '@elastic/eui'; +import { EuiButton, EuiEmptyPrompt, EuiLink, EuiTitle } from '@elastic/eui'; import { ApplicationStart } from 'opensearch-dashboards/public'; export const getNoItemsMessage = ( @@ -18,12 +18,14 @@ export const getNoItemsMessage = ( - - + +

+ +

+
} /> ); @@ -33,12 +35,14 @@ export const getNoItemsMessage = ( - - + +

+ +

+
} body={ diff --git a/src/plugins/discover/public/application/components/loading_spinner/loading_spinner.tsx b/src/plugins/discover/public/application/components/loading_spinner/loading_spinner.tsx index dc12ba4581fc..c388aecc5439 100644 --- a/src/plugins/discover/public/application/components/loading_spinner/loading_spinner.tsx +++ b/src/plugins/discover/public/application/components/loading_spinner/loading_spinner.tsx @@ -39,7 +39,7 @@ export function LoadingSpinner() { } title={ - +

diff --git a/src/plugins/inspector/public/ui/__snapshots__/inspector_panel.test.tsx.snap b/src/plugins/inspector/public/ui/__snapshots__/inspector_panel.test.tsx.snap index 827cd95a0cf4..b5156b0c4268 100644 --- a/src/plugins/inspector/public/ui/__snapshots__/inspector_panel.test.tsx.snap +++ b/src/plugins/inspector/public/ui/__snapshots__/inspector_panel.test.tsx.snap @@ -155,13 +155,13 @@ exports[`InspectorPanel should render as expected 1`] = ` className="euiFlexItem" > -

Inspector -

+
diff --git a/src/plugins/inspector/public/ui/inspector_panel.tsx b/src/plugins/inspector/public/ui/inspector_panel.tsx index 83426c7d5e0a..a01cf5069845 100644 --- a/src/plugins/inspector/public/ui/inspector_panel.tsx +++ b/src/plugins/inspector/public/ui/inspector_panel.tsx @@ -122,8 +122,8 @@ export class InspectorPanel extends Component - -

{title}

+ +

{title}

diff --git a/src/plugins/management/public/components/landing/landing.tsx b/src/plugins/management/public/components/landing/landing.tsx index 5557eb7e9019..6236ff011b78 100644 --- a/src/plugins/management/public/components/landing/landing.tsx +++ b/src/plugins/management/public/components/landing/landing.tsx @@ -57,7 +57,7 @@ export const ManagementLandingPage = ({ setBreadcrumbs }: ManagementLandingPageP
- +

= ({ addBasePath, features }) => {
- +

= ({ addBasePath, features }) => { aria-labelledby="osdOverviewDataManage__title" data-test-subj="osdOverviewDataManage" > - +

= ({ )} - +

{title}

diff --git a/src/plugins/saved_objects_management/public/management_section/object_view/components/header.tsx b/src/plugins/saved_objects_management/public/management_section/object_view/components/header.tsx index ff76a268296a..f96cb48e2d22 100644 --- a/src/plugins/saved_objects_management/public/management_section/object_view/components/header.tsx +++ b/src/plugins/saved_objects_management/public/management_section/object_view/components/header.tsx @@ -61,6 +61,7 @@ export const Header = ({ {canEdit ? ( + //

) : ( -

- -

+ //
+ +

+ +

+
)}
diff --git a/src/plugins/saved_objects_management/public/management_section/objects_table/components/__snapshots__/header.test.tsx.snap b/src/plugins/saved_objects_management/public/management_section/objects_table/components/__snapshots__/header.test.tsx.snap index 038e1aaf2d8f..406a4fb63d69 100644 --- a/src/plugins/saved_objects_management/public/management_section/objects_table/components/__snapshots__/header.test.tsx.snap +++ b/src/plugins/saved_objects_management/public/management_section/objects_table/components/__snapshots__/header.test.tsx.snap @@ -9,7 +9,9 @@ exports[`Header should render normally 1`] = ` - +

- +

- +

) : vis.type.options.showIndexSelection ? ( - +

- +

diff --git a/src/plugins/visualizations/public/wizard/__snapshots__/new_vis_modal.test.tsx.snap b/src/plugins/visualizations/public/wizard/__snapshots__/new_vis_modal.test.tsx.snap index 2685e7cc8d21..8b52d04524e3 100644 --- a/src/plugins/visualizations/public/wizard/__snapshots__/new_vis_modal.test.tsx.snap +++ b/src/plugins/visualizations/public/wizard/__snapshots__/new_vis_modal.test.tsx.snap @@ -383,7 +383,7 @@ exports[`NewVisModal filter for visualization types should render as expected 1` class="euiFlexItem euiFlexItem--flexGrowZero visNewVisDialog__description" >

Select a visualization type

@@ -977,10 +977,10 @@ exports[`NewVisModal filter for visualization types should render as expected 1` className="euiFlexItem euiFlexItem--flexGrowZero visNewVisDialog__description" >

Select a visualization type

@@ -2027,10 +2027,10 @@ exports[`NewVisModal should render as expected 1`] = ` className="euiFlexItem euiFlexItem--flexGrowZero visNewVisDialog__description" >

) : ( - +

{ return ( - +

{title}

diff --git a/src/plugins/visualize/public/application/utils/get_table_columns.tsx b/src/plugins/visualize/public/application/utils/get_table_columns.tsx index 02917cf2b903..279ea2a4a331 100644 --- a/src/plugins/visualize/public/application/utils/get_table_columns.tsx +++ b/src/plugins/visualize/public/application/utils/get_table_columns.tsx @@ -30,7 +30,15 @@ import React from 'react'; import { History } from 'history'; -import { EuiBetaBadge, EuiButton, EuiEmptyPrompt, EuiIcon, EuiLink, EuiBadge } from '@elastic/eui'; +import { + EuiBetaBadge, + EuiButton, + EuiEmptyPrompt, + EuiIcon, + EuiLink, + EuiBadge, + EuiTitle, +} from '@elastic/eui'; import { i18n } from '@osd/i18n'; import { FormattedMessage } from '@osd/i18n/react'; @@ -167,12 +175,14 @@ export const getNoItemsMessage = (createItem: () => void) => ( - -

+ +

+ +

+
} body={