feat(ui): 'check your email' confirmation on lead forms

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Pritesh 2026-06-15 19:31:31 +05:30
parent e5cc1308ed
commit 8a085c145e
3 changed files with 5 additions and 2 deletions

View file

@ -105,7 +105,7 @@ export function EnterpriseModal({ open, onOpenChange, source, prefill }: Enterpr
},
token,
});
toast.success("Thanks - our team will reach out about enterprise deployment.");
toast.success("Check your inbox — we just emailed you the next steps (give it a minute).");
reset();
onOpenChange(false);
} catch {

View file

@ -80,7 +80,7 @@ export function HireExpertModal({ open, onOpenChange, source, onOpenEnterprise }
payload: { name, company, jobTitle, agentGoal, phone, volume },
token,
});
toast.success("Thanks - we'll reach out about building your agent.");
toast.success("Check your inbox — we just emailed you the next steps (give it a minute).");
reset();
onOpenChange(false);
} catch {

View file

@ -114,6 +114,9 @@ export function OnboardingModal({ open, onComplete }: OnboardingModalProps) {
},
token,
});
// Only the on-prem/enterprise lead path sends an email; plain
// onboarding does not. Confirm the email just for this path.
toast.success("Check your inbox — we just emailed you the next steps (give it a minute).");
}
} catch {
// Swallowed — the user is already in the product; network calls are