diff --git a/frontend/src/metabase/setup/components/PreferencesStep/PreferencesStep.styled.tsx b/frontend/src/metabase/setup/components/DataUsageStep/DataUsageStep.styled.tsx similarity index 100% rename from frontend/src/metabase/setup/components/PreferencesStep/PreferencesStep.styled.tsx rename to frontend/src/metabase/setup/components/DataUsageStep/DataUsageStep.styled.tsx diff --git a/frontend/src/metabase/setup/components/PreferencesStep/PreferencesStep.tsx b/frontend/src/metabase/setup/components/DataUsageStep/DataUsageStep.tsx similarity index 98% rename from frontend/src/metabase/setup/components/PreferencesStep/PreferencesStep.tsx rename to frontend/src/metabase/setup/components/DataUsageStep/DataUsageStep.tsx index bc0f2aafa63f465ae47e1ad5b52b5576fe741c78..9f5727c35c47fdab4deeba9fa3981da28d15fb55 100644 --- a/frontend/src/metabase/setup/components/PreferencesStep/PreferencesStep.tsx +++ b/frontend/src/metabase/setup/components/DataUsageStep/DataUsageStep.tsx @@ -22,9 +22,9 @@ import { StepInfoList, StepError, StepToggle, -} from "./PreferencesStep.styled"; +} from "./DataUsageStep.styled"; -export const PreferencesStep = ({ +export const DataUsageStep = ({ stepLabel, }: NumberedStepProps): JSX.Element => { const [errorMessage, setErrorMessage] = useState<string>(); diff --git a/frontend/src/metabase/setup/components/PreferencesStep/PreferencesStep.unit.spec.tsx b/frontend/src/metabase/setup/components/DataUsageStep/DataUsageStep.unit.spec.tsx similarity index 89% rename from frontend/src/metabase/setup/components/PreferencesStep/PreferencesStep.unit.spec.tsx rename to frontend/src/metabase/setup/components/DataUsageStep/DataUsageStep.unit.spec.tsx index 72b567020ddbfa1f5fccb10ce810d822f148a558..ade37f830263fa240683e92bf67f4b2d9f96ca6c 100644 --- a/frontend/src/metabase/setup/components/PreferencesStep/PreferencesStep.unit.spec.tsx +++ b/frontend/src/metabase/setup/components/DataUsageStep/DataUsageStep.unit.spec.tsx @@ -6,7 +6,7 @@ import { import type { SetupStep } from "metabase/setup/types"; import { setupErrorSetupEndpoints } from "__support__/server-mocks"; import { renderWithProviders, screen } from "__support__/ui"; -import { PreferencesStep } from "./PreferencesStep"; +import { DataUsageStep } from "./DataUsageStep"; interface SetupOpts { step?: SetupStep; @@ -20,12 +20,12 @@ const setup = ({ step = "data_usage" }: SetupOpts = {}) => { }); setupErrorSetupEndpoints(); - renderWithProviders(<PreferencesStep stepLabel={0} />, { + renderWithProviders(<DataUsageStep stepLabel={0} />, { storeInitialState: state, }); }; -describe("PreferencesStep", () => { +describe("DataUsageStep", () => { it("should render in inactive state", () => { setup({ step: "user_info" }); diff --git a/frontend/src/metabase/setup/components/DataUsageStep/index.ts b/frontend/src/metabase/setup/components/DataUsageStep/index.ts new file mode 100644 index 0000000000000000000000000000000000000000..2bfd87b2fee166e971fa36ed8392c707d51a931b --- /dev/null +++ b/frontend/src/metabase/setup/components/DataUsageStep/index.ts @@ -0,0 +1 @@ +export * from "./DataUsageStep"; diff --git a/frontend/src/metabase/setup/components/PreferencesStep/index.ts b/frontend/src/metabase/setup/components/PreferencesStep/index.ts deleted file mode 100644 index 424eca37900514ba489cf25063b38f7dda33b340..0000000000000000000000000000000000000000 --- a/frontend/src/metabase/setup/components/PreferencesStep/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./PreferencesStep"; diff --git a/frontend/src/metabase/setup/components/SettingsPage/SettingsPage.tsx b/frontend/src/metabase/setup/components/SettingsPage/SettingsPage.tsx index aeffad7025f38d4e89019f4daa8358a92fdcb785..09cb2af1d732eea3c71f62dc44147776abe38c68 100644 --- a/frontend/src/metabase/setup/components/SettingsPage/SettingsPage.tsx +++ b/frontend/src/metabase/setup/components/SettingsPage/SettingsPage.tsx @@ -6,7 +6,7 @@ import { CompletedStep } from "../CompletedStep"; import { DatabaseHelp } from "../DatabaseHelp"; import { DatabaseStep } from "../DatabaseStep"; import { LanguageStep } from "../LanguageStep"; -import { PreferencesStep } from "../PreferencesStep"; +import { DataUsageStep } from "../DataUsageStep"; import { SetupHelp } from "../SetupHelp"; import type { NumberedStepProps } from "../types"; import { UsageQuestionStep } from "../UsageQuestionStep"; @@ -21,7 +21,7 @@ const STEP_COMPONENTS: Record< user_info: UserStep, usage_question: UsageQuestionStep, db_connection: DatabaseStep, - data_usage: PreferencesStep, + data_usage: DataUsageStep, }; export const SettingsPage = (): JSX.Element => {