// PEP-31/83: the first steps on the home page — for a product manager: what to do and why, in // order, with one button on the current step. import { ArrowRight, Check, X } from "lucide-react"; import type { Onboarding } from "@peppa/core"; import { dismissOnboardingAction } from "@/app/(app)/actions"; import { Hidden } from "@/components/cards"; import { Button } from "@/components/ui/button"; import { OwnBotSteps } from "@/components/OwnBotSteps"; import { cn } from "@/lib/utils"; import { getT } from "@/lib/i18n"; export async function OnboardingChecklist({ data, botUsername = null }: { data: Onboarding; botUsername?: string | null }) { const t = await getT(); const next = data.steps.find((s) => !s.done && !s.optional); const fresh = data.done === 0; return (

{fresh ? t("Добро пожаловать! Запустим вашу фабрику за шесть шагов") : t("С чего начать")}

{fresh ? t("Вы описываете задачу обычными словами — команда ИИ-агентов пишет код и показывает результат. Программировать не нужно. Идите по шагам сверху вниз.") : t("Идите по шагам сверху вниз — на текущем шаге есть кнопка.")}

{t("{done} из {total}", { done: data.done, total: data.total })}
    {data.steps.map((s, i) => { const current = s === next; return (
  1. {s.done ? : i + 1}
    {t.text(s.title)} {!s.done && {t.text(s.hint)}} {current && s.id === "telegram" ? ( // PEP-85: the first thing to do — right here, not behind a link to Settings.
    ) : current && ( )}
  2. ); })}
); }