From 5b97979be3d70d203e523aafb4e8b4ba5e2eca86 Mon Sep 17 00:00:00 2001 From: Evan Rusackas Date: Fri, 17 Apr 2026 11:35:30 -0700 Subject: [PATCH] fix(imports): rewrite stale @apache-superset/core bare and api/core imports to correct subpaths --- .../src/dashboard/components/PublishedStatus/index.tsx | 2 +- superset-frontend/src/dashboard/components/SliceAdder.tsx | 2 +- .../src/dashboard/components/menu/BackgroundStyleDropdown.tsx | 2 +- .../src/dashboard/components/menu/MarkdownModeDropdown.tsx | 3 +-- .../nativeFilters/FilterBar/FilterControls/FilterValue.tsx | 2 +- 5 files changed, 5 insertions(+), 6 deletions(-) diff --git a/superset-frontend/src/dashboard/components/PublishedStatus/index.tsx b/superset-frontend/src/dashboard/components/PublishedStatus/index.tsx index dce12de6cbd..52e7aeb2309 100644 --- a/superset-frontend/src/dashboard/components/PublishedStatus/index.tsx +++ b/superset-frontend/src/dashboard/components/PublishedStatus/index.tsx @@ -17,7 +17,7 @@ * under the License. */ import { useCallback } from 'react'; -import { t } from '@apache-superset/core'; +import { t } from '@apache-superset/core/translation'; import { Tooltip, PublishedLabel } from '@superset-ui/core/components'; import { HeaderProps, HeaderDropdownProps } from '../Header/types'; diff --git a/superset-frontend/src/dashboard/components/SliceAdder.tsx b/superset-frontend/src/dashboard/components/SliceAdder.tsx index cd0ff3e69d6..e5f47c0cfdd 100644 --- a/superset-frontend/src/dashboard/components/SliceAdder.tsx +++ b/superset-frontend/src/dashboard/components/SliceAdder.tsx @@ -22,7 +22,7 @@ import AutoSizer from 'react-virtualized-auto-sizer'; import { FixedSizeList as List } from 'react-window'; // @ts-expect-error import { createFilter } from 'react-search-input'; -import { t } from '@apache-superset/core'; +import { t } from '@apache-superset/core/translation'; import { styled, css, useTheme } from '@apache-superset/core/theme'; import { Button, diff --git a/superset-frontend/src/dashboard/components/menu/BackgroundStyleDropdown.tsx b/superset-frontend/src/dashboard/components/menu/BackgroundStyleDropdown.tsx index bc3c522c401..0f661aca20a 100644 --- a/superset-frontend/src/dashboard/components/menu/BackgroundStyleDropdown.tsx +++ b/superset-frontend/src/dashboard/components/menu/BackgroundStyleDropdown.tsx @@ -17,7 +17,7 @@ * under the License. */ import cx from 'classnames'; -import { t } from '@apache-superset/core'; +import { t } from '@apache-superset/core/translation'; import { css, styled } from '@apache-superset/core/theme'; import backgroundStyleOptions from 'src/dashboard/util/backgroundStyleOptions'; import PopoverDropdown, { diff --git a/superset-frontend/src/dashboard/components/menu/MarkdownModeDropdown.tsx b/superset-frontend/src/dashboard/components/menu/MarkdownModeDropdown.tsx index c9800b565db..95c6e9bd52f 100644 --- a/superset-frontend/src/dashboard/components/menu/MarkdownModeDropdown.tsx +++ b/superset-frontend/src/dashboard/components/menu/MarkdownModeDropdown.tsx @@ -16,8 +16,7 @@ * specific language governing permissions and limitations * under the License. */ -import { t } from '@apache-superset/core'; - +import { t } from '@apache-superset/core/translation'; import PopoverDropdown, { OnChangeHandler, } from '@superset-ui/core/components/PopoverDropdown'; diff --git a/superset-frontend/src/dashboard/components/nativeFilters/FilterBar/FilterControls/FilterValue.tsx b/superset-frontend/src/dashboard/components/nativeFilters/FilterBar/FilterControls/FilterValue.tsx index d295e45ca25..d59e7a9fcab 100644 --- a/superset-frontend/src/dashboard/components/nativeFilters/FilterBar/FilterControls/FilterValue.tsx +++ b/superset-frontend/src/dashboard/components/nativeFilters/FilterBar/FilterControls/FilterValue.tsx @@ -26,7 +26,7 @@ import { useState, } from 'react'; -import { t } from '@apache-superset/core'; +import { t } from '@apache-superset/core/translation'; import { ChartDataResponseResult, Behavior,