From 9f4c6ac0b905b1442054f18a5a2b1778bca1f33d Mon Sep 17 00:00:00 2001 From: RevIQ Date: Sat, 10 Jan 2026 16:55:09 +0800 Subject: [PATCH] Redirect auth flows to / instead of /performance After login, email verification, trust device, and profile setup, users are now redirected to / which handles routing to their first org's dashboard. Co-Authored-By: Claude Opus 4.5 --- apps/publisher-dashboard/src/routes/auth/confirm/+page.svelte | 2 +- .../src/routes/auth/setup/user/+page.svelte | 4 ++-- .../src/routes/auth/trust-device/+page.svelte | 2 +- apps/publisher-dashboard/src/routes/auth/verify/+page.svelte | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/publisher-dashboard/src/routes/auth/confirm/+page.svelte b/apps/publisher-dashboard/src/routes/auth/confirm/+page.svelte index 375692b..e1a4164 100644 --- a/apps/publisher-dashboard/src/routes/auth/confirm/+page.svelte +++ b/apps/publisher-dashboard/src/routes/auth/confirm/+page.svelte @@ -58,7 +58,7 @@ const statusQuery = createQuery(() => ({ $effect(() => { if (statusQuery.data?.status === "completed") { clearLoginFlowState(); - goto(statusQuery.data.redirectTo || "/performance"); + goto(statusQuery.data.redirectTo || "/"); } }); diff --git a/apps/publisher-dashboard/src/routes/auth/setup/user/+page.svelte b/apps/publisher-dashboard/src/routes/auth/setup/user/+page.svelte index 7cfee3b..ee55cc8 100644 --- a/apps/publisher-dashboard/src/routes/auth/setup/user/+page.svelte +++ b/apps/publisher-dashboard/src/routes/auth/setup/user/+page.svelte @@ -22,7 +22,7 @@ const userQuery = createQuery(() => ({ // Redirect if user doesn't need setup $effect(() => { if (userQuery.data && !userQuery.data.needsSetup) { - goto("/performance"); + goto("/"); } }); @@ -68,7 +68,7 @@ async function handleSubmit(e: Event) { }); toast.success("Profile setup complete!"); - goto("/performance"); + goto("/"); } catch (e) { error = e instanceof Error ? e.message : "Failed to save profile"; } finally { diff --git a/apps/publisher-dashboard/src/routes/auth/trust-device/+page.svelte b/apps/publisher-dashboard/src/routes/auth/trust-device/+page.svelte index e404f64..37db80c 100644 --- a/apps/publisher-dashboard/src/routes/auth/trust-device/+page.svelte +++ b/apps/publisher-dashboard/src/routes/auth/trust-device/+page.svelte @@ -52,7 +52,7 @@ async function handleTrust() { try { await api.me.trustDevice({ name: deviceName.trim() }); toast.success("Device trusted successfully!"); - goto("/performance"); + goto("/"); } catch (e) { error = e instanceof Error ? e.message : "Failed to trust device"; } finally { diff --git a/apps/publisher-dashboard/src/routes/auth/verify/+page.svelte b/apps/publisher-dashboard/src/routes/auth/verify/+page.svelte index 95bea6d..c2c1c51 100644 --- a/apps/publisher-dashboard/src/routes/auth/verify/+page.svelte +++ b/apps/publisher-dashboard/src/routes/auth/verify/+page.svelte @@ -31,7 +31,7 @@ async function verifyEmail(): Promise { try { await api.auth.verifyEmail({ token }); toast.success("Email verified successfully!"); - goto("/performance"); + goto("/"); } catch (e) { error = e instanceof Error ? e.message : "Verification failed"; } finally {