← back to 1980swallpaper
snapshot before refactor pass
b862a1d1031ccbaebc9671e2302dcf71c401779a · 2026-05-25 20:45:09 -0700 · SteveStudio2
Files touched
M scripts/pull-from-shopify.jsM site.config.json
Diff
commit b862a1d1031ccbaebc9671e2302dcf71c401779a
Author: SteveStudio2 <steve@designerwallcoverings.com>
Date: Mon May 25 20:45:09 2026 -0700
snapshot before refactor pass
---
scripts/pull-from-shopify.js | 10 +++++++++-
site.config.json | 12 ++++++------
2 files changed, 15 insertions(+), 7 deletions(-)
diff --git a/scripts/pull-from-shopify.js b/scripts/pull-from-shopify.js
index ddcc1d2..0ffe97e 100644
--- a/scripts/pull-from-shopify.js
+++ b/scripts/pull-from-shopify.js
@@ -6,6 +6,8 @@
const https = require('https');
const fs = require('fs');
const path = require('path');
+const { classifyAesthetic } = require('../../_shared/microsite-aesthetic');
+const SITE_CFG_RAILS = (() => { try { return require('../site.config.json').rails || []; } catch { return []; } })();
// Single regex covering the 16 retag candidates (case-insensitive).
// Patterns are matched against the product TITLE.
@@ -63,6 +65,12 @@ function aestheticOf(title) {
return '1980s';
}
+function classifyForSite(tags, title) {
+ const railsMatch = classifyAesthetic(tags, SITE_CFG_RAILS);
+ if (railsMatch && railsMatch !== 'all') return railsMatch;
+ return aestheticOf(title);
+}
+
(async () => {
const all = [];
for (let page = 1; page <= 30; page++) {
@@ -86,7 +94,7 @@ function aestheticOf(title) {
product_type: p.product_type,
image_url: p.images[0].src,
tags: p.tags || [],
- aesthetic: aestheticOf(p.title),
+ aesthetic: classifyForSite(p.tags, p.title),
product_url: `https://designerwallcoverings.com/products/${p.handle}`,
}));
diff --git a/site.config.json b/site.config.json
index 5c2c58b..00be729 100644
--- a/site.config.json
+++ b/site.config.json
@@ -10,12 +10,12 @@
"accent": "#ff007a"
},
"rails": [
- "memphis",
- "post-modern",
- "neon",
- "geometric",
- "glam",
- "pastel"
+ "contemporary",
+ "texture",
+ "beige",
+ "gray",
+ "traditional",
+ "brown"
],
"port": 9909
}
← 183f991 retag aesthetic from PG: 592 rows updated
·
back to 1980swallpaper
·
wire api-vendor-redact middleware (close vendors-facet leak) f9c89e6 →