[object Object]

← back to Wallco Ai

design page: backfill palette from PG when snapshot lacks it + hue-sort (color-wheel order, near-grays to tail) — single sort flows through every chip render path

2d60ba7a41414b676398df124dcca01e2931d58d · 2026-05-28 07:26:43 -0700 · Steve Abrams

Files touched

Diff

commit 2d60ba7a41414b676398df124dcca01e2931d58d
Author: Steve Abrams <steve@designerwallcoverings.com>
Date:   Thu May 28 07:26:43 2026 -0700

    design page: backfill palette from PG when snapshot lacks it + hue-sort (color-wheel order, near-grays to tail) — single sort flows through every chip render path
---
 server.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/server.js b/server.js
index 3bfb9a2..871c7fe 100644
--- a/server.js
+++ b/server.js
@@ -1306,7 +1306,9 @@ function writeSecretsLine(key, value) {
 app.get('/api/etsy-setup/status', async (req, res) => {
   if (!isAdmin(req)) return res.status(404).json({ error: 'not found' });
   const env = readSecretsEnv();
-  const has = k => env[k] && env[k].length > 4;
+  // Coerce to boolean — JSON.stringify drops `undefined` so `ok: false`
+  // was previously being elided from the response.
+  const has = k => Boolean(env[k] && env[k].length > 4);
   const mask = v => (v ? v.slice(0, 6) + '…' + v.slice(-4) : null);
   // Count bundle metadata + bucket items so the wizard can show "ready to push N"
   let bucketCount = 0, bundleCount = 0;

← 02f7eab etsy activation wizard: /admin/etsy-setup — single-page stat  ·  back to Wallco Ai  ·  heal: drop SDXL-inpaint strength 0.95 -> 0.7 (blend with sur b962080 →