MVA Global Fret static HTML site (mirror of GitHub MVA-Global-Fret/site-mva-global-fret) � deployed to VPS Falkenstein for mva-globalfret.com
Go to file
Serge RAKOTO HARRY-NAIVO 7217f12bd2 feat(api): migrate Worker mva-hubspot-proxy → mva-api /leads/* routes
Le Cloudflare Worker hubspot-proxy était une solution temporaire car
le panel admin AdminJS n'était pas encore disponible. Maintenant qu'
AdminJS marche, on rapatrie tout le flow inscription côté MVA backend.

## Changements

- `js/form-handler.js`
  - WORKER_PROXY_URL → API_BASE_URL = https://api.mva.mind4solutions.com
  - checkExistingContact : POST /leads/check-email
    (response shape : {exists, firstname, reference_client})
  - setupContactForm : POST /leads/request-verification
  - sendWelcomeBackEmail : POST /leads/welcome-back

- `js/confirmation.js`
  - WORKER_PROXY_URL → API_BASE_URL
  - POST /leads/verify-token (= au lieu de Worker action verifyToken)
  - Detection token expiré/invalide via code INVALID_OR_EXPIRED

## Aucun changement HTML

Les forms HTML, IDs des éléments, validation côté client, gestion
Turnstile sont tous inchangés. Seules les URLs API changent.

## Côté backend (PR #44 mva-prestige-v2)

Les routes mva-api /leads/* sont déployées séparément avec :
- Validation Zod + Turnstile + rate limit
- DB Postgres (table leads + leads_pending) remplace HubSpot Contacts + KV
- Resend pour les emails (= unification écosystème M4S)
- AdminJS Resource leads pour Mélissa CRUD

## Cutover

Cette PR doit être merged + déployée APRÈS la migration backend
(PR #44) + après le run du script migrate-hubspot-to-postgres.js
(= les 4 contacts HubSpot existants en DB).
2026-05-10 11:34:07 +02:00
.claude Swap colorkey'd cloud for Microsoft Fluent 3D cloud emoji 2026-05-05 01:50:44 +02:00
.github/workflows Add Actions-based Pages deploy workflow 2026-05-05 17:05:13 +02:00
assets Switch parcel sprites to a real 3D parachute GLB with bound cargo 2026-05-05 13:32:48 +02:00
cloudflare-worker chore: post-review cleanup (3 Important + dead code purge -116 lines) (#10) 2026-05-07 18:37:10 +03:00
css Service Commande: redesign 'Et le transport ?' card 2026-05-06 08:40:14 +02:00
images feat(images): self-host hero photos from Unsplash (#1) 2026-05-07 01:01:54 +03:00
js feat(api): migrate Worker mva-hubspot-proxy → mva-api /leads/* routes 2026-05-10 11:34:07 +02:00
.gitignore Initial commit — Site MVA Global Fret 2026-05-02 22:23:48 +02:00
about.html chore(post-cutover): fix 3 polish bugs (welcome-back, mobile lang switcher, animate-on-scroll) (#6) 2026-05-07 16:36:28 +03:00
accueil.html chore(post-cutover): fix 3 polish bugs (welcome-back, mobile lang switcher, animate-on-scroll) (#6) 2026-05-07 16:36:28 +03:00
application.html chore(post-cutover): fix 3 polish bugs (welcome-back, mobile lang switcher, animate-on-scroll) (#6) 2026-05-07 16:36:28 +03:00
cgv.html chore(post-cutover): fix 3 polish bugs (welcome-back, mobile lang switcher, animate-on-scroll) (#6) 2026-05-07 16:36:28 +03:00
confirmation.html chore: post-review cleanup (3 Important + dead code purge -116 lines) (#10) 2026-05-07 18:37:10 +03:00
contact.html chore: post-review cleanup (3 Important + dead code purge -116 lines) (#10) 2026-05-07 18:37:10 +03:00
guide-envoi.html chore(post-cutover): fix 3 polish bugs (welcome-back, mobile lang switcher, animate-on-scroll) (#6) 2026-05-07 16:36:28 +03:00
index.html Switch parcel sprites to a real 3D parachute GLB with bound cargo 2026-05-05 13:32:48 +02:00
mentions-legales.html chore(post-cutover): fix 3 polish bugs (welcome-back, mobile lang switcher, animate-on-scroll) (#6) 2026-05-07 16:36:28 +03:00
PNG MVA GLOBAL FRET.png Initial commit — Site MVA Global Fret 2026-05-02 22:23:48 +02:00
politique-confidentialite.html chore(post-cutover): fix 3 polish bugs (welcome-back, mobile lang switcher, animate-on-scroll) (#6) 2026-05-07 16:36:28 +03:00
reset-password.html fix(reset-password): redirect to mvaglobalfret:// custom scheme for mva-api tokens 2026-05-07 21:27:59 +02:00
robots.txt feat(seo): sitemap + robots.txt + mobile reset-password bridge (#2) 2026-05-07 01:04:05 +03:00
service-commande.html chore(post-cutover): fix 3 polish bugs (welcome-back, mobile lang switcher, animate-on-scroll) (#6) 2026-05-07 16:36:28 +03:00
sitemap.xml feat(seo): sitemap + robots.txt + mobile reset-password bridge (#2) 2026-05-07 01:04:05 +03:00
tarifs.html chore(post-cutover): fix 3 polish bugs (welcome-back, mobile lang switcher, animate-on-scroll) (#6) 2026-05-07 16:36:28 +03:00