- Datasource
+ Title
- Datasource
+ Title
- Datasource
+ Title
- Datasource
+ Title
{
const columns = [
{
field: 'title',
- name: 'Datasource',
+ name: 'Title',
render: (
name: string,
index: {
@@ -184,6 +184,7 @@ export const DataSourceTable = ({ history }: RouteComponentProps) => {
confirmButtonText={i18n.translate('dataSourcesManagement.dataSourcesTable.delete', {
defaultMessage: 'Delete',
})}
+ buttonColor="danger"
defaultFocusedButton="confirm"
>
@@ -249,7 +250,7 @@ export const DataSourceTable = ({ history }: RouteComponentProps) => {
/* Toast Handlers */
const handleDisplayToastMessage = ({ id, defaultMessage }: ToastMessageItem) => {
- toasts.addWarning(
+ toasts.addDanger(
i18n.translate(id, {
defaultMessage,
})
@@ -258,7 +259,14 @@ export const DataSourceTable = ({ history }: RouteComponentProps) => {
/* Render Ui elements*/
/* Create Data Source button */
- const createButton = ;
+ const createButton = ;
+ const createButtonEmptyState = (
+
+ );
/* Render header*/
const renderHeader = () => {
@@ -332,7 +340,7 @@ export const DataSourceTable = ({ history }: RouteComponentProps) => {
}
- {createButton}
+ {createButtonEmptyState}
>
diff --git a/src/plugins/data_source_management/public/management_app/compoenent/experimental_callout/experimental_callout.tsx b/src/plugins/data_source_management/public/management_app/compoenent/experimental_callout/experimental_callout.tsx
index 611e410e373a..23f0d45a3206 100644
--- a/src/plugins/data_source_management/public/management_app/compoenent/experimental_callout/experimental_callout.tsx
+++ b/src/plugins/data_source_management/public/management_app/compoenent/experimental_callout/experimental_callout.tsx
@@ -23,7 +23,7 @@ export const ExperimentalCallout = ({ docLinks }: { docLinks: DocLinksStart }) =
{
}
@@ -44,7 +44,7 @@ export const ExperimentalCallout = ({ docLinks }: { docLinks: DocLinksStart }) =
{
}
From 8d5e504041ce808c0c897a32485de5f8eed30d2a Mon Sep 17 00:00:00 2001
From: "Qingyang(Abby) Hu"
Date: Thu, 20 Oct 2022 13:45:19 -0700
Subject: [PATCH 3/3] Rename wizard to visBuilder in i18n id and formatted
message id (#2635)
Signed-off-by: abbyhu2000
Signed-off-by: abbyhu2000
---
CHANGELOG.md | 1 +
.../application/components/data_source_select.tsx | 2 +-
.../application/components/data_tab/field_search.tsx | 2 +-
.../application/components/experimental_info.tsx | 4 ++--
.../public/application/components/right_nav.tsx | 8 ++++----
.../public/application/utils/breadcrumbs.ts | 6 +++---
.../public/application/utils/get_top_nav_config.tsx | 12 ++++++------
.../public/application/utils/use/use_can_save.ts | 2 +-
.../public/embeddable/disabled_visualization.tsx | 4 ++--
.../embeddable/vis_builder_embeddable_factory.tsx | 2 +-
src/plugins/vis_builder/public/plugin.ts | 4 ++--
11 files changed, 24 insertions(+), 23 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index e3135bd2d397..c7e8507a964b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -25,6 +25,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
* [Vis Builder] Change classname prefix wiz to vb ([#2581](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/2581/files))
* [Vis Builder] Change wizard to vis_builder in file names and paths ([#2587](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/2587))
* [Multi DataSource] Address UX comments on Data source list and create page ([#2625](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/2625))
+* [Vis Builder] Rename wizard to visBuilder in i18n id and formatted message id ([#2635](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/2635))
### 🐛 Bug Fixes
* [Vis Builder] Fixes auto bounds for timeseries bar chart visualization ([2401](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/2401))
diff --git a/src/plugins/vis_builder/public/application/components/data_source_select.tsx b/src/plugins/vis_builder/public/application/components/data_source_select.tsx
index c51aa40a08e2..36638e0cb63b 100644
--- a/src/plugins/vis_builder/public/application/components/data_source_select.tsx
+++ b/src/plugins/vis_builder/public/application/components/data_source_select.tsx
@@ -39,7 +39,7 @@ export const DataSourceSelect = () => {
dispatch(setIndexPattern(foundOption.id));
}
}}
- prepend={i18n.translate('wizard.nav.dataSource.selector.title', {
+ prepend={i18n.translate('visBuilder.nav.dataSource.selector.title', {
defaultMessage: 'Data Source',
})}
error={error}
diff --git a/src/plugins/vis_builder/public/application/components/data_tab/field_search.tsx b/src/plugins/vis_builder/public/application/components/data_tab/field_search.tsx
index 62dcf2c2b953..a2dec9156dba 100644
--- a/src/plugins/vis_builder/public/application/components/data_tab/field_search.tsx
+++ b/src/plugins/vis_builder/public/application/components/data_tab/field_search.tsx
@@ -21,7 +21,7 @@ export interface Props {
* Additionally there's a button displayed that allows the user to show/hide more filter fields
*/
export function FieldSearch({ value }: Props) {
- const searchPlaceholder = i18n.translate('wizard.fieldChooser.searchPlaceHolder', {
+ const searchPlaceholder = i18n.translate('visBuilder.fieldChooser.searchPlaceHolder', {
defaultMessage: 'Search field names',
});
diff --git a/src/plugins/vis_builder/public/application/components/experimental_info.tsx b/src/plugins/vis_builder/public/application/components/experimental_info.tsx
index 35ea235c1ba3..ea341e1e8873 100644
--- a/src/plugins/vis_builder/public/application/components/experimental_info.tsx
+++ b/src/plugins/vis_builder/public/application/components/experimental_info.tsx
@@ -14,13 +14,13 @@ export const InfoComponent = () => {
className="hide-for-sharing"
data-test-subj="experimentalVisInfo"
size="s"
- title={i18n.translate('wizard.experimentalInfoTitle', {
+ title={i18n.translate('visBuilder.experimentalInfoTitle', {
defaultMessage: 'This editor is experimental and should not be used in production',
})}
iconType="beaker"
>
{
{newVisType && (