POC [08/16]: Publish outcome, cleanup, and failure recovery — UIE-5, UIE-6, API-6 #46
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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:
Out of scope:
Done when / evidence: Playwright E2E tests green for UIE-5, UIE-6; API contract test green for API-6. Evidence path in commit message.
POC [08/16]: Publish outcome, cleanup, and failure recovery — UIE-5, UIE-6to POC [08/16]: Publish outcome, cleanup, and failure recovery — UIE-5, UIE-6, API-6Verified 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.