Skip to content
Travel Component Kit

Component kit

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

    1. Not asked yet
    2. Recorded as asked
    3. Recorded as answered
    4. Recorded as confirmed
  • Shared family lunch

    1. Not asked yet
    2. Recorded as asked
    3. Recorded as answered
    4. Recorded as confirmed
  • Tea ceremony

    1. Not asked yet
    2. Recorded as asked
    3. Recorded as answered
    4. 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.ts
  • test/surface-render.test.ts
  • test/browser-showcase/confirm.spec.ts

packages/react/src/surfaces/PromiseLedger.tsx

All partsStart sample