esp-server-sales

ARCHIVED

"I just want it to be stored in a db and retrieved. I don't care about local storage once that works." "this phone only -- as a temporary measure only. Obvi not a long term solution." — Katy, 2026-11-03, asking what it would take to keep the full photos

STAGES

  1. proposal11-11
  2. requirements11-11
  3. design11-11
  4. tasks11-11
  5. build—
  6. archived11-11

CAPABILITY

  • esp-server-sales5 requirements

OUTCOMES — AND HOW EACH IS MEASURED

  • ✓1.1An edit reaches the server: user renames an item or moves it to Sell, and within 5 seconds the sale on the server shows it — 2026-11-03 live, local `pnpm dev` against Experiment Hub 2.0 after migration 021: moving an item to Sell showed on the server in **2.7 s**not stated
  • ✓1.2A dropped signal delays the save and loses nothing: changes made offline reach the server once the signal is back, without the user doing anything — 2026-11-03 live, local `pnpm dev` against Experiment Hub 2.0 after migration 021: the move to Donate made while every save 502'd landed on the server once 021 existed; `sync.test.ts` (offline, backoff, reload)not stated
  • ✓1.3An older copy never overwrites a newer one: a save that started earlier but arrives later doesn't replace the newer version — 2026-11-03 live, local `pnpm dev` against Experiment Hub 2.0 after migration 021: a version-1 copy named "STALE COPY" from the same phone answered `saved: false` and the server kept the newer name; `sales-routes.test.ts`not stated
  • ✓1.4A walkthrough's photos reach the server: each kept original is stored privately under that sale — 2026-11-03 live, local `pnpm dev` against Experiment Hub 2.0 after migration 021: a photo added to an item landed in the private `esp-photos` bucket under its sale (19,050 bytes, image/jpeg) with its `esp_sale_photos` rownot stated
  • ~1.5A failed upload is retried: a photo that failed or lost signal reaches the server later on its own — `sync.test.ts` (a failed upload retried on backoff; a missing photo dropped); **not forced live**not stated
  • ✓1.6Sales come back after Safari clears the site: Home lists them, and each opens with its items, prices, destinations, corrections and photos — 2026-11-03 live, local `pnpm dev` against Experiment Hub 2.0 after migration 021: after clearing localStorage, sessionStorage and IndexedDB (cookie kept), Home listed all 4 sales and "Same answer check B" opened from the server with its item, $50–$100 band and destinationnot stated
  • ✓1.7A photo the phone dropped loads from the server, and adjusting its box works — 2026-11-03 live, local `pnpm dev` against Experiment Hub 2.0 after migration 021: on the wiped phone the photo screen showed the 1200×900 original from the server and re-cached it (`assets/photo-from-server-after-wipe-375.jpg`); `photos.test.ts`. The box editor itself wasn't driven (it reads the same `getPhoto`)not stated
  • ✓1.8Sales already on the phone go up once: the first open of this version sends them, and opening again doesn't send them twice — 2026-11-03 live, local `pnpm dev` against Experiment Hub 2.0 after migration 021: the 4 sales queued before 021 landed once; after the wipe and reloads no `updated_at` movednot stated
  • ✓1.9A first visit gets a private id: the server sets a cookie page scripts can't read, and the phone's sales are stored under it — `device.test.ts`; 2026-11-03 live, local `pnpm dev` against Experiment Hub 2.0 after migration 021: every row has the same `device_hash`, never the cookie; `document.cookie` can't see itnot stated
  • ✓1.10Another device or a guessed sale id gets nothing: the server answers as if the sale doesn't exist — `sales-routes.test.ts`; 2026-11-03 live, local `pnpm dev` against Experiment Hub 2.0 after migration 021: `curl` with no cookie and with another phone's cookie got 404 on the sale, the photo, delete and an overwrite, and an empty list; the sale was unchangednot stated
  • ✓1.11A photo is never handed out as a link: it's served from the hub's own route, to its own phone only — scenario reworded 2026-11-03 (photos are served, never linked; see the spec note and design D4); `sales-routes.test.ts`: the GET returns bytes, no `location`, `no-store`not stated
  • ✓1.12The server is down mid-walkthrough: walking, correcting and lookups work as before, and the changes go up once the server answers — 2026-11-03 with the tables missing every save 502'd and the app worked (Home, a move to Donate, no error shown); 2026-11-03 live, local `pnpm dev` against Experiment Hub 2.0 after migration 021: those changes then went upnot stated
  • ✓1.13"Photo no longer on this device" is rare: with the photo on the server and the phone online, the photo loads instead — 2026-11-03 live, local `pnpm dev` against Experiment Hub 2.0 after migration 021: the same photo screen showed no "Photo no longer on this device"not stated

WHAT HAPPENED

  1. ARCHIVED

    proposal and specs and design and tasks and archive landed

    2026-11-11 · 1 pull request
    • #589docs(openspec): archive the estate sale planner's first push

History read from a manifest built at 2026-12-02 (4cf8a06).

1 pull request, found by commits touching the change folder