Component theater
Promise ledger
Every step is a note about something done elsewhere. Recording one contacts nobody, and it waits for a review. The four steps stay distinct: not asked yet, recorded as asked, recorded as answered, recorded as confirmed. A reference holds up to 24 letters, digits and hyphens, is typed by the advisor, and is shown as their entry. No model can ask for a step, and no traveler or supplier view receives one.
Asked and confirmed
Each step is a note about something done somewhere else. Recording one contacts nobody, and it waits for a review.
Garden walk
- Not asked yet
- Recorded as asked
- Recorded as answered
- Recorded as confirmed
Shared family lunch
- Not asked yet
- Recorded as asked
- Recorded as answered
- Recorded as confirmed
Tea ceremony
- Not asked yet
- Recorded as asked
- Recorded as answered
- Recorded as confirmed
What it reads and what it may ask for
each planned item with the step recorded for its supplier, the time that step was recorded for, the supplier's own reference, and whether the plan has moved since
onRecord(row, state, reference): the host prepares a review that records one step for one item
States: nothing planned, not asked yet, recorded as asked, recorded as answered, recorded as confirmed, the plan moved since it was recorded, a reference that is not allowed
Proof
test/commitments.test.tstest/surface-render.test.tstest/browser-showcase/confirm.spec.ts
packages/react/src/surfaces/PromiseLedger.tsx