fix(onboarding): derive step counter from STEP_ORDER

All six step panels previously hard-coded "X / 5" or "X / 6" in their
header captions, which drifted out of sync with the 7-step STEP_ORDER in
OnboardingHero. Export STEP_ORDER / TOTAL_STEPS / getStepNumber from
OnboardingHero and consume them in every step so the counter is always
the single source of truth.
This commit is contained in:
ZacharyZhang-NY committed 2026-04-16 22:03:57 -04:00
1 parent 5a5587c2a1
commit 183f22e922
7 files changed
+23 -9

No files matched your search

@@ -4,6 +4,7 @@ import type { ConnectorId, ProfileSnapshot } from "@shared/types";
import type { AppLocale } from "@shared/locale";
import { ActionButton } from "../ui";
import { ModelToggleList, StatusBadge } from "../execution/ModelManagementShared";
import { getStepNumber, TOTAL_STEPS } from "./OnboardingHero";
interface ModelPoolStepProps {
currentLocale: AppLocale;
@@ -52,7 +53,7 @@ export function ModelPoolStep({
className="w-full rounded-lg border border-border bg-card p-7 shadow-sm"
>
<div className="mb-2 text-[10px] font-semibold uppercase tracking-[0.08em] text-muted-foreground">
{t("onboarding.stepLabelModelPool")} 4 / 6
{t("onboarding.stepLabelModelPool")} {getStepNumber("modelpool")} / {TOTAL_STEPS}
</div>
<div className="mb-1 text-[18px] font-semibold tracking-[-0.01em] text-foreground">
{t("onboarding.modelPoolStepTitle")}