[object Object]

← back to Dw Validator Debug TK11314

importer: map global.width metafield (Carnegie-class fix)

77d1bace89aa4afdf3126093fec8855385383e11 · 2026-08-31 10:53:27 -0700 · Steve

Files touched

Diff

commit 77d1bace89aa4afdf3126093fec8855385383e11
Author: Steve <steve@designerwallcoverings.com>
Date:   Mon Aug 31 10:53:27 2026 -0700

    importer: map global.width metafield (Carnegie-class fix)
---
 DW-Programming/push-maya-romanoff-to-shopify.js | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/DW-Programming/push-maya-romanoff-to-shopify.js b/DW-Programming/push-maya-romanoff-to-shopify.js
index 098cdd52..bf128b66 100644
--- a/DW-Programming/push-maya-romanoff-to-shopify.js
+++ b/DW-Programming/push-maya-romanoff-to-shopify.js
@@ -399,6 +399,15 @@ async function main() {
     if (p.roll_length) {
       metafields.push({ namespace: 'global', key: 'length', value: p.roll_length, type: 'single_line_text_field' });
     }
+    // TK-11024: width metafield (Carnegie-class). Guard against the scraped meta-tag pollution
+    // in maya_catalog.width (=device-width,…) — mirrors the pattern_repeat guard above. Emits
+    // nothing until the width column is re-scraped clean; then activation can proceed.
+    {
+      const w = (p.width == null ? '' : String(p.width)).trim();
+      if (w && !w.includes('device-width') && w.length < 60) {
+        metafields.push({ namespace: 'global', key: 'width', value: w, type: 'single_line_text_field' });
+      }
+    }
 
     // Build Shopify product payload
     const payload = {

← 1eac8b4a TK-13 Option B: stop git-bloat churn — untrack 524 regenerab  ·  back to Dw Validator Debug TK11314  ·  auto-data-snapshot: 2026-08-31T11:17:15 (6 data files) — sho dd679181 →