← back to Glitterwalls
hero: accept vendor-redacted /img/ paths so the carousel actually runs on live
d280b6dfc5e3f75e1272fa066327fdd3d2165ee4 · 2026-07-30 12:21:30 -0700 · Steve Abrams
Live catalog serves /img/<hash>.jpg redacted paths (api-vendor-redact), not
cdn.shopify.com URLs, so the hero's cdn-only filter matched zero products and
the carousel never advanced past the static image. Filter now allows /img/
(same allowlist as safeImg). Redacted images cap ~1575px, caught by the >=1000
fallback pool.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Files touched
Diff
commit d280b6dfc5e3f75e1272fa066327fdd3d2165ee4
Author: Steve Abrams <steve@designerwallcoverings.com>
Date: Thu Jul 30 12:21:30 2026 -0700
hero: accept vendor-redacted /img/ paths so the carousel actually runs on live
Live catalog serves /img/<hash>.jpg redacted paths (api-vendor-redact), not
cdn.shopify.com URLs, so the hero's cdn-only filter matched zero products and
the carousel never advanced past the static image. Filter now allows /img/
(same allowlist as safeImg). Redacted images cap ~1575px, caught by the >=1000
fallback pool.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---
public/index.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/public/index.html b/public/index.html
index 555e78b..78aba0e 100644
--- a/public/index.html
+++ b/public/index.html
@@ -1263,7 +1263,7 @@ loadGridPage();
if (!r.ok) return;
const d = await r.json();
const cands = (d.items || [])
- .filter(p => p && p.image_url && /^https:\/\/(?:cdn\.shopify\.com|designerwallcoverings\.com)\//.test(p.image_url))
+ .filter(p => p && p.image_url && (/^\/img\//.test(p.image_url) || /^https:\/\/(?:cdn\.shopify\.com|designerwallcoverings\.com)\//.test(p.image_url)))
.map(p => ({ title: p.title, url: strip(p.image_url) }))
.slice(0, 24);
if (cands.length === 0) return; // no product images → static-only hero
← 405d229 sync repo to live: preserve prod hero-bg.jpg + products.json
·
back to Glitterwalls
·
chore: v-bump (session close — hero static-first + /img filt 296e009 →