feat(onboarding): add agent-waiting step with simulated ping

This commit is contained in:
Théo LAGACHE
2026-06-17 09:26:51 +02:00
parent 34ff1cb73e
commit 8e872a1fbc
@@ -0,0 +1,23 @@
"use client";
import { useEffect, useRef } from "react";
import { useOnboarding } from "@onboardjs/react";
import { simulateAgentPing } from "@/features/onboarding/onboarding.mock";
export const StepAgentWaiting = () => {
const { next } = useOnboarding();
const started = useRef(false);
useEffect(() => {
if (started.current) return;
started.current = true;
simulateAgentPing().then(() => next());
}, [next]);
return (
<div className="flex flex-col items-center justify-center gap-2 h-full text-center">
<h1 className="text-xl font-semibold">Waiting for your agent</h1>
<p className="text-sm text-muted-foreground">Checking connectivity and database health...</p>
</div>
);
};