← back to Architecturalwallcoverings
fix: /api/facets total now reflects niche-filtered list served
5a7d21b5af6d9e1893d79731a2a7420f337b3093 · 2026-05-25 20:49:15 -0700 · SteveStudio2
Previously reported the raw PRODUCTS.length (600), but only the niche-
filtered 518 are actually returned to the grid via /api/products. The
total now matches what users see and what the per-aesthetic counts sum to.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Files touched
Diff
commit 5a7d21b5af6d9e1893d79731a2a7420f337b3093
Author: SteveStudio2 <steve@designerwallcoverings.com>
Date: Mon May 25 20:49:15 2026 -0700
fix: /api/facets total now reflects niche-filtered list served
Previously reported the raw PRODUCTS.length (600), but only the niche-
filtered 518 are actually returned to the grid via /api/products. The
total now matches what users see and what the per-aesthetic counts sum to.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---
server.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/server.js b/server.js
index 99f7209..48b11f6 100644
--- a/server.js
+++ b/server.js
@@ -191,7 +191,7 @@ app.get('/api/facets', (req, res) => {
aesthetics[p.aesthetic] = (aesthetics[p.aesthetic] || 0) + 1;
vendors[p.vendor] = (vendors[p.vendor] || 0) + 1;
}
- res.json({ aesthetics, vendors, total: PRODUCTS.length });
+ res.json({ aesthetics, vendors, total: PRODUCTS_NICHE.length });
});
app.get('/api/health', (req, res) => res.json({ status: 'ok', count: PRODUCTS_NICHE.length, dropped: DROPPED }));
← 5818e0c snapshot before refactor pass
·
back to Architecturalwallcoverings
·
feat: add .bak/.pre- 404 guard + clean-URL routes for nav 2c79e24 →