#!/bin/bash
echo "=== HOMEPAGE COUNTS ==="
curl -s http://localhost:3001/ | grep -oP '[0-9]+\.000\+' | head -5
curl -s http://localhost:3001/ | grep -oP '[0-9]+\+ (Nederlandse shops|shops)' | head -5

echo "=== SNEAKERS TOTAL ON LISTING ==="
curl -s http://localhost:3001/sneakers | grep -oP '[0-9]+ sneakers gevonden'

echo "=== REAL PRODUCT SLUGS ON HOMEPAGE ==="
curl -s http://localhost:3001/ | grep -oP 'href="/sneakers/[^"]+"' | head -3

echo "=== CHECK DB SLUG EXISTS ==="
echo "SELECT EXISTS(SELECT 1 FROM products WHERE slug='nike-air-max-1-86-og-big-bubble');" | docker exec -i supabase-db psql -U postgres -d sneakerpicks -t
