← back to Designer Wallcoverings
cadence: roman-numeral title guard (II/III/IV…) + suppress false Needs-Image on sample-only products
bdcb9ec1a995879f2a6c4bc61e7499bdd863ef32 · 2026-06-23 17:29:12 -0700 · Steve
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Files touched
M shopify/scripts/cadence/cadence-import.js
Diff
commit bdcb9ec1a995879f2a6c4bc61e7499bdd863ef32
Author: Steve <steve@designerwallcoverings.com>
Date: Tue Jun 23 17:29:12 2026 -0700
cadence: roman-numeral title guard (II/III/IV…) + suppress false Needs-Image on sample-only products
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---
shopify/scripts/cadence/cadence-import.js | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/shopify/scripts/cadence/cadence-import.js b/shopify/scripts/cadence/cadence-import.js
index 82b4fa85..6e4045bb 100644
--- a/shopify/scripts/cadence/cadence-import.js
+++ b/shopify/scripts/cadence/cadence-import.js
@@ -367,8 +367,13 @@ function buildSampleOnlyInput(vendor, cfg, row, activate) {
// Tags: vendor + productType give the required ≥2; add collection, color, AI-derived tags, and a
// Sample-Only marker. de-duped. gate.tags carry any Needs-* flags for DRAFT products.
+ // Suppress Needs-Image for sample-only products (Steve 2026-06-23): they DO have real vendor
+ // images attached (image_url + all_images), but the gate's thumbnail-stem comparison false-
+ // positives on the sample-only image set and tags a spurious Needs-Image. We keep every OTHER
+ // gate flag (Needs-Specs / Needs-Description / Needs-Width) — only the false Needs-Image is dropped.
+ const gateTags = gate.tags.filter(t => String(t).toLowerCase() !== 'needs-image');
const tagSet = [vendor, cfg.productType, 'Sample Only', 'display_variant', 'Quadrille House',
- ...(row.collection?[`Collection: ${row.collection}`]:[]), ...(color?[color]:[]), ...gate.tags];
+ ...(row.collection?[`Collection: ${row.collection}`]:[]), ...(color?[color]:[]), ...gateTags];
const input = {
title, handle, vendor, productType: cfg.productType,
← d90a2d43 auto-save: 2026-06-23T17:23:17 (5 files) — shopify/scripts/c
·
back to Designer Wallcoverings
·
cadence: ENABLE Quadrille-house sample-only drip in hourly r 1a1a388c →