From 0c8a9b24ab2f618ce2176c3b69f4dc7b50e4040a Mon Sep 17 00:00:00 2001 From: Remi <73385395+itsrubberduck@users.noreply.github.com> Date: Sun, 19 Oct 2025 17:33:37 +0200 Subject: [PATCH] Align hero signup with waitlist endpoint --- app/pages/index.vue | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/app/pages/index.vue b/app/pages/index.vue index bd38a6c..951e801 100644 --- a/app/pages/index.vue +++ b/app/pages/index.vue @@ -215,6 +215,14 @@ Yes, email me when new features, waitlist drops or classroom content go live. +

- Thanks! We will let you know when new features go live. + Thanks! You're now on the waitlist and we will let you know when new features go live.

{{ updatesError }}

@@ -1673,6 +1681,7 @@ const waitlistLoading = ref(false) const updatesForm = reactive({ email: '', consentPrivacy: false, + consentTerms: false, consentMarketing: false, }) @@ -1830,6 +1839,7 @@ async function submitWaitlist() { consentPrivacy: waitlistForm.consentPrivacy, consentTerms: waitlistForm.consentTerms, wantsProductUpdates, + source: 'landing-cta', }, {auth: false}, ) @@ -1866,7 +1876,7 @@ async function submitUpdates() { return } - if (!updatesForm.consentPrivacy || !updatesForm.consentMarketing) { + if (!updatesForm.consentPrivacy || !updatesForm.consentMarketing || !updatesForm.consentTerms) { updatesError.value = 'Please confirm the required checkboxes.' return } @@ -1887,11 +1897,12 @@ async function submitUpdates() { try { await api.post( - '/api/service/updates', + '/api/service/waitlist', { email, consentPrivacy: updatesForm.consentPrivacy, - consentMarketing: updatesForm.consentMarketing, + consentTerms: updatesForm.consentTerms, + wantsProductUpdates: updatesForm.consentMarketing, source: 'landing-hero', }, {auth: false}, @@ -1900,6 +1911,7 @@ async function submitUpdates() { updatesForm.email = '' updatesForm.consentPrivacy = false updatesForm.consentMarketing = false + updatesForm.consentTerms = false updatesCaptchaReminder.value = '' rotateCaptchaChallenge(updatesCaptcha) } catch (err: any) {