← back to CelebritySignatures
murals: fix TK-10193 BUG 1 — quote-submit no longer wipes name+email, so a follow-up Pay & order isn't blocked
e0115aeecde4255d2f32408572498015d66637d6 · 2026-08-08 10:29:53 -0700 · Steve Abrams
Order form's 'Request a quote instead' called f.reset() on success, clearing name+email; #payBtn hard-guards on those fields and dead-ended a quote->pay flow with 'Enter your name and a valid email first' (never hit /api/mural-checkout). Now clears only the free-text notes, preserving name/email/dims. Verified (playwright, test mode): quote-then-pay now fires /api/mural-checkout 200; intact-fields pay still 200 (no regression).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Files touched
Diff
commit e0115aeecde4255d2f32408572498015d66637d6
Author: Steve Abrams <steve@designerwallcoverings.com>
Date: Sat Aug 8 10:29:53 2026 -0700
murals: fix TK-10193 BUG 1 — quote-submit no longer wipes name+email, so a follow-up Pay & order isn't blocked
Order form's 'Request a quote instead' called f.reset() on success, clearing name+email; #payBtn hard-guards on those fields and dead-ended a quote->pay flow with 'Enter your name and a valid email first' (never hit /api/mural-checkout). Now clears only the free-text notes, preserving name/email/dims. Verified (playwright, test mode): quote-then-pay now fires /api/mural-checkout 200; intact-fields pay still 200 (no regression).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---
public/murals.html | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/public/murals.html b/public/murals.html
index cc402fa..b26cae6 100644
--- a/public/murals.html
+++ b/public/murals.html
@@ -661,7 +661,9 @@ function wireOrder(){
try{
const r = await fetch('/api/mural-order',{method:'POST',headers:{'Content-Type':'application/json'},body:JSON.stringify(payload)});
const j = await r.json();
- if(j.ok){ msg.className='msg ok'; msg.textContent='Thank you — request #'+j.id+' received. We’ll email you a proof and quote.'; f.reset(); syncOrderSummary(); }
+ if(j.ok){ msg.className='msg ok'; msg.textContent='Thank you — request #'+j.id+' received. We’ll email you a proof and quote.';
+ // Preserve name+email across reset so a follow-up "Pay & order" isn't blocked (TK-10193 BUG 1); only clear the free-text notes.
+ f.notes.value=''; syncOrderSummary(); }
else { msg.className='msg err'; msg.textContent = j.error || 'Something went wrong.'; }
}catch(err){ msg.className='msg err'; msg.textContent='Network error — please email steve@designerwallcoverings.com.'; }
});
← 8f9337b auto-data-snapshot: 2026-08-08T10:07:09 (1 data files) — scr
·
back to CelebritySignatures
·
auto-data-snapshot: 2026-08-08T10:37:54 (77 data files) — sc 589b8d1 →