fix(onboarding): re-land #893, T&C acceptance on the Details step - #899
Merged
Conversation
Move the required Terms & Conditions checkbox from Review & Pay to Details, gating Details' Continue action instead of the Pay button. Consent to be contacted (which the T&C acceptance carries per the 2026-08-14 owner decision) is now captured before the Plan-step lead capture fires, closing the gap where a captured lead had no consent until Pay. payDisabled and onPayClick's own termsAccepted guard stay in place as invariants. The reconnect side-branch inside onDetailsSubmit is exempt: a returning customer reconnecting an existing paid account never went through this checkbox before and makes no signup call that needs terms_accepted/contact_consent, so the gate is checked only after the reconnect branch has already returned. Also adds light server-side email validation: start_signup rejects a malformed email with a clean message before touching admin, and capture_onboarding_lead (fire-and-forget) silently drops a malformed non-blank email instead of forwarding it, without ever raising. Rewrites the OnboardingView.spec.js "lead-capture + T&C (frozen contract)" block for the new placement, and adds a regression test proving the reconnect branch is not gated by termsAccepted.
Two leftover references to the checkbox's old Review & Pay location, found by code review of #893: the getTermsUrl mount comment, and a note on onDetailsSubmit's field-validation block explaining why terms is checked separately from the other fields (after the reconnect branch, not batched with them) rather than restructuring the gate.
Contributor
Author
Code reviewFound 3 issues (all verified against the diff; note these were present in the original #893 code, this re-land inherits them):
jarvis/frontend/src/views/OnboardingView.vue Lines 2428 to 2430 in 1d0f995
Lines 1007 to 1009 in 1d0f995
Lines 360 to 362 in 1d0f995 🤖 Generated with Claude Code - If this code review was useful, please react with 👍. Otherwise, react with 👎. |
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Re-lands #893, which shows MERGED but never reached develop. Users accept the Terms and Conditions on the Details step instead of the Review and Pay step, exactly as #893 intended.
#893 was stacked on #888 and got merged into #888's feature branch 15 seconds after that branch was itself merged into develop, so its commits stranded on a dead side branch. This PR cherry-picks those same two commits (aa5978b, e0c1ead here; 3eacdce, 1d0f995 here) onto current develop. Clean pick, no conflicts. Carries its own frontend spec and backend validation tests.
How the strand happened
Merge timeline on 2026-08-16: #888 (base develop) merged at 16:50:45 as dc548ef. #893 (base fix/onboarding-contact-required, never retargeted) merged at 16:51:00 as 12fd555, whose commits are not ancestors of develop. GitHub only retargets a stacked PR when the base branch is deleted before the second merge, which did not happen here.
Pre-merge checklist
testscheck on this PR passes (never merge on ❌)main(cut from develop tip 078286c today)