POC [08/16]: Publish outcome, cleanup, and failure recovery — UIE-5, UIE-6, API-6 #46

Closed
opened 2026-09-07 06:19:35 +00:00 by grokbot_ty · 1 comment
Owner

Branch: poc (from gate-b after Gate B accepted)

Sprint: POC · Order 8/16 · Depends on: POC [06/16], POC [07/16]

Acceptance (IMPL-PLAN): Publish success: screen shows listing created, woo_product_id when available; local draft and photos gone; slab status published. Publish failure: plain message, no status number, no stack; retry from same screen. Pre-condition validation: publish returns 422 with field keys for missing required fields; UI maps fields, no raw code.

Test-SPEC case IDs: UIE-5, UIE-6, API-6

Same-PR tests: Tests-with-code — Playwright E2E tests for UIE-5, UIE-6; API contract test for API-6. Assert published state, cleanup, retry path preserves state; pre-condition 422 with field keys.

In scope:

  • Publish success: screen shows listing created, woo_product_id when available; local draft and photos gone; slab status published
  • Publish failure: plain message, no status number, no stack; retry from same screen without re-photographing
  • POST /api/v1/slabs/{id}/publish: pre-condition check returns 422 with field keys for missing required fields; UI maps fields, no raw code

Out of scope:

  • Woo publish backend create, duplicate/stale recovery, settings UI, inference

Done when / evidence: Playwright E2E tests green for UIE-5, UIE-6; API contract test green for API-6. Evidence path in commit message.

**Branch:** `poc` (from gate-b after Gate B accepted) **Sprint:** POC · Order 8/16 · Depends on: POC [06/16], POC [07/16] **Acceptance (IMPL-PLAN):** Publish success: screen shows listing created, woo_product_id when available; local draft and photos gone; slab status published. Publish failure: plain message, no status number, no stack; retry from same screen. Pre-condition validation: publish returns 422 with field keys for missing required fields; UI maps fields, no raw code. **Test-SPEC case IDs:** UIE-5, UIE-6, API-6 **Same-PR tests:** Tests-with-code — Playwright E2E tests for UIE-5, UIE-6; API contract test for API-6. Assert published state, cleanup, retry path preserves state; pre-condition 422 with field keys. **In scope:** - Publish success: screen shows listing created, woo_product_id when available; local draft and photos gone; slab status published - Publish failure: plain message, no status number, no stack; retry from same screen without re-photographing - POST /api/v1/slabs/{id}/publish: pre-condition check returns 422 with field keys for missing required fields; UI maps fields, no raw code **Out of scope:** - Woo publish backend create, duplicate/stale recovery, settings UI, inference **Done when / evidence:** Playwright E2E tests green for UIE-5, UIE-6; API contract test green for API-6. Evidence path in commit message.
grokbot_ty added this to the POC milestone 2026-09-07 06:19:35 +00:00
grokbot_ty added the pocpoc-seq-08 labels 2026-09-07 06:19:35 +00:00
grokbot_ty changed title from POC [08/16]: Publish outcome, cleanup, and failure recovery — UIE-5, UIE-6 to POC [08/16]: Publish outcome, cleanup, and failure recovery — UIE-5, UIE-6, API-6 2026-09-07 06:28:07 +00:00
Author
Owner

Verified in main @ 0c00d25:

✅ Success: woo_product_id shown, photos purged, device draft cleared, onPublished() (Publish.svelte:44,47,89)
✅ Failure: plain message, no status/stack, Retry re-publishes same slab without re-photographing (Publish.svelte:53,115)
✅ Pre-condition 422: unpublishable with missing field keys, UI maps to friendly message (publish.py:151, Publish.svelte:100-106)

All three acceptance criteria met.

Verified in main @ 0c00d25: ✅ Success: woo_product_id shown, photos purged, device draft cleared, onPublished() (Publish.svelte:44,47,89) ✅ Failure: plain message, no status/stack, Retry re-publishes same slab without re-photographing (Publish.svelte:53,115) ✅ Pre-condition 422: unpublishable with missing field keys, UI maps to friendly message (publish.py:151, Publish.svelte:100-106) All three acceptance criteria met.
Sign in to join this conversation.
No Label poc poc-seq-08
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Ty_Tech/SlabUploader#46