[object Object]

← back to Designer Wallcoverings

banned-word backstop extended to TAGS at the drain chokepoint (audit caught 'decor wallpaper' tag on a clean-titled draft); swept all 70 of today's drafts clean via API

314eb7293a1e01ebc533c38f69a32b52b2a623a1 · 2026-07-13 12:29:25 -0700 · Steve

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

Files touched

Diff

commit 314eb7293a1e01ebc533c38f69a32b52b2a623a1
Author: Steve <steve@designerwallcoverings.com>
Date:   Mon Jul 13 12:29:25 2026 -0700

    banned-word backstop extended to TAGS at the drain chokepoint (audit caught 'decor wallpaper' tag on a clean-titled draft); swept all 70 of today's drafts clean via API
    
    Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
---
 DW-Programming/ImportNewSkufromURL/scripts/import-queue-runner.js | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/DW-Programming/ImportNewSkufromURL/scripts/import-queue-runner.js b/DW-Programming/ImportNewSkufromURL/scripts/import-queue-runner.js
index 19188b75..68a12e4c 100644
--- a/DW-Programming/ImportNewSkufromURL/scripts/import-queue-runner.js
+++ b/DW-Programming/ImportNewSkufromURL/scripts/import-queue-runner.js
@@ -273,6 +273,9 @@ if (!QUEUE || !fs.existsSync(QUEUE)) { console.error('usage: import-queue-runner
       }
       if (it.brand) preview = applyBrandOverride(preview, it.brand);
       preview.title = normalizeTitle(preview.title);  // title-hygiene backstop (no Wallpaper, no ALL-CAPS)
+      // banned-word backstop for TAGS too — audit 2026-07-13 caught "decor
+      // wallpaper" surviving in a draft's tags (title was clean)
+      if (Array.isArray(preview.tags)) preview.tags = [...new Set(preview.tags.map(t => _wpFix(String(t))))];
       // 180s: image-heavy sidecar products (PJ ships up to 20 images) make Shopify
       // image-fetch slow; a short timeout fires client-side while the create still
       // completes server-side → a wasted dedup-skip retry next pass. Give it room.

← a56af202 auto-save: 2026-07-13T12:24:56 (6 files) — DW-Programming/Im  ·  back to Designer Wallcoverings  ·  auto-save: 2026-07-13T12:55:05 (9 files) — DW-Programming/Im c9853c04 →