← back to Wallco Ai

data/yolo-overnight/spot-check-20260525-1257.md

57 lines

# Spot-Check — /design/:id (5 random published designs)

**Run:** 2026-05-25 12:57 PT
**Source pool:** `data/designs.json` filtered `is_published === true` (153 / 276 total)
**RNG picks:** `10125, 10158, 38920, 38857, 39054`

## Port correction
Task prompt said `http://127.0.0.1:9877/design/:id` — port 9877 is `paint-visualizer-agent`
(DW-Agents) and returns `401 Authentication required` on `/design/*`. Wallco-ai's
`/design/:id` route lives on **9905** per `ecosystem.config.js`. All checks below
ran against `http://127.0.0.1:9905`.

## Check criteria
- (a) HTTP 200 on `GET /design/:id`
- (b) Admin pane collapsed by default — zero `<details … class="admin-pane">` and
  zero `<details … class="js-admin-drawer-card">` elements carry the `open` attr
- (c) Image loads — HEAD on the `#cf-img` `src` returns 200
- (d) Crop & Fix modal present in DOM (HTML comment marker
  `<!-- Crop & Fix modal (admin)` and `<h3>Crop &amp; Fix — drag a rectangle…</h3>`)

## Results

| ID | (a) HTTP | (b) admin collapsed | (c) cf-img HEAD | (d) Crop&Fix modal | Verdict |
|---|---|---|---|---|---|
| 10125 | 200 | ✅ admin-pane 0/4 open · admin-drawer 0/11 open | 200 (`recolor_1779399811221_p38890_indigo_…png`) | ✅ present | PASS |
| 10158 | 200 | ✅ admin-pane 0/4 open · admin-drawer 0/11 open | 200 (`recolor_1779696536335_p39284_hermes_…png`) | ✅ present | PASS |
| 38920 | 200 | ✅ admin-pane 0/4 open · admin-drawer 0/11 open | 200 (`1779400802398_1731033101.png`) | ✅ present | PASS |
| 38857 | 200 | ✅ admin-pane 0/4 open · admin-drawer 0/11 open | 200 (`1779399125922_861842552.png`) | ✅ present | PASS |
| 39054 | 200 | ✅ admin-pane 0/4 open · admin-drawer 0/11 open | 200 (`cactus_pine_pass3_1779412733888_…png`) | ✅ present | PASS |

**5/5 PASS** — no regressions found.

## Notes
- The buyer-facing `<details class="collapse-pane js-buyer-drawer-card" open>`
  *is* open by default — intentional, customer-side, not an admin pane.
- `#cf-img` is the Crop & Fix preview image (initialized to the main design
  image src). All five resolved via the local `/designs/img/…` static mount.
- Modal detection used both the HTML comment `<!-- Crop & Fix modal (admin)`
  and the `<h3>Crop &amp; Fix — drag a rectangle over the problem area</h3>`
  heading — both present on every page.

## Commands used
```bash
# pick
node -e "const d=require('./data/designs.json');const pub=d.filter(x=>x.is_published===true);const ids=pub.map(x=>x.id);const pick=[];for(let i=0;i<5&&ids.length;i++)pick.push(ids.splice(Math.floor(Math.random()*ids.length),1)[0]);console.log(pick.join(' '));"

# fetch + checks
for id in 10125 10158 38920 38857 39054; do
  curl -s -o /tmp/spotcheck/d$id.html -w "$id HTTP=%{http_code}\n" "http://127.0.0.1:9905/design/$id"
  grep -cE '<details[^>]*js-admin-drawer-card[^>]*\bopen\b' /tmp/spotcheck/d$id.html
  grep -cE '<details[^>]*class="[^"]*admin-pane[^"]*"[^>]*\bopen\b' /tmp/spotcheck/d$id.html
  grep -cE 'Crop &amp; Fix modal' /tmp/spotcheck/d$id.html
  cf=$(grep -oE 'id="cf-img"[^>]*src="[^"]+"' /tmp/spotcheck/d$id.html | grep -oE 'src="[^"]+"' | sed 's/src="//;s/"//')
  curl -s -o /dev/null -w "%{http_code}\n" -I "http://127.0.0.1:9905$cf"
done
```