← back to Dw Photo Capture
Add-modal: session counter survived only until the modal opened — addTitle.textContent wiped the #sessCount child span, so 'N this session' could never render. Title text now lives in #addTitleTxt. F7.0-F7.2 pass (sweep 7)
725a545ca53cbd35332482dd999f809d20a18b05 · 2026-09-19 11:14:02 -0700 · Steve Abrams
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0163KBzeE1R39RSbxNmAjbki
Files touched
Diff
commit 725a545ca53cbd35332482dd999f809d20a18b05
Author: Steve Abrams <steve@designerwallcoverings.com>
Date: Sat Sep 19 11:14:02 2026 -0700
Add-modal: session counter survived only until the modal opened — addTitle.textContent wiped the #sessCount child span, so 'N this session' could never render. Title text now lives in #addTitleTxt. F7.0-F7.2 pass (sweep 7)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0163KBzeE1R39RSbxNmAjbki
---
public/index.html | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/public/index.html b/public/index.html
index 2ae3ae2..9780bc5 100644
--- a/public/index.html
+++ b/public/index.html
@@ -561,7 +561,7 @@
<div class="samp" id="addModal" hidden>
<div class="samp-card">
<button class="samp-x" id="addClose">✕</button>
- <div class="samp-pat" id="addTitle" style="margin-bottom:4px">Add new item <span id="sessCount" class="sess-count" hidden></span></div>
+ <div class="samp-pat" id="addTitle" style="margin-bottom:4px"><span id="addTitleTxt">Add new item</span> <span id="sessCount" class="sess-count" hidden></span></div>
<div class="media-sub" id="addTarget"></div>
<!-- VENDOR FIRST: pick the vendor before anything else — it drives the DW#, Shopify vendor + FM vid -->
<div class="xl-vendor-wrap" id="xlVendorWrap">
@@ -2026,7 +2026,7 @@ function onVendorPick(){ const val=$('#addVendor').value; setStickyVendor(val, t
function openAddModal(pref,opts){ opts=opts||{}; _addMode=opts.mode||'add'; _addSession++; addResetMedia();
['addMfr','addVid','addName','addColor','addPrice','addWidth','addRepeat','addContent','addHowSold','addNotes'].forEach(id=>{ const el=$('#'+id); if(el)el.value=''; }); $('#addNote').textContent=''; $('#addResult').innerHTML='';
const cr=$('#colorRead'); if(cr){ cr.hidden=true; cr.classList.remove('show'); cr.innerHTML=''; } _sessCount=0; updateSessCount();
- $('#addTitle').textContent = _addMode==='update' ? 'Update SKU on Shopify' : 'Add new item';
+ $('#addTitleTxt').textContent = _addMode==='update' ? 'Update SKU on Shopify' : 'Add new item';
$('#addTarget').textContent = _addMode==='update' ? 'Shoot the label to find the SKU, then add photos + videos.' : '';
$('#addPreview').textContent = _addMode==='update' ? '⬆ Push media to SKU (LIVE)' : '👁 Preview';
if(pref){ if(pref.mfr)$('#addMfr').value=pref.mfr; if(pref.color)$('#addColor').value=pref.color; if(pref.name)$('#addName').value=pref.name; }
@@ -2124,7 +2124,7 @@ async function addDedupCheck(){ const mySession=_addSession; // guard against
const el=document.getElementById('addSwitchUpd'); if(el) el.addEventListener('click',()=>switchToUpdate(hit)); } }
// user chose to update the existing match instead of creating a dup — bind it (explicit → no extra confirm)
function switchToUpdate(hit){ _addMode='update'; _updatePid=hit.product_id; _updateSku=hit.dw_sku; _updateNeedsConfirm=false;
- $('#addTitle').textContent='Update SKU on Shopify'; $('#addPreview').textContent='⬆ Push media to SKU (LIVE)';
+ $('#addTitleTxt').textContent='Update SKU on Shopify'; $('#addPreview').textContent='⬆ Push media to SKU (LIVE)';
$('#addTarget').innerHTML=`✓ Updating <b>${hit.title||hit.dw_sku}</b> <small>(${hit.dw_sku}) — your photos will attach here</small>`;
$('#addResult').innerHTML=''; toast('Switched to Update — media attaches to '+hit.dw_sku); }
async function addResolveUpdate(){ const mfr=$('#addMfr').value.trim(); if(!mfr) return;
← 4084d07 Add-modal: scrollable overlay (flex-start + overflow-y:auto,
·
back to Dw Photo Capture
·
auto-data-snapshot: 2026-09-19T11:34:41 (7 data files) — 5x/ 767d07c →