← back to Designer Wallcoverings
Spec recrawl: title-SKU fallback for the 22 active Tres Tintas products with mfr SKU in title but no pattern-ref tag (DTD 3/3). Archived Rebel Walls titles correctly excluded (no SKU pattern).
ea390dcd10062d8d995e07c68476cc53eb270d60 · 2026-06-23 11:59:40 -0700 · Steve Abrams
Files touched
M shopify/scripts/tres-tintas-spec-recrawl.js
Diff
commit ea390dcd10062d8d995e07c68476cc53eb270d60
Author: Steve Abrams <steve@designerwallcoverings.com>
Date: Tue Jun 23 11:59:40 2026 -0700
Spec recrawl: title-SKU fallback for the 22 active Tres Tintas products with mfr SKU in title but no pattern-ref tag (DTD 3/3). Archived Rebel Walls titles correctly excluded (no SKU pattern).
---
shopify/scripts/tres-tintas-spec-recrawl.js | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/shopify/scripts/tres-tintas-spec-recrawl.js b/shopify/scripts/tres-tintas-spec-recrawl.js
index bf06c79c..a2a01dc4 100644
--- a/shopify/scripts/tres-tintas-spec-recrawl.js
+++ b/shopify/scripts/tres-tintas-spec-recrawl.js
@@ -168,6 +168,13 @@ function refFromTags(tags) {
for (const t of tags) { const m = /^pattern-ref-(.+)$/i.exec(t.trim()); if (m) return m[1]; }
return null;
}
+// Fallback for products that carry the mfr SKU IN the title but lack a
+// pattern-ref-* tag (the 22 active no-ref products, DTD 3/3 2026-06-23).
+// e.g. "Round M2910-3 - Pale Beige …", "Cuzco Jo2703-2 …", "Giant Abstract M4905-1".
+function refFromTitle(title) {
+ const m = /\b([A-Za-z]{1,3}\d{3,4}-\d+)\b/.exec(title || '');
+ return m ? m[1] : null;
+}
async function main() {
if (!TOKEN) throw new Error('missing SHOPIFY_DRAFT_TOKEN');
@@ -183,7 +190,7 @@ async function main() {
const n = e.node; scanned++;
const id = n.id.split('/').pop();
const tags = (n.tags || []).map(t => t.trim());
- const ref = refFromTags(tags);
+ const ref = refFromTags(tags) || refFromTitle(n.title); // title fallback for no-tag products
if (ONLY_SKU && ref !== ONLY_SKU) continue;
if (done.has(id)) continue;
← a2606953 DW vendor-collection routing + grey-header contrast fix (can
·
back to Designer Wallcoverings
·
Add Tres Tintas final completeness audit (desc/specs-by-type f0d8c26f →