WI-032 · Next Build Slices · rooms-zones

Rooms / zones / pickup areas in data model and UI

queued P0 low risk   Owner: TBD   0% · 0/1 tasks complete

Gates: C1 Requirements: REQ-OPS-001 Updated: 2026-06-22

At a glance

CodeWI-032
PhaseOperational Floor POC
Order62 of 93
Story points5
Primary surfaceapps/web + supabase
Retires
Depends onSprint 1: Spine POC - identity/status/QR foundation
BlocksLabel batch workflow and QR print/pack model, Bulk edit, mass label, and batch discount operations
Evidence
NewAnalysis + capture-to-sale tracking

Goals

Rooms / zones / pickup areas in data model and UI — advances C1 toward its gate(s).

Implementation — what to build

Data model (supabase/schema.sql)

  • Add sale_zones: id, estate_sale_id (FK), name, kind enum('room','zone','pickup_area'), sort_order, created_at.
  • Add nullable zone_id (FK -> sale_zones) on estate_sale_items.
  • Idempotent DDL; seed a few zones per demo sale in src/lib/*DemoData.ts.

Domain (src/lib/troveZones.ts)

  • list/create/rename/reorder/delete zones (delete reassigns its items to null).
  • assignItemsToZone(itemIds, zoneId) — writes through the normal item-update path (audited).

UI (apps/web)

  • Zone manager in sale setup: add / rename / drag-reorder rooms, zones, pickup areas.
  • Zone picker on item create/edit; zone chip on item cards.
  • Group + filter the items list by zone (plus a 'No zone' bucket).

Carry-through

  • Expose zone on the label payload (WI-033) and the client report (WI-035).

Acceptance

  • Items group + filter by room/zone/pickup area, and zone flows to labels + reports.
  • POC: no RLS yet — follows the P6 owner-scoped path later.

Checklist

  • C1 Rooms, zones, and pickup areas exist in the tracking model.

Gates & testing

  • C1 Rooms, zones, and pickup areas exist in the tracking model.
    CODE TEST

Requirements

Verify (done when)

items group and filter by room/zone/pickup area.

Cost triggers

No paid API / infra spend triggered by this item.

Status & editing

queued   Sprint: Sprint 2 - Operational Floor POC

Edit status / sprint on the ★ Live Board → — changes are logged live with who / when / why.

Human-in-the-loop

No human tasks linked.

Findings

None recorded yet.

Concerns

None recorded yet.

Risks

None recorded yet.

Tech debt

None recorded yet.

Tools used

No tool calls recorded.

Files & artifacts

No files / artifacts recorded.

Update log

No log entries yet.