From 239e2e503d8b5d3830518ad5d2310649f4a7d4b9 Mon Sep 17 00:00:00 2001 From: Serge RAKOTO HARRY-NAIVO Date: Thu, 7 May 2026 15:36:21 +0200 Subject: [PATCH] chore(post-cutover): fix 3 polish bugs (welcome-back email + mobile lang switcher + animate-on-scroll) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Three small post-cutover fixes reported during E2E retest 2026-05-07: 1. js/form-handler.js: disable EmailJS welcome-back call in showAlreadyRegistered. The EmailJS account is Melissa-only (no Serge access) and its template still has a '(c) 2025' footer inconsistent with the Resend emails sent by the new Worker. The user already sees their existing reference number in the showAlreadyRegistered modal (= cosmetic email, not critical). To re-implement properly: route through Worker + Resend in a future PR. 2. 10 HTML pages: remove duplicate .lang-switcher block from .mobile-nav. The header already has a lang-switcher visible on mobile, the second one inside the slide-in mobile menu was redundant. 3. js/main.js: fix IntersectionObserver threshold for animate-on-scroll. Was threshold: 0.1 — never fires on mobile portrait for cgv.html and politique-confidentialite.html because those pages have data-lang-block elements 2000-3000px tall (verbose FR/EN/MG trilingual content) and viewport (~600px) never reaches 10% intersection ratio. Now threshold: 0 — fires as soon as any pixel enters viewport. mentions-legales.html unaffected because its blocks were short enough to satisfy the previous 10%. Refs: WordPress \xe2\x86\x92 static migration, post-cutover polish. --- about.html | 5 ----- accueil.html | 5 ----- application.html | 5 ----- cgv.html | 5 ----- contact.html | 5 ----- guide-envoi.html | 5 ----- js/form-handler.js | 7 +++++-- mentions-legales.html | 5 ----- politique-confidentialite.html | 5 ----- service-commande.html | 5 ----- tarifs.html | 5 ----- 11 files changed, 5 insertions(+), 52 deletions(-) diff --git a/about.html b/about.html index b9f8578..dce110a 100644 --- a/about.html +++ b/about.html @@ -50,11 +50,6 @@ Guide d'envoi Contact Prochainement -
- - - -
diff --git a/accueil.html b/accueil.html index ba70f7c..4fc0790 100644 --- a/accueil.html +++ b/accueil.html @@ -56,11 +56,6 @@ Guide d'envoi Contact Prochainement -
- - - -
diff --git a/application.html b/application.html index dad9d56..8b58c02 100644 --- a/application.html +++ b/application.html @@ -46,11 +46,6 @@ Guide d'envoi Contact Application -
- - - -
diff --git a/cgv.html b/cgv.html index df95972..abd5e27 100644 --- a/cgv.html +++ b/cgv.html @@ -86,11 +86,6 @@ Guide d'envoi Contact Prochainement -
- - - -
diff --git a/contact.html b/contact.html index 53675ff..219377f 100644 --- a/contact.html +++ b/contact.html @@ -46,11 +46,6 @@ Guide d'envoi Contact Prochainement -
- - - -
diff --git a/guide-envoi.html b/guide-envoi.html index a31a42d..ed10bb3 100644 --- a/guide-envoi.html +++ b/guide-envoi.html @@ -46,11 +46,6 @@ Guide d'envoi Contact Prochainement -
- - - -
diff --git a/js/form-handler.js b/js/form-handler.js index c869082..d83ae00 100644 --- a/js/form-handler.js +++ b/js/form-handler.js @@ -351,8 +351,11 @@ function showAlreadyRegistered(contact) { // Envoi d'une notification interne à MVA (sans modifier les données du client) notifyDuplicateViaFormspree(contact); - // Envoi d'un email "Ravis de te revoir" au client avec son n° de référence - sendWelcomeBackEmail(contact); + // Email "Ravis de te revoir" via EmailJS désactivé (= post-migration 2026-05-07). + // Le compte EmailJS n'est plus accessible (Melissa-only) et son template a un + // footer "(c) 2025" obsolète. Le client a déjà sa référence affichée via + // `showAlreadyRegistered` ci-dessus — l'email est cosmétique. À ré-implémenter + // via Worker + Resend en follow-up si jugé utile. } function showError() { diff --git a/mentions-legales.html b/mentions-legales.html index 95e4e89..1309131 100644 --- a/mentions-legales.html +++ b/mentions-legales.html @@ -69,11 +69,6 @@ Guide d'envoi Contact Prochainement -
- - - -
diff --git a/politique-confidentialite.html b/politique-confidentialite.html index 5abd9f6..a8ec247 100644 --- a/politique-confidentialite.html +++ b/politique-confidentialite.html @@ -78,11 +78,6 @@ Guide d'envoi Contact Prochainement -
- - - -
diff --git a/service-commande.html b/service-commande.html index 3b6ceea..1d54178 100644 --- a/service-commande.html +++ b/service-commande.html @@ -47,11 +47,6 @@ Guide d'envoi Contact Prochainement -
- - - -
diff --git a/tarifs.html b/tarifs.html index 5ffa291..6f99b1b 100644 --- a/tarifs.html +++ b/tarifs.html @@ -46,11 +46,6 @@ Guide d'envoi Contact Prochainement -
- - - -
-- 2.45.2