From a6e4293f25037c179b91fc67d63c689279e3a19a Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Sun, 28 Sep 2025 04:24:03 +0000 Subject: [PATCH] Update Onboarding to refresh profile and toast; Update Dashboard to hide setup banner when onboarding complete and show badge cgen-e6f9ffe019da42458b89b9a63801bc02 --- client/pages/Onboarding.tsx | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/client/pages/Onboarding.tsx b/client/pages/Onboarding.tsx index efa88d4d..77031806 100644 --- a/client/pages/Onboarding.tsx +++ b/client/pages/Onboarding.tsx @@ -62,7 +62,7 @@ export default function Onboarding() { const [isTransitioning, setIsTransitioning] = useState(false); const [isFinishing, setIsFinishing] = useState(false); const navigate = useNavigate(); - const { user } = useAuth(); + const { user, refreshProfile } = useAuth(); const steps = [ { title: "Choose Your Path", component: UserTypeSelection }, @@ -163,7 +163,16 @@ export default function Onboarding() { aethexAchievementService.checkAndAwardOnboardingAchievement(user.id), ]).catch(() => undefined); - // Navigate immediately after profile success + // Refresh profile so UI updates immediately + await refreshProfile(); + + // Success toast + aethexToast.success({ + title: "You're all set!", + description: "Profile setup complete. Welcome to your dashboard.", + }); + + // Navigate after success navigate("/dashboard", { replace: true }); } catch (e) { function formatError(err: any) {