[object Object]

← back to Dw Domain Fleet

chore: lint, refactor, v1.0.1 (session close) — TK-11307

2b0f0ad5f1faaba6d07315cb143915ddc5c6e521 · 2026-09-10 09:46:02 -0700 · Steve Abrams

Extracted SHOWROOM_TAG const + comment accuracy after the ShowroomOnly
rename. No behaviour change; 10/10 consumer-agreement suite green.

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

Files touched

Diff

commit 2b0f0ad5f1faaba6d07315cb143915ddc5c6e521
Author: Steve Abrams <steve@designerwallcoverings.com>
Date:   Thu Sep 10 09:46:02 2026 -0700

    chore: lint, refactor, v1.0.1 (session close) — TK-11307
    
    Extracted SHOWROOM_TAG const + comment accuracy after the ShowroomOnly
    rename. No behaviour change; 10/10 consumer-agreement suite green.
    
    Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
---
 package-lock.json |  4 ++--
 package.json      |  2 +-
 shared/catalog.js | 13 +++++++------
 3 files changed, 10 insertions(+), 9 deletions(-)

diff --git a/package-lock.json b/package-lock.json
index 5d7fe18..a7b78b8 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
 {
   "name": "dw-domain-fleet",
-  "version": "1.0.0",
+  "version": "1.0.1",
   "lockfileVersion": 3,
   "requires": true,
   "packages": {
     "": {
       "name": "dw-domain-fleet",
-      "version": "1.0.0",
+      "version": "1.0.1",
       "dependencies": {
         "express": "^4.21.0",
         "express-rate-limit": "^7.4.0",
diff --git a/package.json b/package.json
index 8b543c0..293cf80 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
 {
   "name": "dw-domain-fleet",
-  "version": "1.0.0",
+  "version": "1.0.1",
   "description": "Shared parameterized microsite server for 66 DW-family domains",
   "main": "server.js",
   "scripts": {
diff --git a/shared/catalog.js b/shared/catalog.js
index b0c1812..4613b36 100644
--- a/shared/catalog.js
+++ b/shared/catalog.js
@@ -41,21 +41,22 @@ function isShowroomVendor(p) {
 
 // Product-level showroom TAG (TK-11307). A shared-vendor showroom line (MDC under the
 // shared "Phillipe Romano" label, which also carries SELLABLE lines) is hidden from
-// microsite grids by its "Showroom" tag, WITHOUT hiding the vendor's sellable products.
+// microsite grids by its "ShowroomOnly" tag, WITHOUT hiding the vendor's sellable products.
 // Until now MDC was excluded only incidentally via the display_variant junk rule — this
 // makes the exclusion rule-based. Mirrors fix-live-board's isShowroomProduct, kept local
 // so the deployed fleet stays self-contained.
+// TK-11307 (Steve, 2026-09-10): tag is 'ShowroomOnly', not 'Showroom' — the pre-existing
+// 'Showroom Line' tag is on 18,518+ ACTIVE SELLABLE products and Shopify/Boost `tag:`
+// queries prefix-match, so 'Showroom' is unsafe. Mirrors fix-live-board SHOWROOM_TAG.
+const SHOWROOM_TAG = 'showroomonly';
 function isShowroomTagged(p) {
   const tags = p.tags;
   const arr = Array.isArray(tags) ? tags : (typeof tags === 'string' ? tags.split(',') : []);
-  // TK-11307 (Steve, 2026-09-10): tag is 'ShowroomOnly', not 'Showroom' — the pre-existing
-  // 'Showroom Line' tag is on 18,518+ ACTIVE SELLABLE products and Shopify/Boost `tag:`
-  // queries prefix-match, so 'Showroom' is unsafe. Mirrors fix-live-board SHOWROOM_TAG.
-  return arr.some(t => String(t).trim().toLowerCase() === 'showroomonly');
+  return arr.some(t => String(t).trim().toLowerCase() === SHOWROOM_TAG);
 }
 
 // A product is showroom-only (addressable-but-not-discoverable) if its vendor is on the
-// list OR it carries the Showroom tag.
+// list OR it carries the ShowroomOnly tag.
 function isShowroomProduct(p) {
   return isShowroomVendor(p) || isShowroomTagged(p);
 }

← fb33023 microsite catalog: showroom tag is 'ShowroomOnly' (TK-11307)  ·  back to Dw Domain Fleet  ·  de-mail-merge articles for 3 pilot monetize sites (TK-11428) 26fa01c →