|
All checks were successful
CI Trade-In / backend-tests (pull_request) Has been skipped
CI / backend-tests (pull_request) Has been skipped
CI / frontend-tests (pull_request) Has been skipped
CI Trade-In / frontend-checks (pull_request) Successful in 1m6s
CI Trade-In / changes (pull_request) Successful in 8s
CI / changes (pull_request) Successful in 8s
CI / openapi-codegen-check (pull_request) Has been skipped
Real POST /api/v1/trade-in/lead form (phone + FZ-152 consent) in HeroTransparency.tsx, replacing the mailto stub. Removed the CONTACT_EMAIL/leadEnabled env-gate — form always renders. Review fixup: the submit button was disabled whenever phone/consent were invalid, which suppresses the native submit event entirely (both click and Enter-key implicit submission) — the client-side validation hint text was unreachable dead code, and users saw only a dimmed button with no explanation. Submit is now only disabled while the mutation is pending; invalid attempts fall through to the existing handleLeadSubmit guard clause, which surfaces the phone hint via leadTouched. aria-disabled communicates the visual state without blocking the event. Also guarded the error-message render against non-string mutation errors (FastAPI 422 responses put a list in `detail`, which would otherwise stringify to "[object Object]"). |
||
|---|---|---|
| .. | ||
| public | ||
| src | ||
| .dockerignore | ||
| Dockerfile | ||
| eslint.config.mjs | ||
| next.config.ts | ||
| package.json | ||
| pnpm-lock.yaml | ||
| tsconfig.json | ||