[object Object]

← back to Designer Wallcoverings

Remove temporary inspection scripts

1b3c9bfd86ea642ef28908c16031cd672aec1cc3 · 2026-06-27 11:18:52 -0700 · Steve Abrams

Files touched

Diff

commit 1b3c9bfd86ea642ef28908c16031cd672aec1cc3
Author: Steve Abrams <steve@designerwallcoverings.com>
Date:   Sat Jun 27 11:18:52 2026 -0700

    Remove temporary inspection scripts
---
 _tmp-mount.cjs    | 26 --------------------------
 _tmp-preview.cjs  | 31 -------------------------------
 _tmp-preview2.cjs | 33 ---------------------------------
 _tmp-which.cjs    | 31 -------------------------------
 4 files changed, 121 deletions(-)

diff --git a/_tmp-mount.cjs b/_tmp-mount.cjs
deleted file mode 100644
index 0e2683ca..00000000
--- a/_tmp-mount.cjs
+++ /dev/null
@@ -1,26 +0,0 @@
-const { chromium } = require('playwright');
-(async () => {
-  const b = await chromium.launch({ headless: true });
-  const ctx = await b.newContext({ viewport:{width:1440,height:1100} });
-  const p = await ctx.newPage();
-  try {
-    await p.goto('https://designer-laboratory-sandbox.myshopify.com/collections/all?pf_t_product_type=Wallcovering&preview_theme_id=144035905587', { waitUntil:'domcontentloaded', timeout:70000 });
-    await p.waitForSelector('.boost-sd__product-item img', { timeout: 50000 }).catch(()=>{});
-    await p.waitForTimeout(6000);
-    const info = await p.evaluate(()=>{
-      const cs=document.querySelector('.dw-colorsort');
-      const slider=document.querySelector('.dw-grid-slider');
-      function chain(el){var a=[];while(el&&el!==document.body){var s=getComputedStyle(el);a.push((el.className||el.tagName).toString().slice(0,40)+' ['+s.display+'|w='+Math.round(el.getBoundingClientRect().width)+']');el=el.parentElement;}return a;}
-      return {
-        colorsortMounted: !!cs,
-        colorsortParentChain: cs?chain(cs.parentElement).slice(0,6):null,
-        gridSliderVisible: slider?(slider.getBoundingClientRect().width>0):null,
-        gridSliderParentChain: slider?chain(slider.parentElement).slice(0,5):null,
-        // where SHOULD it go — the product-count toolbar
-        countEl: !!document.querySelector('.boost-sd__product-count, .boost-sd__toolbar-item--product-count')
-      };
-    });
-    console.log(JSON.stringify(info,null,1));
-  } catch(e){ console.log('ERR', e.message); }
-  finally { await b.close(); }
-})();
diff --git a/_tmp-preview.cjs b/_tmp-preview.cjs
deleted file mode 100644
index 93b56317..00000000
--- a/_tmp-preview.cjs
+++ /dev/null
@@ -1,31 +0,0 @@
-const { chromium } = require('playwright');
-(async () => {
-  const URL = 'https://designer-laboratory-sandbox.myshopify.com/collections/all?preview_theme_id=144035905587';
-  const b = await chromium.launch({ headless: true });
-  const ctx = await b.newContext({ viewport:{width:1440,height:1100} });
-  const p = await ctx.newPage();
-  try {
-    const resp = await p.goto(URL, { waitUntil:'domcontentloaded', timeout:70000 });
-    console.log('HTTP', resp ? resp.status() : '?', '| url:', p.url());
-    // password page?
-    const isPw = await p.$('form[action*="password"], #password');
-    console.log('password-gated:', !!isPw);
-    await p.waitForSelector('.boost-sd__product-item', { timeout: 50000 }).catch(()=>console.log('no boost cards'));
-    await p.waitForTimeout(5000);
-    const r = await p.evaluate(()=>({
-      cards: document.querySelectorAll('.boost-sd__product-item').length,
-      hasColorSort: !!document.querySelector('.dw-colorsort'),
-      hasGridSlider: !!document.querySelector('.dw-grid-slider'),
-      colorSortOptions: [...(document.querySelectorAll('#dw-colorsort-sel option')||[])].map(o=>o.textContent),
-      pillUnderImage: (function(){
-        const c=document.querySelector('.boost-sd__product-item'); if(!c)return null;
-        const ov=c.querySelector('.dw-hover-overlay'); if(!ov)return 'no-pill';
-        const img=c.querySelector('.boost-sd__product-image-wrapper');
-        if(!img)return 'no-img';
-        return ov.getBoundingClientRect().top >= img.getBoundingClientRect().bottom-2 ? 'UNDER-IMAGE' : 'over-image';
-      })()
-    }));
-    console.log(JSON.stringify(r,null,1));
-  } catch(e){ console.log('ERR', e.message); }
-  finally { await b.close(); }
-})();
diff --git a/_tmp-preview2.cjs b/_tmp-preview2.cjs
deleted file mode 100644
index d81bf6b9..00000000
--- a/_tmp-preview2.cjs
+++ /dev/null
@@ -1,33 +0,0 @@
-const { chromium } = require('playwright');
-(async () => {
-  // Pre-set the type filter so the auto-redirect doesn't fire and drop the preview param.
-  const URL = 'https://designer-laboratory-sandbox.myshopify.com/collections/all?pf_t_product_type=Wallcovering&preview_theme_id=144035905587';
-  const b = await chromium.launch({ headless: true });
-  const ctx = await b.newContext({ viewport:{width:1440,height:1100}, deviceScaleFactor:1.5 });
-  const p = await ctx.newPage();
-  try {
-    const resp = await p.goto(URL, { waitUntil:'domcontentloaded', timeout:70000 });
-    console.log('HTTP', resp.status(), '| url:', p.url());
-    console.log('preview param survived:', p.url().includes('preview_theme_id=144035905587'));
-    await p.waitForSelector('.boost-sd__product-item img', { timeout: 50000 }).catch(()=>{});
-    await p.waitForTimeout(6000);
-    // capture order of first 6 card handles BEFORE
-    const before = await p.evaluate(()=>[...document.querySelectorAll('.boost-sd__product-item')].slice(0,6).map(c=>c.id));
-    // trigger Light->Dark
-    await p.selectOption('#dw-colorsort-sel', 'light').catch(e=>console.log('select err', e.message));
-    await p.waitForTimeout(4000);
-    const after = await p.evaluate(()=>[...document.querySelectorAll('.boost-sd__product-item')].slice(0,6).map(c=>c.id));
-    const changed = JSON.stringify(before)!==JSON.stringify(after);
-    console.log('order changed after Light->Dark:', changed);
-    // pill position check
-    const pill = await p.evaluate(()=>{
-      const c=document.querySelector('.boost-sd__product-item'); const ov=c&&c.querySelector('.dw-hover-overlay'); const img=c&&c.querySelector('.boost-sd__product-image-wrapper');
-      if(!ov||!img)return 'missing';
-      return ov.getBoundingClientRect().top >= img.getBoundingClientRect().bottom-2 ? 'UNDER-IMAGE' : 'over-image';
-    });
-    console.log('pill position:', pill);
-    await p.screenshot({ path:'/tmp/dev-preview.png', clip:{x:0,y:0,width:1440,height:1100} });
-    console.log('screenshot saved');
-  } catch(e){ console.log('ERR', e.message); }
-  finally { await b.close(); }
-})();
diff --git a/_tmp-which.cjs b/_tmp-which.cjs
deleted file mode 100644
index 769f30da..00000000
--- a/_tmp-which.cjs
+++ /dev/null
@@ -1,31 +0,0 @@
-const { chromium } = require('playwright');
-(async () => {
-  const b = await chromium.launch({ headless: true });
-  const ctx = await b.newContext({ viewport:{width:1440,height:1100} });
-  const p = await ctx.newPage();
-  try {
-    // Hit preview on myshopify with type filter pre-set; follow cookie
-    await p.goto('https://designer-laboratory-sandbox.myshopify.com/collections/all?pf_t_product_type=Wallcovering&preview_theme_id=144035905587', { waitUntil:'domcontentloaded', timeout:70000 });
-    await p.waitForSelector('.boost-sd__product-item img', { timeout: 50000 }).catch(()=>{});
-    await p.waitForTimeout(5000);
-    const info = await p.evaluate(()=>{
-      // dev-theme markers
-      const overlay = document.getElementById('dw-card-hover-style');
-      const isV5 = overlay ? overlay.textContent.includes('0.78vw') : false;  // v5 smaller font
-      const cs = document.querySelector('.dw-colorsort');
-      const csr = cs ? cs.getBoundingClientRect() : null;
-      const sel = document.getElementById('dw-colorsort-sel');
-      const selr = sel ? sel.getBoundingClientRect() : null;
-      const selVis = sel ? getComputedStyle(sel).visibility : '-';
-      return {
-        renderedDevTheme_v5pill: isV5,
-        colorsortBox: csr?{w:Math.round(csr.width),h:Math.round(csr.height),top:Math.round(csr.top)}:null,
-        selectBox: selr?{w:Math.round(selr.width),h:Math.round(selr.height)}:null,
-        selVisibility: selVis,
-        selOffsetParent: sel ? !!sel.offsetParent : null
-      };
-    });
-    console.log(JSON.stringify(info,null,1));
-  } catch(e){ console.log('ERR', e.message); }
-  finally { await b.close(); }
-})();

← 8f532c58 Hue sort: fix Light->Dark direction (lightest first) + unrea  ·  back to Designer Wallcoverings  ·  auto-save: 2026-06-27T12:09:05 (5 files) — pending-approval/ 14dd204f →