[object Object]

← back to Dw Fleet Registry

disable-grid sweep: 44 hero-4grid overlays off so unique high-res heroes show full-bleed (1 known residual: PANEL-grid variant on a few sites)

6006e2f0169f5979deeb094f42381eeb224c3d6d · 2026-06-01 14:11:37 -0700 · Steve Abrams

Files touched

Diff

commit 6006e2f0169f5979deeb094f42381eeb224c3d6d
Author: Steve Abrams <steve@designerwallcoverings.com>
Date:   Mon Jun 1 14:11:37 2026 -0700

    disable-grid sweep: 44 hero-4grid overlays off so unique high-res heroes show full-bleed (1 known residual: PANEL-grid variant on a few sites)
---
 disable-grid.mjs | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/disable-grid.mjs b/disable-grid.mjs
new file mode 100644
index 0000000..c218afa
--- /dev/null
+++ b/disable-grid.mjs
@@ -0,0 +1,33 @@
+#!/usr/bin/env node
+// Disable the hero-4grid overlay on grid sites so the single high-res room/pattern
+// hero (hero-bg.jpg) shows full-bleed. Comments ONLY the standalone active script
+// line (the inline comment reference on another line is left alone). Commits per site.
+//   node disable-grid.mjs   (reads /tmp/fleet-targets.txt)
+
+import fs from 'node:fs';
+import os from 'node:os';
+import path from 'node:path';
+import { execSync } from 'node:child_process';
+
+const PROJECTS = path.join(os.homedir(), 'Projects');
+const sh = (c, cwd) => { try { return execSync(c, { cwd, stdio: ['ignore','pipe','pipe'] }).toString().trim(); } catch { return null; } };
+const targets = fs.readFileSync('/tmp/fleet-targets.txt', 'utf8').split('\n').filter(Boolean);
+
+let done = 0, skipped = 0;
+for (const slug of targets) {
+  const idx = path.join(PROJECTS, slug, 'public', 'index.html');
+  if (!fs.existsSync(idx)) { continue; }
+  let html = fs.readFileSync(idx, 'utf8');
+  // standalone active script line only (^ anchored, multiline) — leaves inline comment refs alone
+  const re = /^(\s*)(<script\s+src="\/hero-4grid\.js"[^>]*><\/script>)\s*$/m;
+  if (!re.test(html)) { skipped++; continue; }
+  html = html.replace(re, '$1<!-- hero-4grid grid DISABLED so the single high-res hero shows full-bleed --><!-- $2 -->');
+  fs.writeFileSync(idx, html);
+  const dir = path.join(PROJECTS, slug);
+  sh('git checkout -B style-rebuild-pilot', dir);
+  sh('git add public/index.html', dir);
+  const c = sh('git -c user.email="steve@designerwallcoverings.com" -c user.name="Steve Abrams" commit -q -m "disable hero-4grid overlay so the unique high-res room/pattern hero shows full-bleed" && git rev-parse --short HEAD', dir);
+  done++;
+  console.log(`${c ? 'DONE ' : 'noop '} ${slug.padEnd(24)} ${c || ''}`);
+}
+console.log(`\n${done} grids disabled · ${skipped} already single-hero/commented`);

← 0e3363a viewer: proxy cross-origin hero images through /img — fleet  ·  back to Dw Fleet Registry  ·  fleet hero/ideas transform tool 4e12b31 →