← back to Designer Wallcoverings
Add read-only diagnostic for New Arrivals Boost-scope bug (native ~586 vs Boost 27726)
64c75d26a3532126b6577ebbac1a93a4e3bcaeb6 · 2026-06-22 18:49:10 -0700 · Steve Studio
Files touched
A audits/new-arrivals-boost-scope/diagnose.sh
Diff
commit 64c75d26a3532126b6577ebbac1a93a4e3bcaeb6
Author: Steve Studio <steve@designerwallcoverings.com>
Date: Mon Jun 22 18:49:10 2026 -0700
Add read-only diagnostic for New Arrivals Boost-scope bug (native ~586 vs Boost 27726)
---
audits/new-arrivals-boost-scope/diagnose.sh | 32 +++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
diff --git a/audits/new-arrivals-boost-scope/diagnose.sh b/audits/new-arrivals-boost-scope/diagnose.sh
new file mode 100755
index 00000000..c96f1b84
--- /dev/null
+++ b/audits/new-arrivals-boost-scope/diagnose.sh
@@ -0,0 +1,32 @@
+#!/usr/bin/env bash
+# New Arrivals / Boost scope diagnostic — read-only.
+# Proves: Shopify-native collection membership (~586) vs Boost-rendered storefront (27,726).
+set -euo pipefail
+cd "$(dirname "$0")/../.."
+TOKEN=$(grep SHOPIFY_ADMIN_TOKEN .env | sed 's/.*=//' | tr -d '\r\n ')
+DOMAIN="designer-laboratory-sandbox.myshopify.com"
+
+echo "== 1. Smart collection rule + true count (Admin API) =="
+curl -s "https://$DOMAIN/admin/api/2024-10/graphql.json" \
+ -H "X-Shopify-Access-Token: $TOKEN" -H "Content-Type: application/json" \
+ -d '{"query":"{ collection(id:\"gid://shopify/Collection/167327760435\"){ title handle sortOrder ruleSet{appliedDisjunctively rules{column relation condition}} productsCount{count} } }"}' \
+ | python3 -m json.tool
+
+echo "== 2. Shopify-NATIVE membership (bypasses Boost) =="
+total=0
+for p in 1 2 3 4; do
+ c=$(curl -s -A "Mozilla/5.0" "https://www.designerwallcoverings.com/collections/new-arrivals/products.json?limit=250&page=$p" \
+ | python3 -c "import sys,json;print(len(json.load(sys.stdin).get('products',[])))")
+ echo " native page $p: $c"; total=$((total+c)); [ "$c" -lt 250 ] && break
+done
+echo " NATIVE TOTAL (Boost-independent): $total"
+
+echo "== 3. Oldest active Wallcoverings — are they tagged 'New Arrival'? (should be False) =="
+curl -s "https://$DOMAIN/admin/api/2024-10/graphql.json" \
+ -H "X-Shopify-Access-Token: $TOKEN" -H "Content-Type: application/json" \
+ -d '{"query":"{ products(first:5, query:\"status:active product_type:Wallcovering\", sortKey:CREATED_AT, reverse:false){ edges{ node{ title createdAt tags } } } }"}' \
+ | python3 -c "import sys,json; [print(n['node']['createdAt'][:10], 'NewArrival='+str('New Arrival' in n['node']['tags']), n['node']['title'][:50]) for n in json.load(sys.stdin)['data']['products']['edges']]"
+
+echo
+echo "EXPECTED: collection count ~586, native total ~500, oldest tagged=False."
+echo "If the Boost storefront still shows ~27,726 -> Boost is not scoped to the collection (server-side index/scope bug)."
← cdf6f8d5 hfilter: always start MutationObserver so late-rendered Boos
·
back to Designer Wallcoverings
·
auto-save: 2026-06-22T19:08:09 (1 files) — shopify/push-coll 837297e4 →