36 lines
1.2 KiB
Markdown
36 lines
1.2 KiB
Markdown
# AGENTS.md
|
||
|
||
Read before writing code.
|
||
|
||
Live files: `README.md`, this file, `docs/PRODUCT.md`, `docs/CAPTURE.md`, `deploy/`.
|
||
|
||
## Slice 1
|
||
|
||
Client-side, phone and PC:
|
||
|
||
1. Open the app and choose one slab photo.
|
||
2. Isolate the slab with one live sensitivity slider. Sheet mode is Auto, Green, or Black. Overlay updates on the source photo as the slider moves.
|
||
3. User approves the edge.
|
||
4. App produces the inventory PNG and the measurements from that photo.
|
||
5. Both are visible on screen.
|
||
|
||
Slice 1 scope: capture through on-screen PNG and measurements.
|
||
|
||
## Acceptance
|
||
|
||
A real slab on a phone: approved edge, inventory PNG on screen, widths and board feet on screen.
|
||
|
||
## Locks
|
||
|
||
- Quantity per listing is one.
|
||
- User enters length, thickness, and SKU.
|
||
- App proposes remaining listing fields. User reviews before create.
|
||
- Non-math fields remain editable until create.
|
||
- `bdft = sqft × thickness_in`
|
||
- Price proposal is `bdft × species $/bdft`. User may replace it. Missing rate leaves price empty.
|
||
- User-entered length, thickness, SKU, price, and taxonomy override computed or inferred values.
|
||
- SKUs matching `SLAB-UAT-*` create as Woo draft.
|
||
- Create works with inference off.
|
||
- Source below the PNG size floor requires a new photo.
|
||
- Existing store SKU blocks create.
|