Ty e5afc7524b fix(fe): upload slab photos to the server before publish
ensureServerSlab sent calibration_photo_id at create, but slab_photos rows are
only created by POST /slabs/{id}/photos, which the frontend never called - so
the INSERT hit FOREIGN KEY (calibration_photo_id REFERENCES slab_photos(id))
and every create failed with a generic 400, blocking the whole create->publish
walk.

- stop sending calibration_photo_id at create
- upload every draft photo (original + processed PNG) right after the slab row
  exists, via new review/photoUpload.ts (multipart FormData, same error
  envelope so failures surface through fail(e))
- link calibration_photo_id in the existing review PUT, once the row exists
- extract the role rule into lineup.photoRole() so the review strip and the
  uploader cannot disagree
2026-09-25 12:14:35 -07:00
…

SlabUploader

Lists one-of-a-kind wood slabs on Whidbey Wood Store.

Start at docs/README.md for goals, what already shipped, and Milestone 3.

Artifact File
Docs map docs/README.md
Structure contract docs/STRUCTURE.md
Requirements (normative) docs/REQUIREMENTS.md
Milestones (ID subsets) docs/MILESTONES.md
Product overview docs/PRODUCT.md
Invariants and agent context AGENTS.md
Milestone 1 Capture (shipped) docs/capabilities/CAPTURE.md
Milestone 2 Photos (shipped) docs/capabilities/PHOTOS.md
Milestone 3 Create (paused — requirements reconciliation) docs/capabilities/CREATE.md
UAT practice walk docs/UAT-PRACTICE.md
Hosting deploy/

Owner: Ty. Store: https://www.whidbeywoodstore.com/ Repo: Ty_Tech/SlabUploader

S
Description
SlabUploader — mobile-first live-edge slab capture → WooCommerce publish (design + implementation). Mirrored from local TrueNAS TyTech_Internal/SlabUploader.
Readme MIT 21 MiB
Languages
TypeScript 43.5%
Python 37%
Svelte 18.8%
Shell 0.4%
Dockerfile 0.2%