← back to 1980swallpaper
sort: pass state.sort to /api/products so the sort select actually re-sorts the grid
18c97fc8003acac5597e1c32ff8d7f0ac69e0ea5 · 2026-05-19 08:40:30 -0700 · SteveStudio2
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Files touched
Diff
commit 18c97fc8003acac5597e1c32ff8d7f0ac69e0ea5
Author: SteveStudio2 <steve@designerwallcoverings.com>
Date: Tue May 19 08:40:30 2026 -0700
sort: pass state.sort to /api/products so the sort select actually re-sorts the grid
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---
public/index.html | 1 +
1 file changed, 1 insertion(+)
diff --git a/public/index.html b/public/index.html
index f3a3b9f..6d261d3 100644
--- a/public/index.html
+++ b/public/index.html
@@ -543,6 +543,7 @@ async function loadGridPage() {
const params = new URLSearchParams({ page:state.page, limit:24 });
if (state.q) params.set('q', state.q);
if (state.facet !== 'all') params.set('aesthetic', state.facet);
+ if (state.sort) params.set('sort', state.sort);
let data;
try {
const r = await fetch('/api/products?' + params);
← f59f6fe hero-4grid: relocate json from data/ to public/ for Express
·
back to 1980swallpaper
·
server: facets total counts niche list, .bak 404-guard, clea 7fc94bf →