Skip to content
Travel Component Kit

Component kit

Component theater

Review approval

Apply and Discard await the host's server actions. A failed request returns the card to waiting and shows the reason. The card never writes a trip on its own and collects no discard reason.

Isolated synthetic fixture. To exercise the live room authority, open the flow linked below.

Schedule Garden pause at 16:30
Only the change shown below would be applied. Nothing is reserved or sent.
Garden pause
Unscheduled → 16:30

Approval needed: Schedule Garden pause at 16:30

What it reads and what it may ask for

a waiting proposal's summary and before-and-after changes

onApply: awaits the host's apply action onDiscard: awaits the host's discard action

States: waiting, submitting, approved, discarded, rejected with error, read-only

Proof

  • test/vendor-wrappers.test.ts
  • test/browser-showcase/home-presentation.spec.ts
  • test/browser-showcase/story.spec.ts
  • test/browser-showcase/vendor-fixture.spec.ts

packages/ui/src/chat/review-approval.tsx

All partsStart sampleTry it in the guided walkthrough