From 0e4164df15b1b2e38524e29bf62abb84398cdacc Mon Sep 17 00:00:00 2001 From: "Qingyang(Abby) Hu" Date: Mon, 17 Oct 2022 16:50:48 -0700 Subject: [PATCH] Change wizard to vis_builder in file names and paths (#2587) Change all wizard reference in file names and paths to vis_builder Signed-off-by: abbyhu2000 Signed-off-by: abbyhu2000 (cherry picked from commit f29f734453709d4b9065485525a5dbd17c73dcf1) --- .../saved_objects_management/public/plugin.ts | 2 +- src/plugins/{wizard => vis_builder}/README.md | 0 .../{wizard => vis_builder}/common/index.ts | 5 +- .../vis_builder_saved_object_attributes.ts} | 0 src/plugins/{wizard => vis_builder}/config.ts | 0 .../opensearch_dashboards.json | 0 .../public/application/_util.scss | 0 .../public/application/_variables.scss | 0 .../public/application/app.scss | 0 .../public/application/app.tsx | 0 .../components/data_source_select.tsx | 0 .../components/data_tab/config_panel.scss | 0 .../components/data_tab/config_panel.tsx | 0 .../components/data_tab/dropbox.scss | 0 .../components/data_tab/dropbox.tsx | 0 .../components/data_tab/field_search.tsx | 0 .../components/data_tab/field_selector.scss | 0 .../components/data_tab/field_selector.tsx | 0 .../data_tab/field_selector_field.scss | 0 .../data_tab/field_selector_field.tsx | 0 .../components/data_tab/index.scss | 0 .../application/components/data_tab/index.tsx | 0 .../components/data_tab/schema_to_dropbox.tsx | 0 .../components/data_tab/secondary_panel.tsx | 0 .../application/components/data_tab/title.tsx | 0 .../components/data_tab/use/index.ts | 0 .../components/data_tab/use/use_dropbox.tsx | 0 .../use/use_prefers_reduced_motion.ts | 0 .../data_tab/utils/get_available_fields.ts | 0 .../components/data_tab/utils/index.ts | 0 .../components/experimental_info.tsx | 0 .../application/components/left_nav.tsx | 0 .../public/application/components/option.scss | 0 .../public/application/components/option.tsx | 0 .../application/components/right_nav.tsx | 0 .../components/searchable_dropdown.scss | 0 .../components/searchable_dropdown.tsx | 0 .../application/components/side_nav.scss | 0 .../application/components/top_nav.scss | 0 .../public/application/components/top_nav.tsx | 0 .../application/components/workspace.scss | 0 .../application/components/workspace.tsx | 0 .../public/application/index.tsx | 0 .../public/application/utils/breadcrumbs.ts | 0 .../utils/drag_drop/drag_drop_context.tsx | 0 .../application/utils/drag_drop/index.ts | 0 .../application/utils/drag_drop/types.ts | 0 .../utils/get_saved_vis_builder_vis.ts} | 0 .../utils/get_top_nav_config.test.tsx | 157 ++++++++++++++++++ .../application/utils/get_top_nav_config.tsx | 0 .../public/application/utils/mocks.ts | 45 +++++ .../public/application/utils/schema.json | 0 .../utils/state_management/hooks.ts | 0 .../utils/state_management/index.ts | 0 .../utils/state_management/metadata_slice.ts | 0 .../utils/state_management/preload.ts | 0 .../utils/state_management/shared_actions.ts | 0 .../utils/state_management/store.ts | 0 .../utils/state_management/style_slice.ts | 0 .../state_management/visualization_slice.ts | 0 .../public/application/utils/use/index.ts | 2 +- .../application/utils/use/use_can_save.ts | 0 .../utils/use/use_index_pattern.tsx | 0 .../utils/use/use_saved_vis_builder_vis.ts} | 4 +- .../utils/use/use_visualization_type.ts | 0 .../utils/validate_schema_state.ts | 0 .../vis_builder_state_validation.test.ts} | 2 +- .../utils/vis_builder_state_validation.ts} | 0 .../public/assets/fields_bg.svg | 0 .../public/assets/hand_field.svg | 0 .../public/assets/wizard_icon.svg | 0 .../assets/wizard_icon_secondary_fill.svg | 0 .../public/embeddable/disabled_embeddable.tsx | 2 +- .../embeddable/disabled_visualization.scss | 0 .../embeddable/disabled_visualization.tsx | 0 .../vis_builder/public/embeddable/index.ts | 7 + .../embeddable/vis_builder_component.tsx} | 2 +- .../embeddable/vis_builder_embeddable.tsx} | 0 .../vis_builder_embeddable_factory.tsx} | 2 +- .../{wizard => vis_builder}/public/index.ts | 0 .../public/plugin.test.ts | 10 +- .../{wizard => vis_builder}/public/plugin.ts | 0 .../public/plugin_services.ts | 0 .../public/saved_visualizations/_saved_vis.ts | 0 .../public/saved_visualizations/index.ts | 0 .../saved_visualization_references.ts | 0 .../saved_visualizations.ts | 0 .../saved_visualizations/transforms.test.ts | 2 +- .../public/saved_visualizations/transforms.ts | 0 .../public/services/type_service/index.ts | 0 .../type_service/type_service.test.ts | 0 .../services/type_service/type_service.ts | 0 .../public/services/type_service/types.ts | 0 .../type_service/visualization_type.tsx | 0 .../{wizard => vis_builder}/public/types.ts | 0 .../common/expression_helpers.ts | 0 .../public/visualizations/index.ts | 0 .../metric/components/metric_viz_options.tsx | 0 .../public/visualizations/metric/index.ts | 0 .../visualizations/metric/metric_viz_type.ts | 0 .../visualizations/metric/to_expression.ts | 0 .../vislib/area/area_vis_type.ts | 0 .../area/components/area_vis_options.tsx | 0 .../visualizations/vislib/area/index.ts | 0 .../vislib/area/to_expression.ts | 0 .../vislib/common/basic_vis_options.tsx | 0 .../vislib/common/create_vis.ts | 0 .../vislib/common/get_pipeline_params.ts | 0 .../vislib/common/get_value_axes.ts | 0 .../visualizations/vislib/common/index.ts | 0 .../visualizations/vislib/common/types.ts | 0 .../components/histogram_vis_options.tsx | 0 .../vislib/histogram/histogram_vis_type.ts | 0 .../visualizations/vislib/histogram/index.ts | 0 .../vislib/histogram/to_expression.ts | 0 .../public/visualizations/vislib/index.ts | 0 .../line/components/line_vis_options.tsx | 0 .../visualizations/vislib/line/index.ts | 0 .../vislib/line/line_vis_type.ts | 0 .../vislib/line/to_expression.ts | 0 .../server/capabilities_provider.ts | 0 .../{wizard => vis_builder}/server/index.ts | 0 .../{wizard => vis_builder}/server/plugin.ts | 0 .../server/saved_objects/index.ts | 2 +- .../server/saved_objects/vis_builder_app.ts} | 2 +- .../vis_builder_migration.test.ts} | 2 +- .../saved_objects/vis_builder_migration.ts} | 0 .../{wizard => vis_builder}/server/types.ts | 0 .../{wizard => vis_builder}/tsconfig.json | 2 +- src/plugins/wizard/public/embeddable/index.ts | 7 - 130 files changed, 231 insertions(+), 26 deletions(-) rename src/plugins/{wizard => vis_builder}/README.md (100%) rename src/plugins/{wizard => vis_builder}/common/index.ts (67%) rename src/plugins/{wizard/common/wizard_saved_object_attributes.ts => vis_builder/common/vis_builder_saved_object_attributes.ts} (100%) rename src/plugins/{wizard => vis_builder}/config.ts (100%) rename src/plugins/{wizard => vis_builder}/opensearch_dashboards.json (100%) rename src/plugins/{wizard => vis_builder}/public/application/_util.scss (100%) rename src/plugins/{wizard => vis_builder}/public/application/_variables.scss (100%) rename src/plugins/{wizard => vis_builder}/public/application/app.scss (100%) rename src/plugins/{wizard => vis_builder}/public/application/app.tsx (100%) rename src/plugins/{wizard => vis_builder}/public/application/components/data_source_select.tsx (100%) rename src/plugins/{wizard => vis_builder}/public/application/components/data_tab/config_panel.scss (100%) rename src/plugins/{wizard => vis_builder}/public/application/components/data_tab/config_panel.tsx (100%) rename src/plugins/{wizard => vis_builder}/public/application/components/data_tab/dropbox.scss (100%) rename src/plugins/{wizard => vis_builder}/public/application/components/data_tab/dropbox.tsx (100%) rename src/plugins/{wizard => vis_builder}/public/application/components/data_tab/field_search.tsx (100%) rename src/plugins/{wizard => vis_builder}/public/application/components/data_tab/field_selector.scss (100%) rename src/plugins/{wizard => vis_builder}/public/application/components/data_tab/field_selector.tsx (100%) rename src/plugins/{wizard => vis_builder}/public/application/components/data_tab/field_selector_field.scss (100%) rename src/plugins/{wizard => vis_builder}/public/application/components/data_tab/field_selector_field.tsx (100%) rename src/plugins/{wizard => vis_builder}/public/application/components/data_tab/index.scss (100%) rename src/plugins/{wizard => vis_builder}/public/application/components/data_tab/index.tsx (100%) rename src/plugins/{wizard => vis_builder}/public/application/components/data_tab/schema_to_dropbox.tsx (100%) rename src/plugins/{wizard => vis_builder}/public/application/components/data_tab/secondary_panel.tsx (100%) rename src/plugins/{wizard => vis_builder}/public/application/components/data_tab/title.tsx (100%) rename src/plugins/{wizard => vis_builder}/public/application/components/data_tab/use/index.ts (100%) rename src/plugins/{wizard => vis_builder}/public/application/components/data_tab/use/use_dropbox.tsx (100%) rename src/plugins/{wizard => vis_builder}/public/application/components/data_tab/use/use_prefers_reduced_motion.ts (100%) rename src/plugins/{wizard => vis_builder}/public/application/components/data_tab/utils/get_available_fields.ts (100%) rename src/plugins/{wizard => vis_builder}/public/application/components/data_tab/utils/index.ts (100%) rename src/plugins/{wizard => vis_builder}/public/application/components/experimental_info.tsx (100%) rename src/plugins/{wizard => vis_builder}/public/application/components/left_nav.tsx (100%) rename src/plugins/{wizard => vis_builder}/public/application/components/option.scss (100%) rename src/plugins/{wizard => vis_builder}/public/application/components/option.tsx (100%) rename src/plugins/{wizard => vis_builder}/public/application/components/right_nav.tsx (100%) rename src/plugins/{wizard => vis_builder}/public/application/components/searchable_dropdown.scss (100%) rename src/plugins/{wizard => vis_builder}/public/application/components/searchable_dropdown.tsx (100%) rename src/plugins/{wizard => vis_builder}/public/application/components/side_nav.scss (100%) rename src/plugins/{wizard => vis_builder}/public/application/components/top_nav.scss (100%) rename src/plugins/{wizard => vis_builder}/public/application/components/top_nav.tsx (100%) rename src/plugins/{wizard => vis_builder}/public/application/components/workspace.scss (100%) rename src/plugins/{wizard => vis_builder}/public/application/components/workspace.tsx (100%) rename src/plugins/{wizard => vis_builder}/public/application/index.tsx (100%) rename src/plugins/{wizard => vis_builder}/public/application/utils/breadcrumbs.ts (100%) rename src/plugins/{wizard => vis_builder}/public/application/utils/drag_drop/drag_drop_context.tsx (100%) rename src/plugins/{wizard => vis_builder}/public/application/utils/drag_drop/index.ts (100%) rename src/plugins/{wizard => vis_builder}/public/application/utils/drag_drop/types.ts (100%) rename src/plugins/{wizard/public/application/utils/get_saved_wizard_vis.ts => vis_builder/public/application/utils/get_saved_vis_builder_vis.ts} (100%) create mode 100644 src/plugins/vis_builder/public/application/utils/get_top_nav_config.test.tsx rename src/plugins/{wizard => vis_builder}/public/application/utils/get_top_nav_config.tsx (100%) create mode 100644 src/plugins/vis_builder/public/application/utils/mocks.ts rename src/plugins/{wizard => vis_builder}/public/application/utils/schema.json (100%) rename src/plugins/{wizard => vis_builder}/public/application/utils/state_management/hooks.ts (100%) rename src/plugins/{wizard => vis_builder}/public/application/utils/state_management/index.ts (100%) rename src/plugins/{wizard => vis_builder}/public/application/utils/state_management/metadata_slice.ts (100%) rename src/plugins/{wizard => vis_builder}/public/application/utils/state_management/preload.ts (100%) rename src/plugins/{wizard => vis_builder}/public/application/utils/state_management/shared_actions.ts (100%) rename src/plugins/{wizard => vis_builder}/public/application/utils/state_management/store.ts (100%) rename src/plugins/{wizard => vis_builder}/public/application/utils/state_management/style_slice.ts (100%) rename src/plugins/{wizard => vis_builder}/public/application/utils/state_management/visualization_slice.ts (100%) rename src/plugins/{wizard => vis_builder}/public/application/utils/use/index.ts (75%) rename src/plugins/{wizard => vis_builder}/public/application/utils/use/use_can_save.ts (100%) rename src/plugins/{wizard => vis_builder}/public/application/utils/use/use_index_pattern.tsx (100%) rename src/plugins/{wizard/public/application/utils/use/use_saved_wizard_vis.ts => vis_builder/public/application/utils/use/use_saved_vis_builder_vis.ts} (96%) rename src/plugins/{wizard => vis_builder}/public/application/utils/use/use_visualization_type.ts (100%) rename src/plugins/{wizard => vis_builder}/public/application/utils/validate_schema_state.ts (100%) rename src/plugins/{wizard/public/application/utils/wizard_state_validation.test.ts => vis_builder/public/application/utils/vis_builder_state_validation.test.ts} (94%) rename src/plugins/{wizard/public/application/utils/wizard_state_validation.ts => vis_builder/public/application/utils/vis_builder_state_validation.ts} (100%) rename src/plugins/{wizard => vis_builder}/public/assets/fields_bg.svg (100%) rename src/plugins/{wizard => vis_builder}/public/assets/hand_field.svg (100%) rename src/plugins/{wizard => vis_builder}/public/assets/wizard_icon.svg (100%) rename src/plugins/{wizard => vis_builder}/public/assets/wizard_icon_secondary_fill.svg (100%) rename src/plugins/{wizard => vis_builder}/public/embeddable/disabled_embeddable.tsx (92%) rename src/plugins/{wizard => vis_builder}/public/embeddable/disabled_visualization.scss (100%) rename src/plugins/{wizard => vis_builder}/public/embeddable/disabled_visualization.tsx (100%) create mode 100644 src/plugins/vis_builder/public/embeddable/index.ts rename src/plugins/{wizard/public/embeddable/wizard_component.tsx => vis_builder/public/embeddable/vis_builder_component.tsx} (92%) rename src/plugins/{wizard/public/embeddable/wizard_embeddable.tsx => vis_builder/public/embeddable/vis_builder_embeddable.tsx} (100%) rename src/plugins/{wizard/public/embeddable/wizard_embeddable_factory.tsx => vis_builder/public/embeddable/vis_builder_embeddable_factory.tsx} (99%) rename src/plugins/{wizard => vis_builder}/public/index.ts (100%) rename src/plugins/{wizard => vis_builder}/public/plugin.test.ts (78%) rename src/plugins/{wizard => vis_builder}/public/plugin.ts (100%) rename src/plugins/{wizard => vis_builder}/public/plugin_services.ts (100%) rename src/plugins/{wizard => vis_builder}/public/saved_visualizations/_saved_vis.ts (100%) rename src/plugins/{wizard => vis_builder}/public/saved_visualizations/index.ts (100%) rename src/plugins/{wizard => vis_builder}/public/saved_visualizations/saved_visualization_references.ts (100%) rename src/plugins/{wizard => vis_builder}/public/saved_visualizations/saved_visualizations.ts (100%) rename src/plugins/{wizard => vis_builder}/public/saved_visualizations/transforms.test.ts (96%) rename src/plugins/{wizard => vis_builder}/public/saved_visualizations/transforms.ts (100%) rename src/plugins/{wizard => vis_builder}/public/services/type_service/index.ts (100%) rename src/plugins/{wizard => vis_builder}/public/services/type_service/type_service.test.ts (100%) rename src/plugins/{wizard => vis_builder}/public/services/type_service/type_service.ts (100%) rename src/plugins/{wizard => vis_builder}/public/services/type_service/types.ts (100%) rename src/plugins/{wizard => vis_builder}/public/services/type_service/visualization_type.tsx (100%) rename src/plugins/{wizard => vis_builder}/public/types.ts (100%) rename src/plugins/{wizard => vis_builder}/public/visualizations/common/expression_helpers.ts (100%) rename src/plugins/{wizard => vis_builder}/public/visualizations/index.ts (100%) rename src/plugins/{wizard => vis_builder}/public/visualizations/metric/components/metric_viz_options.tsx (100%) rename src/plugins/{wizard => vis_builder}/public/visualizations/metric/index.ts (100%) rename src/plugins/{wizard => vis_builder}/public/visualizations/metric/metric_viz_type.ts (100%) rename src/plugins/{wizard => vis_builder}/public/visualizations/metric/to_expression.ts (100%) rename src/plugins/{wizard => vis_builder}/public/visualizations/vislib/area/area_vis_type.ts (100%) rename src/plugins/{wizard => vis_builder}/public/visualizations/vislib/area/components/area_vis_options.tsx (100%) rename src/plugins/{wizard => vis_builder}/public/visualizations/vislib/area/index.ts (100%) rename src/plugins/{wizard => vis_builder}/public/visualizations/vislib/area/to_expression.ts (100%) rename src/plugins/{wizard => vis_builder}/public/visualizations/vislib/common/basic_vis_options.tsx (100%) rename src/plugins/{wizard => vis_builder}/public/visualizations/vislib/common/create_vis.ts (100%) rename src/plugins/{wizard => vis_builder}/public/visualizations/vislib/common/get_pipeline_params.ts (100%) rename src/plugins/{wizard => vis_builder}/public/visualizations/vislib/common/get_value_axes.ts (100%) rename src/plugins/{wizard => vis_builder}/public/visualizations/vislib/common/index.ts (100%) rename src/plugins/{wizard => vis_builder}/public/visualizations/vislib/common/types.ts (100%) rename src/plugins/{wizard => vis_builder}/public/visualizations/vislib/histogram/components/histogram_vis_options.tsx (100%) rename src/plugins/{wizard => vis_builder}/public/visualizations/vislib/histogram/histogram_vis_type.ts (100%) rename src/plugins/{wizard => vis_builder}/public/visualizations/vislib/histogram/index.ts (100%) rename src/plugins/{wizard => vis_builder}/public/visualizations/vislib/histogram/to_expression.ts (100%) rename src/plugins/{wizard => vis_builder}/public/visualizations/vislib/index.ts (100%) rename src/plugins/{wizard => vis_builder}/public/visualizations/vislib/line/components/line_vis_options.tsx (100%) rename src/plugins/{wizard => vis_builder}/public/visualizations/vislib/line/index.ts (100%) rename src/plugins/{wizard => vis_builder}/public/visualizations/vislib/line/line_vis_type.ts (100%) rename src/plugins/{wizard => vis_builder}/public/visualizations/vislib/line/to_expression.ts (100%) rename src/plugins/{wizard => vis_builder}/server/capabilities_provider.ts (100%) rename src/plugins/{wizard => vis_builder}/server/index.ts (100%) rename src/plugins/{wizard => vis_builder}/server/plugin.ts (100%) rename src/plugins/{wizard => vis_builder}/server/saved_objects/index.ts (58%) rename src/plugins/{wizard/server/saved_objects/wizard_app.ts => vis_builder/server/saved_objects/vis_builder_app.ts} (96%) rename src/plugins/{wizard/server/saved_objects/wizard_migration.test.ts => vis_builder/server/saved_objects/vis_builder_migration.test.ts} (97%) rename src/plugins/{wizard/server/saved_objects/wizard_migration.ts => vis_builder/server/saved_objects/vis_builder_migration.ts} (100%) rename src/plugins/{wizard => vis_builder}/server/types.ts (100%) rename src/plugins/{wizard => vis_builder}/tsconfig.json (98%) delete mode 100644 src/plugins/wizard/public/embeddable/index.ts diff --git a/src/plugins/saved_objects_management/public/plugin.ts b/src/plugins/saved_objects_management/public/plugin.ts index 8ddbd07e3095..dedf1495c284 100644 --- a/src/plugins/saved_objects_management/public/plugin.ts +++ b/src/plugins/saved_objects_management/public/plugin.ts @@ -31,7 +31,7 @@ import { i18n } from '@osd/i18n'; import { CoreSetup, CoreStart, Plugin } from 'src/core/public'; -import { WizardStart } from '../../wizard/public'; +import { WizardStart } from '../../vis_builder/public'; import { ManagementSetup } from '../../management/public'; import { DataPublicPluginStart } from '../../data/public'; import { DashboardStart } from '../../dashboard/public'; diff --git a/src/plugins/wizard/README.md b/src/plugins/vis_builder/README.md similarity index 100% rename from src/plugins/wizard/README.md rename to src/plugins/vis_builder/README.md diff --git a/src/plugins/wizard/common/index.ts b/src/plugins/vis_builder/common/index.ts similarity index 67% rename from src/plugins/wizard/common/index.ts rename to src/plugins/vis_builder/common/index.ts index b55653d41549..02371c9d59b7 100644 --- a/src/plugins/wizard/common/index.ts +++ b/src/plugins/vis_builder/common/index.ts @@ -8,4 +8,7 @@ export const PLUGIN_NAME = 'Wizard'; export const VISUALIZE_ID = 'visualize'; export const EDIT_PATH = '/edit'; -export { WizardSavedObjectAttributes, WIZARD_SAVED_OBJECT } from './wizard_saved_object_attributes'; +export { + WizardSavedObjectAttributes, + WIZARD_SAVED_OBJECT, +} from './vis_builder_saved_object_attributes'; diff --git a/src/plugins/wizard/common/wizard_saved_object_attributes.ts b/src/plugins/vis_builder/common/vis_builder_saved_object_attributes.ts similarity index 100% rename from src/plugins/wizard/common/wizard_saved_object_attributes.ts rename to src/plugins/vis_builder/common/vis_builder_saved_object_attributes.ts diff --git a/src/plugins/wizard/config.ts b/src/plugins/vis_builder/config.ts similarity index 100% rename from src/plugins/wizard/config.ts rename to src/plugins/vis_builder/config.ts diff --git a/src/plugins/wizard/opensearch_dashboards.json b/src/plugins/vis_builder/opensearch_dashboards.json similarity index 100% rename from src/plugins/wizard/opensearch_dashboards.json rename to src/plugins/vis_builder/opensearch_dashboards.json diff --git a/src/plugins/wizard/public/application/_util.scss b/src/plugins/vis_builder/public/application/_util.scss similarity index 100% rename from src/plugins/wizard/public/application/_util.scss rename to src/plugins/vis_builder/public/application/_util.scss diff --git a/src/plugins/wizard/public/application/_variables.scss b/src/plugins/vis_builder/public/application/_variables.scss similarity index 100% rename from src/plugins/wizard/public/application/_variables.scss rename to src/plugins/vis_builder/public/application/_variables.scss diff --git a/src/plugins/wizard/public/application/app.scss b/src/plugins/vis_builder/public/application/app.scss similarity index 100% rename from src/plugins/wizard/public/application/app.scss rename to src/plugins/vis_builder/public/application/app.scss diff --git a/src/plugins/wizard/public/application/app.tsx b/src/plugins/vis_builder/public/application/app.tsx similarity index 100% rename from src/plugins/wizard/public/application/app.tsx rename to src/plugins/vis_builder/public/application/app.tsx diff --git a/src/plugins/wizard/public/application/components/data_source_select.tsx b/src/plugins/vis_builder/public/application/components/data_source_select.tsx similarity index 100% rename from src/plugins/wizard/public/application/components/data_source_select.tsx rename to src/plugins/vis_builder/public/application/components/data_source_select.tsx diff --git a/src/plugins/wizard/public/application/components/data_tab/config_panel.scss b/src/plugins/vis_builder/public/application/components/data_tab/config_panel.scss similarity index 100% rename from src/plugins/wizard/public/application/components/data_tab/config_panel.scss rename to src/plugins/vis_builder/public/application/components/data_tab/config_panel.scss diff --git a/src/plugins/wizard/public/application/components/data_tab/config_panel.tsx b/src/plugins/vis_builder/public/application/components/data_tab/config_panel.tsx similarity index 100% rename from src/plugins/wizard/public/application/components/data_tab/config_panel.tsx rename to src/plugins/vis_builder/public/application/components/data_tab/config_panel.tsx diff --git a/src/plugins/wizard/public/application/components/data_tab/dropbox.scss b/src/plugins/vis_builder/public/application/components/data_tab/dropbox.scss similarity index 100% rename from src/plugins/wizard/public/application/components/data_tab/dropbox.scss rename to src/plugins/vis_builder/public/application/components/data_tab/dropbox.scss diff --git a/src/plugins/wizard/public/application/components/data_tab/dropbox.tsx b/src/plugins/vis_builder/public/application/components/data_tab/dropbox.tsx similarity index 100% rename from src/plugins/wizard/public/application/components/data_tab/dropbox.tsx rename to src/plugins/vis_builder/public/application/components/data_tab/dropbox.tsx diff --git a/src/plugins/wizard/public/application/components/data_tab/field_search.tsx b/src/plugins/vis_builder/public/application/components/data_tab/field_search.tsx similarity index 100% rename from src/plugins/wizard/public/application/components/data_tab/field_search.tsx rename to src/plugins/vis_builder/public/application/components/data_tab/field_search.tsx diff --git a/src/plugins/wizard/public/application/components/data_tab/field_selector.scss b/src/plugins/vis_builder/public/application/components/data_tab/field_selector.scss similarity index 100% rename from src/plugins/wizard/public/application/components/data_tab/field_selector.scss rename to src/plugins/vis_builder/public/application/components/data_tab/field_selector.scss diff --git a/src/plugins/wizard/public/application/components/data_tab/field_selector.tsx b/src/plugins/vis_builder/public/application/components/data_tab/field_selector.tsx similarity index 100% rename from src/plugins/wizard/public/application/components/data_tab/field_selector.tsx rename to src/plugins/vis_builder/public/application/components/data_tab/field_selector.tsx diff --git a/src/plugins/wizard/public/application/components/data_tab/field_selector_field.scss b/src/plugins/vis_builder/public/application/components/data_tab/field_selector_field.scss similarity index 100% rename from src/plugins/wizard/public/application/components/data_tab/field_selector_field.scss rename to src/plugins/vis_builder/public/application/components/data_tab/field_selector_field.scss diff --git a/src/plugins/wizard/public/application/components/data_tab/field_selector_field.tsx b/src/plugins/vis_builder/public/application/components/data_tab/field_selector_field.tsx similarity index 100% rename from src/plugins/wizard/public/application/components/data_tab/field_selector_field.tsx rename to src/plugins/vis_builder/public/application/components/data_tab/field_selector_field.tsx diff --git a/src/plugins/wizard/public/application/components/data_tab/index.scss b/src/plugins/vis_builder/public/application/components/data_tab/index.scss similarity index 100% rename from src/plugins/wizard/public/application/components/data_tab/index.scss rename to src/plugins/vis_builder/public/application/components/data_tab/index.scss diff --git a/src/plugins/wizard/public/application/components/data_tab/index.tsx b/src/plugins/vis_builder/public/application/components/data_tab/index.tsx similarity index 100% rename from src/plugins/wizard/public/application/components/data_tab/index.tsx rename to src/plugins/vis_builder/public/application/components/data_tab/index.tsx diff --git a/src/plugins/wizard/public/application/components/data_tab/schema_to_dropbox.tsx b/src/plugins/vis_builder/public/application/components/data_tab/schema_to_dropbox.tsx similarity index 100% rename from src/plugins/wizard/public/application/components/data_tab/schema_to_dropbox.tsx rename to src/plugins/vis_builder/public/application/components/data_tab/schema_to_dropbox.tsx diff --git a/src/plugins/wizard/public/application/components/data_tab/secondary_panel.tsx b/src/plugins/vis_builder/public/application/components/data_tab/secondary_panel.tsx similarity index 100% rename from src/plugins/wizard/public/application/components/data_tab/secondary_panel.tsx rename to src/plugins/vis_builder/public/application/components/data_tab/secondary_panel.tsx diff --git a/src/plugins/wizard/public/application/components/data_tab/title.tsx b/src/plugins/vis_builder/public/application/components/data_tab/title.tsx similarity index 100% rename from src/plugins/wizard/public/application/components/data_tab/title.tsx rename to src/plugins/vis_builder/public/application/components/data_tab/title.tsx diff --git a/src/plugins/wizard/public/application/components/data_tab/use/index.ts b/src/plugins/vis_builder/public/application/components/data_tab/use/index.ts similarity index 100% rename from src/plugins/wizard/public/application/components/data_tab/use/index.ts rename to src/plugins/vis_builder/public/application/components/data_tab/use/index.ts diff --git a/src/plugins/wizard/public/application/components/data_tab/use/use_dropbox.tsx b/src/plugins/vis_builder/public/application/components/data_tab/use/use_dropbox.tsx similarity index 100% rename from src/plugins/wizard/public/application/components/data_tab/use/use_dropbox.tsx rename to src/plugins/vis_builder/public/application/components/data_tab/use/use_dropbox.tsx diff --git a/src/plugins/wizard/public/application/components/data_tab/use/use_prefers_reduced_motion.ts b/src/plugins/vis_builder/public/application/components/data_tab/use/use_prefers_reduced_motion.ts similarity index 100% rename from src/plugins/wizard/public/application/components/data_tab/use/use_prefers_reduced_motion.ts rename to src/plugins/vis_builder/public/application/components/data_tab/use/use_prefers_reduced_motion.ts diff --git a/src/plugins/wizard/public/application/components/data_tab/utils/get_available_fields.ts b/src/plugins/vis_builder/public/application/components/data_tab/utils/get_available_fields.ts similarity index 100% rename from src/plugins/wizard/public/application/components/data_tab/utils/get_available_fields.ts rename to src/plugins/vis_builder/public/application/components/data_tab/utils/get_available_fields.ts diff --git a/src/plugins/wizard/public/application/components/data_tab/utils/index.ts b/src/plugins/vis_builder/public/application/components/data_tab/utils/index.ts similarity index 100% rename from src/plugins/wizard/public/application/components/data_tab/utils/index.ts rename to src/plugins/vis_builder/public/application/components/data_tab/utils/index.ts diff --git a/src/plugins/wizard/public/application/components/experimental_info.tsx b/src/plugins/vis_builder/public/application/components/experimental_info.tsx similarity index 100% rename from src/plugins/wizard/public/application/components/experimental_info.tsx rename to src/plugins/vis_builder/public/application/components/experimental_info.tsx diff --git a/src/plugins/wizard/public/application/components/left_nav.tsx b/src/plugins/vis_builder/public/application/components/left_nav.tsx similarity index 100% rename from src/plugins/wizard/public/application/components/left_nav.tsx rename to src/plugins/vis_builder/public/application/components/left_nav.tsx diff --git a/src/plugins/wizard/public/application/components/option.scss b/src/plugins/vis_builder/public/application/components/option.scss similarity index 100% rename from src/plugins/wizard/public/application/components/option.scss rename to src/plugins/vis_builder/public/application/components/option.scss diff --git a/src/plugins/wizard/public/application/components/option.tsx b/src/plugins/vis_builder/public/application/components/option.tsx similarity index 100% rename from src/plugins/wizard/public/application/components/option.tsx rename to src/plugins/vis_builder/public/application/components/option.tsx diff --git a/src/plugins/wizard/public/application/components/right_nav.tsx b/src/plugins/vis_builder/public/application/components/right_nav.tsx similarity index 100% rename from src/plugins/wizard/public/application/components/right_nav.tsx rename to src/plugins/vis_builder/public/application/components/right_nav.tsx diff --git a/src/plugins/wizard/public/application/components/searchable_dropdown.scss b/src/plugins/vis_builder/public/application/components/searchable_dropdown.scss similarity index 100% rename from src/plugins/wizard/public/application/components/searchable_dropdown.scss rename to src/plugins/vis_builder/public/application/components/searchable_dropdown.scss diff --git a/src/plugins/wizard/public/application/components/searchable_dropdown.tsx b/src/plugins/vis_builder/public/application/components/searchable_dropdown.tsx similarity index 100% rename from src/plugins/wizard/public/application/components/searchable_dropdown.tsx rename to src/plugins/vis_builder/public/application/components/searchable_dropdown.tsx diff --git a/src/plugins/wizard/public/application/components/side_nav.scss b/src/plugins/vis_builder/public/application/components/side_nav.scss similarity index 100% rename from src/plugins/wizard/public/application/components/side_nav.scss rename to src/plugins/vis_builder/public/application/components/side_nav.scss diff --git a/src/plugins/wizard/public/application/components/top_nav.scss b/src/plugins/vis_builder/public/application/components/top_nav.scss similarity index 100% rename from src/plugins/wizard/public/application/components/top_nav.scss rename to src/plugins/vis_builder/public/application/components/top_nav.scss diff --git a/src/plugins/wizard/public/application/components/top_nav.tsx b/src/plugins/vis_builder/public/application/components/top_nav.tsx similarity index 100% rename from src/plugins/wizard/public/application/components/top_nav.tsx rename to src/plugins/vis_builder/public/application/components/top_nav.tsx diff --git a/src/plugins/wizard/public/application/components/workspace.scss b/src/plugins/vis_builder/public/application/components/workspace.scss similarity index 100% rename from src/plugins/wizard/public/application/components/workspace.scss rename to src/plugins/vis_builder/public/application/components/workspace.scss diff --git a/src/plugins/wizard/public/application/components/workspace.tsx b/src/plugins/vis_builder/public/application/components/workspace.tsx similarity index 100% rename from src/plugins/wizard/public/application/components/workspace.tsx rename to src/plugins/vis_builder/public/application/components/workspace.tsx diff --git a/src/plugins/wizard/public/application/index.tsx b/src/plugins/vis_builder/public/application/index.tsx similarity index 100% rename from src/plugins/wizard/public/application/index.tsx rename to src/plugins/vis_builder/public/application/index.tsx diff --git a/src/plugins/wizard/public/application/utils/breadcrumbs.ts b/src/plugins/vis_builder/public/application/utils/breadcrumbs.ts similarity index 100% rename from src/plugins/wizard/public/application/utils/breadcrumbs.ts rename to src/plugins/vis_builder/public/application/utils/breadcrumbs.ts diff --git a/src/plugins/wizard/public/application/utils/drag_drop/drag_drop_context.tsx b/src/plugins/vis_builder/public/application/utils/drag_drop/drag_drop_context.tsx similarity index 100% rename from src/plugins/wizard/public/application/utils/drag_drop/drag_drop_context.tsx rename to src/plugins/vis_builder/public/application/utils/drag_drop/drag_drop_context.tsx diff --git a/src/plugins/wizard/public/application/utils/drag_drop/index.ts b/src/plugins/vis_builder/public/application/utils/drag_drop/index.ts similarity index 100% rename from src/plugins/wizard/public/application/utils/drag_drop/index.ts rename to src/plugins/vis_builder/public/application/utils/drag_drop/index.ts diff --git a/src/plugins/wizard/public/application/utils/drag_drop/types.ts b/src/plugins/vis_builder/public/application/utils/drag_drop/types.ts similarity index 100% rename from src/plugins/wizard/public/application/utils/drag_drop/types.ts rename to src/plugins/vis_builder/public/application/utils/drag_drop/types.ts diff --git a/src/plugins/wizard/public/application/utils/get_saved_wizard_vis.ts b/src/plugins/vis_builder/public/application/utils/get_saved_vis_builder_vis.ts similarity index 100% rename from src/plugins/wizard/public/application/utils/get_saved_wizard_vis.ts rename to src/plugins/vis_builder/public/application/utils/get_saved_vis_builder_vis.ts diff --git a/src/plugins/vis_builder/public/application/utils/get_top_nav_config.test.tsx b/src/plugins/vis_builder/public/application/utils/get_top_nav_config.test.tsx new file mode 100644 index 000000000000..3928858d08e8 --- /dev/null +++ b/src/plugins/vis_builder/public/application/utils/get_top_nav_config.test.tsx @@ -0,0 +1,157 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ + +import { WizardServices } from '../../types'; +import { getOnSave } from './get_top_nav_config'; +import { createWizardServicesMock } from './mocks'; + +describe('getOnSave', () => { + let savedWizardVis: any; + let originatingApp: string | undefined; + let visualizationIdFromUrl: string; + let dispatch: any; + let mockServices: jest.Mocked; + let onSaveProps: { + newTitle: string; + newCopyOnSave: boolean; + isTitleDuplicateConfirmed: boolean; + onTitleDuplicate: any; + newDescription: string; + returnToOrigin: boolean; + }; + + beforeEach(() => { + savedWizardVis = { + id: '1', + title: 'save wizard wiz title', + description: '', + visualizationState: '', + styleState: '', + version: 0, + copyOnSave: true, + searchSourceFields: {}, + save: jest.fn().mockReturnValue('1'), + }; + originatingApp = ''; + visualizationIdFromUrl = ''; + dispatch = jest.fn(); + mockServices = createWizardServicesMock(); + + onSaveProps = { + newTitle: 'new title', + newCopyOnSave: false, + isTitleDuplicateConfirmed: false, + onTitleDuplicate: jest.fn(), + newDescription: 'new description', + returnToOrigin: true, + }; + }); + + test('return undefined when savedWizardVis is null', async () => { + savedWizardVis = null; + const onSave = getOnSave( + savedWizardVis, + originatingApp, + visualizationIdFromUrl, + dispatch, + mockServices + ); + const onSaveResult = await onSave(onSaveProps); + + expect(onSaveResult).toBeUndefined(); + }); + + test('savedWizardVis get saved correctly', async () => { + const onSave = getOnSave( + savedWizardVis, + originatingApp, + visualizationIdFromUrl, + dispatch, + mockServices + ); + const onSaveReturn = await onSave(onSaveProps); + expect(savedWizardVis).toMatchInlineSnapshot(` + Object { + "copyOnSave": false, + "description": "new description", + "id": "1", + "save": [MockFunction] { + "calls": Array [ + Array [ + Object { + "confirmOverwrite": false, + "isTitleDuplicateConfirmed": false, + "onTitleDuplicate": [MockFunction], + "returnToOrigin": true, + }, + ], + ], + "results": Array [ + Object { + "type": "return", + "value": "1", + }, + ], + }, + "searchSourceFields": Object {}, + "styleState": "", + "title": "new title", + "version": 0, + "visualizationState": "", + } + `); + expect(onSaveReturn?.id).toBe('1'); + }); + + test('savedWizardVis does not change title with a null id', async () => { + savedWizardVis.save = jest.fn().mockReturnValue(null); + const onSave = getOnSave( + savedWizardVis, + originatingApp, + visualizationIdFromUrl, + dispatch, + mockServices + ); + const onSaveResult = await onSave(onSaveProps); + expect(savedWizardVis.title).toBe('save wizard wiz title'); + expect(onSaveResult?.id).toBeNull(); + }); + + test('create a new wizard from dashboard', async () => { + savedWizardVis.id = undefined; + savedWizardVis.save = jest.fn().mockReturnValue('2'); + originatingApp = 'dashboard'; + onSaveProps.returnToOrigin = true; + + const onSave = getOnSave( + savedWizardVis, + originatingApp, + visualizationIdFromUrl, + dispatch, + mockServices + ); + const onSaveResult = await onSave(onSaveProps); + expect(onSaveResult?.id).toBe('2'); + expect(dispatch).toBeCalledTimes(0); + }); + + test('edit an exising wizard from dashboard', async () => { + savedWizardVis.copyOnSave = false; + onSaveProps.newDescription = 'new description after editing'; + originatingApp = 'dashboard'; + onSaveProps.returnToOrigin = true; + const onSave = getOnSave( + savedWizardVis, + originatingApp, + visualizationIdFromUrl, + dispatch, + mockServices + ); + const onSaveResult = await onSave(onSaveProps); + expect(onSaveResult?.id).toBe('1'); + expect(mockServices.application.navigateToApp).toBeCalledTimes(1); + expect(savedWizardVis.description).toBe('new description after editing'); + }); +}); diff --git a/src/plugins/wizard/public/application/utils/get_top_nav_config.tsx b/src/plugins/vis_builder/public/application/utils/get_top_nav_config.tsx similarity index 100% rename from src/plugins/wizard/public/application/utils/get_top_nav_config.tsx rename to src/plugins/vis_builder/public/application/utils/get_top_nav_config.tsx diff --git a/src/plugins/vis_builder/public/application/utils/mocks.ts b/src/plugins/vis_builder/public/application/utils/mocks.ts new file mode 100644 index 000000000000..3898b3121164 --- /dev/null +++ b/src/plugins/vis_builder/public/application/utils/mocks.ts @@ -0,0 +1,45 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ + +import { ScopedHistory } from '../../../../../core/public'; +import { coreMock, scopedHistoryMock } from '../../../../../core/public/mocks'; +import { dataPluginMock } from '../../../../data/public/mocks'; +import { embeddablePluginMock } from '../../../../embeddable/public/mocks'; +import { expressionsPluginMock } from '../../../../expressions/public/mocks'; +import { navigationPluginMock } from '../../../../navigation/public/mocks'; +import { WizardServices } from '../../types'; + +export const createWizardServicesMock = () => { + const coreStartMock = coreMock.createStart(); + const toastNotifications = coreStartMock.notifications.toasts; + const applicationMock = coreStartMock.application; + const i18nContextMock = coreStartMock.i18n.Context; + const indexPatternMock = dataPluginMock.createStartContract().indexPatterns; + const embeddableMock = embeddablePluginMock.createStartContract(); + const navigationMock = navigationPluginMock.createStartContract(); + const expressionMock = expressionsPluginMock.createStartContract(); + + const wizardServicesMock = { + ...coreStartMock, + navigation: navigationMock, + expression: expressionMock, + savedWizardLoader: { + get: jest.fn(), + } as any, + setHeaderActionMenu: () => {}, + applicationMock, + history: { + push: jest.fn(), + location: { pathname: '' }, + }, + toastNotifications, + i18n: i18nContextMock, + data: indexPatternMock, + embeddable: embeddableMock, + scopedHistory: (scopedHistoryMock.create() as unknown) as ScopedHistory, + }; + + return (wizardServicesMock as unknown) as jest.Mocked; +}; diff --git a/src/plugins/wizard/public/application/utils/schema.json b/src/plugins/vis_builder/public/application/utils/schema.json similarity index 100% rename from src/plugins/wizard/public/application/utils/schema.json rename to src/plugins/vis_builder/public/application/utils/schema.json diff --git a/src/plugins/wizard/public/application/utils/state_management/hooks.ts b/src/plugins/vis_builder/public/application/utils/state_management/hooks.ts similarity index 100% rename from src/plugins/wizard/public/application/utils/state_management/hooks.ts rename to src/plugins/vis_builder/public/application/utils/state_management/hooks.ts diff --git a/src/plugins/wizard/public/application/utils/state_management/index.ts b/src/plugins/vis_builder/public/application/utils/state_management/index.ts similarity index 100% rename from src/plugins/wizard/public/application/utils/state_management/index.ts rename to src/plugins/vis_builder/public/application/utils/state_management/index.ts diff --git a/src/plugins/wizard/public/application/utils/state_management/metadata_slice.ts b/src/plugins/vis_builder/public/application/utils/state_management/metadata_slice.ts similarity index 100% rename from src/plugins/wizard/public/application/utils/state_management/metadata_slice.ts rename to src/plugins/vis_builder/public/application/utils/state_management/metadata_slice.ts diff --git a/src/plugins/wizard/public/application/utils/state_management/preload.ts b/src/plugins/vis_builder/public/application/utils/state_management/preload.ts similarity index 100% rename from src/plugins/wizard/public/application/utils/state_management/preload.ts rename to src/plugins/vis_builder/public/application/utils/state_management/preload.ts diff --git a/src/plugins/wizard/public/application/utils/state_management/shared_actions.ts b/src/plugins/vis_builder/public/application/utils/state_management/shared_actions.ts similarity index 100% rename from src/plugins/wizard/public/application/utils/state_management/shared_actions.ts rename to src/plugins/vis_builder/public/application/utils/state_management/shared_actions.ts diff --git a/src/plugins/wizard/public/application/utils/state_management/store.ts b/src/plugins/vis_builder/public/application/utils/state_management/store.ts similarity index 100% rename from src/plugins/wizard/public/application/utils/state_management/store.ts rename to src/plugins/vis_builder/public/application/utils/state_management/store.ts diff --git a/src/plugins/wizard/public/application/utils/state_management/style_slice.ts b/src/plugins/vis_builder/public/application/utils/state_management/style_slice.ts similarity index 100% rename from src/plugins/wizard/public/application/utils/state_management/style_slice.ts rename to src/plugins/vis_builder/public/application/utils/state_management/style_slice.ts diff --git a/src/plugins/wizard/public/application/utils/state_management/visualization_slice.ts b/src/plugins/vis_builder/public/application/utils/state_management/visualization_slice.ts similarity index 100% rename from src/plugins/wizard/public/application/utils/state_management/visualization_slice.ts rename to src/plugins/vis_builder/public/application/utils/state_management/visualization_slice.ts diff --git a/src/plugins/wizard/public/application/utils/use/index.ts b/src/plugins/vis_builder/public/application/utils/use/index.ts similarity index 75% rename from src/plugins/wizard/public/application/utils/use/index.ts rename to src/plugins/vis_builder/public/application/utils/use/index.ts index e8d1087ce0a0..673c343ece66 100644 --- a/src/plugins/wizard/public/application/utils/use/index.ts +++ b/src/plugins/vis_builder/public/application/utils/use/index.ts @@ -5,4 +5,4 @@ export { useVisualizationType } from './use_visualization_type'; export { useIndexPatterns } from './use_index_pattern'; -export { useSavedWizardVis } from './use_saved_wizard_vis'; +export { useSavedWizardVis } from './use_saved_vis_builder_vis'; diff --git a/src/plugins/wizard/public/application/utils/use/use_can_save.ts b/src/plugins/vis_builder/public/application/utils/use/use_can_save.ts similarity index 100% rename from src/plugins/wizard/public/application/utils/use/use_can_save.ts rename to src/plugins/vis_builder/public/application/utils/use/use_can_save.ts diff --git a/src/plugins/wizard/public/application/utils/use/use_index_pattern.tsx b/src/plugins/vis_builder/public/application/utils/use/use_index_pattern.tsx similarity index 100% rename from src/plugins/wizard/public/application/utils/use/use_index_pattern.tsx rename to src/plugins/vis_builder/public/application/utils/use/use_index_pattern.tsx diff --git a/src/plugins/wizard/public/application/utils/use/use_saved_wizard_vis.ts b/src/plugins/vis_builder/public/application/utils/use/use_saved_vis_builder_vis.ts similarity index 96% rename from src/plugins/wizard/public/application/utils/use/use_saved_wizard_vis.ts rename to src/plugins/vis_builder/public/application/utils/use/use_saved_vis_builder_vis.ts index 36ed26b15d04..3c515a0949a9 100644 --- a/src/plugins/wizard/public/application/utils/use/use_saved_wizard_vis.ts +++ b/src/plugins/vis_builder/public/application/utils/use/use_saved_vis_builder_vis.ts @@ -15,7 +15,7 @@ import { EDIT_PATH, PLUGIN_ID } from '../../../../common'; import { WizardServices } from '../../../types'; import { MetricOptionsDefaults } from '../../../visualizations/metric/metric_viz_type'; import { getCreateBreadcrumbs, getEditBreadcrumbs } from '../breadcrumbs'; -import { getSavedWizardVis } from '../get_saved_wizard_vis'; +import { getSavedWizardVis } from '../get_saved_vis_builder_vis'; import { useTypedDispatch, setStyleState, @@ -24,7 +24,7 @@ import { } from '../state_management'; import { useOpenSearchDashboards } from '../../../../../opensearch_dashboards_react/public'; import { setEditorState } from '../state_management/metadata_slice'; -import { validateWizardState } from '../wizard_state_validation'; +import { validateWizardState } from '../vis_builder_state_validation'; // This function can be used when instantiating a saved vis or creating a new one // using url parameters, embedding and destroying it in DOM diff --git a/src/plugins/wizard/public/application/utils/use/use_visualization_type.ts b/src/plugins/vis_builder/public/application/utils/use/use_visualization_type.ts similarity index 100% rename from src/plugins/wizard/public/application/utils/use/use_visualization_type.ts rename to src/plugins/vis_builder/public/application/utils/use/use_visualization_type.ts diff --git a/src/plugins/wizard/public/application/utils/validate_schema_state.ts b/src/plugins/vis_builder/public/application/utils/validate_schema_state.ts similarity index 100% rename from src/plugins/wizard/public/application/utils/validate_schema_state.ts rename to src/plugins/vis_builder/public/application/utils/validate_schema_state.ts diff --git a/src/plugins/wizard/public/application/utils/wizard_state_validation.test.ts b/src/plugins/vis_builder/public/application/utils/vis_builder_state_validation.test.ts similarity index 94% rename from src/plugins/wizard/public/application/utils/wizard_state_validation.test.ts rename to src/plugins/vis_builder/public/application/utils/vis_builder_state_validation.test.ts index 6b02d9707438..9568079b4af7 100644 --- a/src/plugins/wizard/public/application/utils/wizard_state_validation.test.ts +++ b/src/plugins/vis_builder/public/application/utils/vis_builder_state_validation.test.ts @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -import { validateWizardState } from './wizard_state_validation'; +import { validateWizardState } from './vis_builder_state_validation'; describe('wizard state validation', () => { const validStyleState = { diff --git a/src/plugins/wizard/public/application/utils/wizard_state_validation.ts b/src/plugins/vis_builder/public/application/utils/vis_builder_state_validation.ts similarity index 100% rename from src/plugins/wizard/public/application/utils/wizard_state_validation.ts rename to src/plugins/vis_builder/public/application/utils/vis_builder_state_validation.ts diff --git a/src/plugins/wizard/public/assets/fields_bg.svg b/src/plugins/vis_builder/public/assets/fields_bg.svg similarity index 100% rename from src/plugins/wizard/public/assets/fields_bg.svg rename to src/plugins/vis_builder/public/assets/fields_bg.svg diff --git a/src/plugins/wizard/public/assets/hand_field.svg b/src/plugins/vis_builder/public/assets/hand_field.svg similarity index 100% rename from src/plugins/wizard/public/assets/hand_field.svg rename to src/plugins/vis_builder/public/assets/hand_field.svg diff --git a/src/plugins/wizard/public/assets/wizard_icon.svg b/src/plugins/vis_builder/public/assets/wizard_icon.svg similarity index 100% rename from src/plugins/wizard/public/assets/wizard_icon.svg rename to src/plugins/vis_builder/public/assets/wizard_icon.svg diff --git a/src/plugins/wizard/public/assets/wizard_icon_secondary_fill.svg b/src/plugins/vis_builder/public/assets/wizard_icon_secondary_fill.svg similarity index 100% rename from src/plugins/wizard/public/assets/wizard_icon_secondary_fill.svg rename to src/plugins/vis_builder/public/assets/wizard_icon_secondary_fill.svg diff --git a/src/plugins/wizard/public/embeddable/disabled_embeddable.tsx b/src/plugins/vis_builder/public/embeddable/disabled_embeddable.tsx similarity index 92% rename from src/plugins/wizard/public/embeddable/disabled_embeddable.tsx rename to src/plugins/vis_builder/public/embeddable/disabled_embeddable.tsx index 5f55859156d0..4a17196a0604 100644 --- a/src/plugins/wizard/public/embeddable/disabled_embeddable.tsx +++ b/src/plugins/vis_builder/public/embeddable/disabled_embeddable.tsx @@ -8,7 +8,7 @@ import ReactDOM from 'react-dom'; import { Embeddable, EmbeddableOutput } from '../../../embeddable/public'; import { DisabledVisualization } from './disabled_visualization'; -import { WizardInput, WIZARD_EMBEDDABLE } from './wizard_embeddable'; +import { WizardInput, WIZARD_EMBEDDABLE } from './vis_builder_embeddable'; export class DisabledEmbeddable extends Embeddable { private domNode?: HTMLElement; diff --git a/src/plugins/wizard/public/embeddable/disabled_visualization.scss b/src/plugins/vis_builder/public/embeddable/disabled_visualization.scss similarity index 100% rename from src/plugins/wizard/public/embeddable/disabled_visualization.scss rename to src/plugins/vis_builder/public/embeddable/disabled_visualization.scss diff --git a/src/plugins/wizard/public/embeddable/disabled_visualization.tsx b/src/plugins/vis_builder/public/embeddable/disabled_visualization.tsx similarity index 100% rename from src/plugins/wizard/public/embeddable/disabled_visualization.tsx rename to src/plugins/vis_builder/public/embeddable/disabled_visualization.tsx diff --git a/src/plugins/vis_builder/public/embeddable/index.ts b/src/plugins/vis_builder/public/embeddable/index.ts new file mode 100644 index 000000000000..8b2bd225b03c --- /dev/null +++ b/src/plugins/vis_builder/public/embeddable/index.ts @@ -0,0 +1,7 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ + +export * from './vis_builder_embeddable'; +export * from './vis_builder_embeddable_factory'; diff --git a/src/plugins/wizard/public/embeddable/wizard_component.tsx b/src/plugins/vis_builder/public/embeddable/vis_builder_component.tsx similarity index 92% rename from src/plugins/wizard/public/embeddable/wizard_component.tsx rename to src/plugins/vis_builder/public/embeddable/vis_builder_component.tsx index 675baf28796a..5b2d00b6fb19 100644 --- a/src/plugins/wizard/public/embeddable/wizard_component.tsx +++ b/src/plugins/vis_builder/public/embeddable/vis_builder_component.tsx @@ -6,7 +6,7 @@ import React from 'react'; import { SavedObjectEmbeddableInput, withEmbeddableSubscription } from '../../../embeddable/public'; -import { WizardEmbeddable, WizardOutput } from './wizard_embeddable'; +import { WizardEmbeddable, WizardOutput } from './vis_builder_embeddable'; import { getReactExpressionRenderer } from '../plugin_services'; interface Props { diff --git a/src/plugins/wizard/public/embeddable/wizard_embeddable.tsx b/src/plugins/vis_builder/public/embeddable/vis_builder_embeddable.tsx similarity index 100% rename from src/plugins/wizard/public/embeddable/wizard_embeddable.tsx rename to src/plugins/vis_builder/public/embeddable/vis_builder_embeddable.tsx diff --git a/src/plugins/wizard/public/embeddable/wizard_embeddable_factory.tsx b/src/plugins/vis_builder/public/embeddable/vis_builder_embeddable_factory.tsx similarity index 99% rename from src/plugins/wizard/public/embeddable/wizard_embeddable_factory.tsx rename to src/plugins/vis_builder/public/embeddable/vis_builder_embeddable_factory.tsx index 8a18472f6b44..c200efee0d2d 100644 --- a/src/plugins/wizard/public/embeddable/wizard_embeddable_factory.tsx +++ b/src/plugins/vis_builder/public/embeddable/vis_builder_embeddable_factory.tsx @@ -21,7 +21,7 @@ import { WIZARD_SAVED_OBJECT, } from '../../common'; import { DisabledEmbeddable } from './disabled_embeddable'; -import { WizardEmbeddable, WizardOutput, WIZARD_EMBEDDABLE } from './wizard_embeddable'; +import { WizardEmbeddable, WizardOutput, WIZARD_EMBEDDABLE } from './vis_builder_embeddable'; import wizardIcon from '../assets/wizard_icon.svg'; import { getHttp, getSavedWizardLoader, getTimeFilter, getUISettings } from '../plugin_services'; diff --git a/src/plugins/wizard/public/index.ts b/src/plugins/vis_builder/public/index.ts similarity index 100% rename from src/plugins/wizard/public/index.ts rename to src/plugins/vis_builder/public/index.ts diff --git a/src/plugins/wizard/public/plugin.test.ts b/src/plugins/vis_builder/public/plugin.test.ts similarity index 78% rename from src/plugins/wizard/public/plugin.test.ts rename to src/plugins/vis_builder/public/plugin.test.ts index 6dafa46c86ff..6801a6d69308 100644 --- a/src/plugins/wizard/public/plugin.test.ts +++ b/src/plugins/vis_builder/public/plugin.test.ts @@ -4,11 +4,11 @@ */ import { coreMock, savedObjectsServiceMock } from '../../../core/public/mocks'; -import { dashboardPluginMock } from '../../../plugins/dashboard/public/mocks'; -import { dataPluginMock } from '../../../plugins/data/public/mocks'; -import { embeddablePluginMock } from '../../../plugins/embeddable/public/mocks'; -import { navigationPluginMock } from '../../../plugins/navigation/public/mocks'; -import { visualizationsPluginMock } from '../../../plugins/visualizations/public/mocks'; +import { dashboardPluginMock } from '../../dashboard/public/mocks'; +import { dataPluginMock } from '../../data/public/mocks'; +import { embeddablePluginMock } from '../../embeddable/public/mocks'; +import { navigationPluginMock } from '../../navigation/public/mocks'; +import { visualizationsPluginMock } from '../../visualizations/public/mocks'; import { PLUGIN_ID, PLUGIN_NAME } from '../common'; import { WizardPlugin } from './plugin'; diff --git a/src/plugins/wizard/public/plugin.ts b/src/plugins/vis_builder/public/plugin.ts similarity index 100% rename from src/plugins/wizard/public/plugin.ts rename to src/plugins/vis_builder/public/plugin.ts diff --git a/src/plugins/wizard/public/plugin_services.ts b/src/plugins/vis_builder/public/plugin_services.ts similarity index 100% rename from src/plugins/wizard/public/plugin_services.ts rename to src/plugins/vis_builder/public/plugin_services.ts diff --git a/src/plugins/wizard/public/saved_visualizations/_saved_vis.ts b/src/plugins/vis_builder/public/saved_visualizations/_saved_vis.ts similarity index 100% rename from src/plugins/wizard/public/saved_visualizations/_saved_vis.ts rename to src/plugins/vis_builder/public/saved_visualizations/_saved_vis.ts diff --git a/src/plugins/wizard/public/saved_visualizations/index.ts b/src/plugins/vis_builder/public/saved_visualizations/index.ts similarity index 100% rename from src/plugins/wizard/public/saved_visualizations/index.ts rename to src/plugins/vis_builder/public/saved_visualizations/index.ts diff --git a/src/plugins/wizard/public/saved_visualizations/saved_visualization_references.ts b/src/plugins/vis_builder/public/saved_visualizations/saved_visualization_references.ts similarity index 100% rename from src/plugins/wizard/public/saved_visualizations/saved_visualization_references.ts rename to src/plugins/vis_builder/public/saved_visualizations/saved_visualization_references.ts diff --git a/src/plugins/wizard/public/saved_visualizations/saved_visualizations.ts b/src/plugins/vis_builder/public/saved_visualizations/saved_visualizations.ts similarity index 100% rename from src/plugins/wizard/public/saved_visualizations/saved_visualizations.ts rename to src/plugins/vis_builder/public/saved_visualizations/saved_visualizations.ts diff --git a/src/plugins/wizard/public/saved_visualizations/transforms.test.ts b/src/plugins/vis_builder/public/saved_visualizations/transforms.test.ts similarity index 96% rename from src/plugins/wizard/public/saved_visualizations/transforms.test.ts rename to src/plugins/vis_builder/public/saved_visualizations/transforms.test.ts index df2fd7f1d197..4154129890d6 100644 --- a/src/plugins/wizard/public/saved_visualizations/transforms.test.ts +++ b/src/plugins/vis_builder/public/saved_visualizations/transforms.test.ts @@ -4,7 +4,7 @@ */ import { coreMock } from '../../../../core/public/mocks'; -import { getStubIndexPattern } from '../../../../plugins/data/public/test_utils'; +import { getStubIndexPattern } from '../../../data/public/test_utils'; import { IndexPattern } from '../../../data/public'; import { RootState } from '../application/utils/state_management'; import { WizardVisSavedObject } from '../types'; diff --git a/src/plugins/wizard/public/saved_visualizations/transforms.ts b/src/plugins/vis_builder/public/saved_visualizations/transforms.ts similarity index 100% rename from src/plugins/wizard/public/saved_visualizations/transforms.ts rename to src/plugins/vis_builder/public/saved_visualizations/transforms.ts diff --git a/src/plugins/wizard/public/services/type_service/index.ts b/src/plugins/vis_builder/public/services/type_service/index.ts similarity index 100% rename from src/plugins/wizard/public/services/type_service/index.ts rename to src/plugins/vis_builder/public/services/type_service/index.ts diff --git a/src/plugins/wizard/public/services/type_service/type_service.test.ts b/src/plugins/vis_builder/public/services/type_service/type_service.test.ts similarity index 100% rename from src/plugins/wizard/public/services/type_service/type_service.test.ts rename to src/plugins/vis_builder/public/services/type_service/type_service.test.ts diff --git a/src/plugins/wizard/public/services/type_service/type_service.ts b/src/plugins/vis_builder/public/services/type_service/type_service.ts similarity index 100% rename from src/plugins/wizard/public/services/type_service/type_service.ts rename to src/plugins/vis_builder/public/services/type_service/type_service.ts diff --git a/src/plugins/wizard/public/services/type_service/types.ts b/src/plugins/vis_builder/public/services/type_service/types.ts similarity index 100% rename from src/plugins/wizard/public/services/type_service/types.ts rename to src/plugins/vis_builder/public/services/type_service/types.ts diff --git a/src/plugins/wizard/public/services/type_service/visualization_type.tsx b/src/plugins/vis_builder/public/services/type_service/visualization_type.tsx similarity index 100% rename from src/plugins/wizard/public/services/type_service/visualization_type.tsx rename to src/plugins/vis_builder/public/services/type_service/visualization_type.tsx diff --git a/src/plugins/wizard/public/types.ts b/src/plugins/vis_builder/public/types.ts similarity index 100% rename from src/plugins/wizard/public/types.ts rename to src/plugins/vis_builder/public/types.ts diff --git a/src/plugins/wizard/public/visualizations/common/expression_helpers.ts b/src/plugins/vis_builder/public/visualizations/common/expression_helpers.ts similarity index 100% rename from src/plugins/wizard/public/visualizations/common/expression_helpers.ts rename to src/plugins/vis_builder/public/visualizations/common/expression_helpers.ts diff --git a/src/plugins/wizard/public/visualizations/index.ts b/src/plugins/vis_builder/public/visualizations/index.ts similarity index 100% rename from src/plugins/wizard/public/visualizations/index.ts rename to src/plugins/vis_builder/public/visualizations/index.ts diff --git a/src/plugins/wizard/public/visualizations/metric/components/metric_viz_options.tsx b/src/plugins/vis_builder/public/visualizations/metric/components/metric_viz_options.tsx similarity index 100% rename from src/plugins/wizard/public/visualizations/metric/components/metric_viz_options.tsx rename to src/plugins/vis_builder/public/visualizations/metric/components/metric_viz_options.tsx diff --git a/src/plugins/wizard/public/visualizations/metric/index.ts b/src/plugins/vis_builder/public/visualizations/metric/index.ts similarity index 100% rename from src/plugins/wizard/public/visualizations/metric/index.ts rename to src/plugins/vis_builder/public/visualizations/metric/index.ts diff --git a/src/plugins/wizard/public/visualizations/metric/metric_viz_type.ts b/src/plugins/vis_builder/public/visualizations/metric/metric_viz_type.ts similarity index 100% rename from src/plugins/wizard/public/visualizations/metric/metric_viz_type.ts rename to src/plugins/vis_builder/public/visualizations/metric/metric_viz_type.ts diff --git a/src/plugins/wizard/public/visualizations/metric/to_expression.ts b/src/plugins/vis_builder/public/visualizations/metric/to_expression.ts similarity index 100% rename from src/plugins/wizard/public/visualizations/metric/to_expression.ts rename to src/plugins/vis_builder/public/visualizations/metric/to_expression.ts diff --git a/src/plugins/wizard/public/visualizations/vislib/area/area_vis_type.ts b/src/plugins/vis_builder/public/visualizations/vislib/area/area_vis_type.ts similarity index 100% rename from src/plugins/wizard/public/visualizations/vislib/area/area_vis_type.ts rename to src/plugins/vis_builder/public/visualizations/vislib/area/area_vis_type.ts diff --git a/src/plugins/wizard/public/visualizations/vislib/area/components/area_vis_options.tsx b/src/plugins/vis_builder/public/visualizations/vislib/area/components/area_vis_options.tsx similarity index 100% rename from src/plugins/wizard/public/visualizations/vislib/area/components/area_vis_options.tsx rename to src/plugins/vis_builder/public/visualizations/vislib/area/components/area_vis_options.tsx diff --git a/src/plugins/wizard/public/visualizations/vislib/area/index.ts b/src/plugins/vis_builder/public/visualizations/vislib/area/index.ts similarity index 100% rename from src/plugins/wizard/public/visualizations/vislib/area/index.ts rename to src/plugins/vis_builder/public/visualizations/vislib/area/index.ts diff --git a/src/plugins/wizard/public/visualizations/vislib/area/to_expression.ts b/src/plugins/vis_builder/public/visualizations/vislib/area/to_expression.ts similarity index 100% rename from src/plugins/wizard/public/visualizations/vislib/area/to_expression.ts rename to src/plugins/vis_builder/public/visualizations/vislib/area/to_expression.ts diff --git a/src/plugins/wizard/public/visualizations/vislib/common/basic_vis_options.tsx b/src/plugins/vis_builder/public/visualizations/vislib/common/basic_vis_options.tsx similarity index 100% rename from src/plugins/wizard/public/visualizations/vislib/common/basic_vis_options.tsx rename to src/plugins/vis_builder/public/visualizations/vislib/common/basic_vis_options.tsx diff --git a/src/plugins/wizard/public/visualizations/vislib/common/create_vis.ts b/src/plugins/vis_builder/public/visualizations/vislib/common/create_vis.ts similarity index 100% rename from src/plugins/wizard/public/visualizations/vislib/common/create_vis.ts rename to src/plugins/vis_builder/public/visualizations/vislib/common/create_vis.ts diff --git a/src/plugins/wizard/public/visualizations/vislib/common/get_pipeline_params.ts b/src/plugins/vis_builder/public/visualizations/vislib/common/get_pipeline_params.ts similarity index 100% rename from src/plugins/wizard/public/visualizations/vislib/common/get_pipeline_params.ts rename to src/plugins/vis_builder/public/visualizations/vislib/common/get_pipeline_params.ts diff --git a/src/plugins/wizard/public/visualizations/vislib/common/get_value_axes.ts b/src/plugins/vis_builder/public/visualizations/vislib/common/get_value_axes.ts similarity index 100% rename from src/plugins/wizard/public/visualizations/vislib/common/get_value_axes.ts rename to src/plugins/vis_builder/public/visualizations/vislib/common/get_value_axes.ts diff --git a/src/plugins/wizard/public/visualizations/vislib/common/index.ts b/src/plugins/vis_builder/public/visualizations/vislib/common/index.ts similarity index 100% rename from src/plugins/wizard/public/visualizations/vislib/common/index.ts rename to src/plugins/vis_builder/public/visualizations/vislib/common/index.ts diff --git a/src/plugins/wizard/public/visualizations/vislib/common/types.ts b/src/plugins/vis_builder/public/visualizations/vislib/common/types.ts similarity index 100% rename from src/plugins/wizard/public/visualizations/vislib/common/types.ts rename to src/plugins/vis_builder/public/visualizations/vislib/common/types.ts diff --git a/src/plugins/wizard/public/visualizations/vislib/histogram/components/histogram_vis_options.tsx b/src/plugins/vis_builder/public/visualizations/vislib/histogram/components/histogram_vis_options.tsx similarity index 100% rename from src/plugins/wizard/public/visualizations/vislib/histogram/components/histogram_vis_options.tsx rename to src/plugins/vis_builder/public/visualizations/vislib/histogram/components/histogram_vis_options.tsx diff --git a/src/plugins/wizard/public/visualizations/vislib/histogram/histogram_vis_type.ts b/src/plugins/vis_builder/public/visualizations/vislib/histogram/histogram_vis_type.ts similarity index 100% rename from src/plugins/wizard/public/visualizations/vislib/histogram/histogram_vis_type.ts rename to src/plugins/vis_builder/public/visualizations/vislib/histogram/histogram_vis_type.ts diff --git a/src/plugins/wizard/public/visualizations/vislib/histogram/index.ts b/src/plugins/vis_builder/public/visualizations/vislib/histogram/index.ts similarity index 100% rename from src/plugins/wizard/public/visualizations/vislib/histogram/index.ts rename to src/plugins/vis_builder/public/visualizations/vislib/histogram/index.ts diff --git a/src/plugins/wizard/public/visualizations/vislib/histogram/to_expression.ts b/src/plugins/vis_builder/public/visualizations/vislib/histogram/to_expression.ts similarity index 100% rename from src/plugins/wizard/public/visualizations/vislib/histogram/to_expression.ts rename to src/plugins/vis_builder/public/visualizations/vislib/histogram/to_expression.ts diff --git a/src/plugins/wizard/public/visualizations/vislib/index.ts b/src/plugins/vis_builder/public/visualizations/vislib/index.ts similarity index 100% rename from src/plugins/wizard/public/visualizations/vislib/index.ts rename to src/plugins/vis_builder/public/visualizations/vislib/index.ts diff --git a/src/plugins/wizard/public/visualizations/vislib/line/components/line_vis_options.tsx b/src/plugins/vis_builder/public/visualizations/vislib/line/components/line_vis_options.tsx similarity index 100% rename from src/plugins/wizard/public/visualizations/vislib/line/components/line_vis_options.tsx rename to src/plugins/vis_builder/public/visualizations/vislib/line/components/line_vis_options.tsx diff --git a/src/plugins/wizard/public/visualizations/vislib/line/index.ts b/src/plugins/vis_builder/public/visualizations/vislib/line/index.ts similarity index 100% rename from src/plugins/wizard/public/visualizations/vislib/line/index.ts rename to src/plugins/vis_builder/public/visualizations/vislib/line/index.ts diff --git a/src/plugins/wizard/public/visualizations/vislib/line/line_vis_type.ts b/src/plugins/vis_builder/public/visualizations/vislib/line/line_vis_type.ts similarity index 100% rename from src/plugins/wizard/public/visualizations/vislib/line/line_vis_type.ts rename to src/plugins/vis_builder/public/visualizations/vislib/line/line_vis_type.ts diff --git a/src/plugins/wizard/public/visualizations/vislib/line/to_expression.ts b/src/plugins/vis_builder/public/visualizations/vislib/line/to_expression.ts similarity index 100% rename from src/plugins/wizard/public/visualizations/vislib/line/to_expression.ts rename to src/plugins/vis_builder/public/visualizations/vislib/line/to_expression.ts diff --git a/src/plugins/wizard/server/capabilities_provider.ts b/src/plugins/vis_builder/server/capabilities_provider.ts similarity index 100% rename from src/plugins/wizard/server/capabilities_provider.ts rename to src/plugins/vis_builder/server/capabilities_provider.ts diff --git a/src/plugins/wizard/server/index.ts b/src/plugins/vis_builder/server/index.ts similarity index 100% rename from src/plugins/wizard/server/index.ts rename to src/plugins/vis_builder/server/index.ts diff --git a/src/plugins/wizard/server/plugin.ts b/src/plugins/vis_builder/server/plugin.ts similarity index 100% rename from src/plugins/wizard/server/plugin.ts rename to src/plugins/vis_builder/server/plugin.ts diff --git a/src/plugins/wizard/server/saved_objects/index.ts b/src/plugins/vis_builder/server/saved_objects/index.ts similarity index 58% rename from src/plugins/wizard/server/saved_objects/index.ts rename to src/plugins/vis_builder/server/saved_objects/index.ts index eabc7abf2761..9390c8191537 100644 --- a/src/plugins/wizard/server/saved_objects/index.ts +++ b/src/plugins/vis_builder/server/saved_objects/index.ts @@ -3,4 +3,4 @@ * SPDX-License-Identifier: Apache-2.0 */ -export { wizardSavedObjectType } from './wizard_app'; +export { wizardSavedObjectType } from './vis_builder_app'; diff --git a/src/plugins/wizard/server/saved_objects/wizard_app.ts b/src/plugins/vis_builder/server/saved_objects/vis_builder_app.ts similarity index 96% rename from src/plugins/wizard/server/saved_objects/wizard_app.ts rename to src/plugins/vis_builder/server/saved_objects/vis_builder_app.ts index f9b57d53e3de..c7ad2de13b92 100644 --- a/src/plugins/wizard/server/saved_objects/wizard_app.ts +++ b/src/plugins/vis_builder/server/saved_objects/vis_builder_app.ts @@ -10,7 +10,7 @@ import { WizardSavedObjectAttributes, WIZARD_SAVED_OBJECT, } from '../../common'; -import { wizardSavedObjectTypeMigrations } from './wizard_migration'; +import { wizardSavedObjectTypeMigrations } from './vis_builder_migration'; export const wizardSavedObjectType: SavedObjectsType = { name: WIZARD_SAVED_OBJECT, diff --git a/src/plugins/wizard/server/saved_objects/wizard_migration.test.ts b/src/plugins/vis_builder/server/saved_objects/vis_builder_migration.test.ts similarity index 97% rename from src/plugins/wizard/server/saved_objects/wizard_migration.test.ts rename to src/plugins/vis_builder/server/saved_objects/vis_builder_migration.test.ts index 0e9248e1951f..f0560b5f76cc 100644 --- a/src/plugins/wizard/server/saved_objects/wizard_migration.test.ts +++ b/src/plugins/vis_builder/server/saved_objects/vis_builder_migration.test.ts @@ -4,7 +4,7 @@ */ import { SavedObjectMigrationFn, SavedObjectMigrationContext } from '../../../../core/server'; -import { wizardSavedObjectTypeMigrations } from './wizard_migration'; +import { wizardSavedObjectTypeMigrations } from './vis_builder_migration'; const savedObjectMigrationContext = (null as unknown) as SavedObjectMigrationContext; diff --git a/src/plugins/wizard/server/saved_objects/wizard_migration.ts b/src/plugins/vis_builder/server/saved_objects/vis_builder_migration.ts similarity index 100% rename from src/plugins/wizard/server/saved_objects/wizard_migration.ts rename to src/plugins/vis_builder/server/saved_objects/vis_builder_migration.ts diff --git a/src/plugins/wizard/server/types.ts b/src/plugins/vis_builder/server/types.ts similarity index 100% rename from src/plugins/wizard/server/types.ts rename to src/plugins/vis_builder/server/types.ts diff --git a/src/plugins/wizard/tsconfig.json b/src/plugins/vis_builder/tsconfig.json similarity index 98% rename from src/plugins/wizard/tsconfig.json rename to src/plugins/vis_builder/tsconfig.json index ab8821948be5..3af8638d980c 100644 --- a/src/plugins/wizard/tsconfig.json +++ b/src/plugins/vis_builder/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "baseUrl": "./src/plugins/wizard", + "baseUrl": "./src/plugins/vis_builder", "paths": { // Allows for importing from `opensearch-dashboards` package for the exported types. "opensearch-dashboards": ["./opensearch_dashboards"], diff --git a/src/plugins/wizard/public/embeddable/index.ts b/src/plugins/wizard/public/embeddable/index.ts deleted file mode 100644 index d0137757e0ab..000000000000 --- a/src/plugins/wizard/public/embeddable/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -/* - * Copyright OpenSearch Contributors - * SPDX-License-Identifier: Apache-2.0 - */ - -export * from './wizard_embeddable'; -export * from './wizard_embeddable_factory';