// 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"; export function OnboardingChecklist({ data, botUsername = null }: { data: Onboarding; botUsername?: string | null }) { const next = data.steps.find((s) => !s.done && !s.optional); const fresh = data.done === 0; return (

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

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

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