← back to Dw Photo Capture
TK-12162: guided wizard never strands a guest on an unexpected finishCapture error
10d3e404238468e4104298296c5d8f8e390ddd72 · 2026-09-24 13:38:49 -0700 · Steve Abrams
Wrap the Use-This-Photo handler so any throw routes to the staff-handoff done
screen instead of leaving Retake/Use disabled on the review step.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014WCvaA6QQCJp2LMdcXyrUD
Files touched
M public/simple-wizard.html
Diff
commit 10d3e404238468e4104298296c5d8f8e390ddd72
Author: Steve Abrams <steve@designerwallcoverings.com>
Date: Thu Sep 24 13:38:49 2026 -0700
TK-12162: guided wizard never strands a guest on an unexpected finishCapture error
Wrap the Use-This-Photo handler so any throw routes to the staff-handoff done
screen instead of leaving Retake/Use disabled on the review step.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014WCvaA6QQCJp2LMdcXyrUD
---
public/simple-wizard.html | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/public/simple-wizard.html b/public/simple-wizard.html
index b04561f..7398c25 100644
--- a/public/simple-wizard.html
+++ b/public/simple-wizard.html
@@ -432,7 +432,14 @@
$('btnUse').addEventListener('click', async () => {
mark('confirmTap');
$('btnUse').disabled = true; $('btnRetake').disabled = true;
- await finishCapture();
+ try{
+ await finishCapture();
+ }catch(e){
+ // Any unexpected throw must still land the guest on a screen with a way forward, never a
+ // frozen review step with both buttons disabled.
+ console.error('[guided-wizard] finishCapture failed', e);
+ showDone({ ok:false, title: 'Photo saved', sub: 'The catalog step needs a hand from staff for this one (' + ((e && e.message) || 'unexpected error') + ').' });
+ }
});
// ---------------------------------------------------------------------------------------------
← 03f509f TK-12090/TK-12162: fix numeric-SKU .trim() crash + de-obfusc
·
back to Dw Photo Capture
·
Consolidate SKU field cleanup into shared field-clean.js hel 2b1d006 →