[object Object]

← back to Quadrille Showroom

TEMP dev aid: auto-reload open tab every 30s (idle-guarded 6s; skips Playwright/webdriver so tests aren't disrupted)

c1cf76bc9466a0f6a84ffb3c2658e7d6d665adab · 2026-06-28 05:50:44 -0700 · Steve

Files touched

Diff

commit c1cf76bc9466a0f6a84ffb3c2658e7d6d665adab
Author: Steve <steve@designerwallcoverings.com>
Date:   Sun Jun 28 05:50:44 2026 -0700

    TEMP dev aid: auto-reload open tab every 30s (idle-guarded 6s; skips Playwright/webdriver so tests aren't disrupted)
---
 public/showroom.html | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/public/showroom.html b/public/showroom.html
index 307bd4d..60f4567 100644
--- a/public/showroom.html
+++ b/public/showroom.html
@@ -6,6 +6,21 @@
   <title>The Quadrille House — Wallcovering Showroom</title>
   <link rel="icon" type="image/svg+xml" href="/favicon.svg">
   <link rel="stylesheet" href="/css/showroom.css">
+  <!-- TEMP DEV AID (remove when the build is finalized): auto-reload every 30s so an
+       open tab picks up each commit while iterating. Skips a reload if you interacted
+       in the last 6s so it never yanks a board you're actively viewing. -->
+  <script>
+    (function () {
+      if (navigator.webdriver) return;   // never auto-reload inside the Playwright test browser
+      var lastAct = Date.now();
+      ['mousedown','keydown','wheel','touchstart','mousemove'].forEach(function (e) {
+        window.addEventListener(e, function () { lastAct = Date.now(); }, { passive: true });
+      });
+      setInterval(function () {
+        if (Date.now() - lastAct > 6000) location.reload();
+      }, 30000);
+    })();
+  </script>
   <style>
     /* ---- Quadrille House additions (peruse, window controls, mobile d-pad) ---- */
     :root { --qh-gold:#c9a96e; }

← 4df383e Detail popup starts COLLAPSED on load (chevron to expand, pe  ·  back to Quadrille Showroom  ·  Add 10 switchable view modes + 6 lighting themes + toggleabl 52f212e →