From d6fddbe16956a40fa376fe284b570881e04c629f Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Sun, 28 Sep 2025 04:24:10 +0000 Subject: [PATCH] Dashboard: hide setup banner when onboarding complete; add Profile Complete badge cgen-54848c14b2fe468e8e636786b1989bf0 --- client/pages/Dashboard.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/client/pages/Dashboard.tsx b/client/pages/Dashboard.tsx index aaf20c3e..3bdc09f4 100644 --- a/client/pages/Dashboard.tsx +++ b/client/pages/Dashboard.tsx @@ -51,7 +51,7 @@ import { export default function Dashboard() { const navigate = useNavigate(); - const { user, profile, loading: authLoading, updateProfile } = useAuth(); + const { user, profile, loading: authLoading, updateProfile, profileComplete } = useAuth(); const [displayName, setDisplayName] = useState(""); const [locationInput, setLocationInput] = useState(""); const [bio, setBio] = useState(""); @@ -273,8 +273,8 @@ export default function Dashboard() { ); } - // Show profile setup if no profile exists, but allow dashboard to continue - const showProfileSetup = !profile || profileCompletion < 80; + // Hide setup banner once onboarding is complete + const showProfileSetup = !profileComplete; const statsDisplay = [ { @@ -490,6 +490,9 @@ export default function Dashboard() { > Level {profile?.level || 1} + {profileComplete && ( + Profile Complete + )} {/* XP Progress */}