[object Object]

← back to Dw Pairs Well

auto-save: 2026-06-26T09:44:31 (1 files) — tools/pattern-id-backfill.js

0802d86c74507a62b97633e0baf5e4904d10b5f2 · 2026-06-26 09:44:39 -0700 · Steve Abrams

Files touched

Diff

commit 0802d86c74507a62b97633e0baf5e4904d10b5f2
Author: Steve Abrams <steve@designerwallcoverings.com>
Date:   Fri Jun 26 09:44:39 2026 -0700

    auto-save: 2026-06-26T09:44:31 (1 files) — tools/pattern-id-backfill.js
---
 tools/pattern-id-backfill.js | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/tools/pattern-id-backfill.js b/tools/pattern-id-backfill.js
index 90a7691..40b2a47 100644
--- a/tools/pattern-id-backfill.js
+++ b/tools/pattern-id-backfill.js
@@ -98,12 +98,14 @@ function stripColors(normalized) {
 //   W7008-01     -> W7008
 //   AT9604       -> AT9604        (no colorway → unchanged)
 //   5004561      -> 5004561       (single pure-numeric token → keep, never empty out)
-// Junk roots: a few vendors stored a SUPPLIER NAME or boolean in the manufacturer_sku
-// metafield instead of a pattern code. These must NEVER become a pattern_id — demote to
-// the T2 title fallback. (DTD verdict A, 2026-06-26.)
+// Junk roots: ONLY booleans / placeholders that are NEVER a real brand or pattern code.
+// (Do NOT list real brands like Innovations or Sancar here — a brand name wrongly stored
+// in the manufacturer_sku field is handled by the >60-member + image-confirm guard, which
+// visually splits the over-merge instead of mislabeling a legit vendor. DTD verdict A;
+// corrected 2026-06-26 after 'INNOVATIONS' was wrongly denied.)
 const DENY_ROOTS = new Set([
-  'SANCAR','INNOVATIONS','TRUE','FALSE','NULL','NONE','NA','UNKNOWN','TBD','TEST',
-  'SAMPLE','DEFAULT','N','Y','YES','NO','0','1','PENDING','TBA','VARIOUS','ASSORTED'
+  'TRUE','FALSE','NULL','NONE','NA','N/A','UNKNOWN','TBD','TBA','TEST',
+  'SAMPLE','DEFAULT','PENDING','VARIOUS','ASSORTED','YES','NO'
 ]);
 function mfrRoot(raw) {
   if (!raw) return null;

← 9454dbf auto-save: 2026-06-26T09:14:14 (4 files) — tools/pattern-id-  ·  back to Dw Pairs Well  ·  auto-save: 2026-06-26T10:14:48 (5 files) — tools/pattern-id- adf33a8 →