← All tests

Product image — uploadable (prod)

Karou (2026-06-22): the product form only had a paste-a-URL field for the image — make it uploadable from the computer.

Gate 2 5/5 passed + 51/51 regression. nix-cafe 2091c28, no migration. The product form’s “Image URL” field becomes a proper image control: an Upload button (reusing the existing product-image R2 uploader, gated on nix_cafe.products.edit), a thumbnail preview, and a Remove action — with the URL field kept as a paste-a-link fallback. Same on the per-variant detail page. Verified end-to-end: a PNG upload populates the field with its R2 URL, the preview renders, and the URL resolves (HTTP 200, image/png). No new infra — the upload route already supported this kind.
Product form with an uploaded image preview
Product detail — after uploading: thumbnail preview + the R2 URL filled in, with Upload / Remove.