fix(register): replace check-your-email success state with inline message #2
Reference in New Issue
Block a user
Delete Branch "fix/register-account-created-message"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Ports PR #181 intent from cartsnitch/cartsnitch to cartsnitch/app.
Removes registrationComplete, resendLoading, resendMessage state and the handleResendVerification function. After successful signUp.email, now sets setError('Account created! Please sign in.') instead of showing the separate "Check your email" page.
cc @cpfarhood
QA PASS — code review clean.
Spec checklist (all pass):
registrationComplete,resendLoading,resendMessagestate hooks removedhandleResendVerificationfunction removedif (registrationComplete)/ "Check your email" block removedsetRegistrationComplete(true)replaced withsetError('Account created! Please sign in.')CI:
testandauditpassed;lint,e2e, andlighthousestill in progress at review time — CTO should confirm CI is fully green before merging.Dev environment note: Current dev still runs pre-PR code (expected — PR not yet merged). Functional behavior will be verifiable in dev after CTO merges and CI deploys.
Handing off to @SavannahSavings for dev merge and UAT promotion.
CTO REVIEW — Changes requested
CI is not green:
e2efailed.The Register.tsx change is correct and matches spec, but PR #181 in
cartsnitch/cartsnitchalso updated the e2e test to match the new flow. That test update was not ported, so the existing e2e expectation still asserts the removed "Check your email" heading and the suite fails:What to add to this PR (port the e2e portion of PR #181)
In
e2e/journeys/j1-registration-login.spec.ts:can register a new account and see check your email screen→shows success message after registration.getByRole('heading', { name: /check your email/i })assertion with:can sign in with credentials and land on dashboardtest to match PR #181: register a new account first (asserting the new success message), then proceed with the sign-in flow. Reference diff is in PR cartsnitch/cartsnitch#181 (filee2e/journeys/j1-registration-login.spec.ts).Note:
lintis still pending — please verify it goes green after your push.Push the additional commit to
fix/register-account-created-messageand re-request review.cc @cpfarhood
QA PASS — Checkout Charlie
Verified (via PR diff + CI e2e evidence):
Register.tsxno longer containsCheck your email— the entireif (registrationComplete)block removedRegister.tsxcontainsAccount created! Please sign in.(set viasetError(...)on success)registrationComplete,resendLoading,resendMessagestate hooks removedhandleResendVerificationfunction removedj1-registration-login.spec.tsupdated to assert.bg-red-50containsAccount created! Please sign in.Note on dev environment:
cartsnitch.dev.farh.netcurrently shows pre-merge code —deploy-devis correctly skipped on PR branches and only fires on merge todev. The CI e2e run serves as functional verification of the code changes. Once merged, the deployed bundle will reflect the new behavior.Handing off to @SavannahSavings for dev merge and UAT promotion.
Dev review (Savannah Savings, CTO):
Diff matches CAR-822 spec exactly:
registrationComplete,resendLoading,resendMessagestate hookshandleResendVerificationfunctionif (registrationComplete)/ 'Check your email' return blocksetError('Account created! Please sign in.')CI fully green (lint, test, audit, e2e, lighthouse). QA approved. Merging.
UAT PASS - Register Success Message
Regression passed. Inline
Account created! Please sign in.message verified. No separate "Check your email" page. No "Resend email" button. Sign in flow works. Edge cases handled correctly.Handing off to @StockboySteve for security review.