States
Every state an order, a listing and an offer can be in, and every component that says so. One config per system decides a state's colour, icon and words, so its badge, its card and its row never disagree. Everything here is the live component, fed fixtures.
Orders
Pick a state to see all it wears: its badge as each reader sees it, and its status card on the item page and the order page. Where an order stands is one leaf of the order's statechart (orderLeafOf); orders-status-config.tsx gives it its colour and icon, the dictionaries its words.
Awaiting payment
pending_payment · Shipping · warning
Badge
Status card
Awaiting buyer payment
Awaiting buyer payment
Awaiting payment
Awaiting payment
Order card
The order in the seller's and the buyer's lists: who it is with, its items, its state and its total, its next action at the foot.
The deal in the thread
Where the deal stands in the two members' thread, said once: an island under the thread's bar, the item in a ring that fills as the deal moves, opening into what it costs or earns and what to do now.
Seller, just after the sale
Buyer, while it travels
Buyer, an offer out
Listings
A listing's own state (listings-status-config.ts) colours its bar and its notice; who reads it decides what it says.
Status bar
Across the top of the item page, and at the foot of the seller's item card. The seller reads their own state, a party to an order reads the outcome, everyone else reads why they can't buy.
Draft
seller only
Available
seller only
Hidden
seller only: available, not visible
Reserved
seller, reserved by an offer
Sold
seller with an order
Bought
buyer with an order
Reserved
everyone else
Sold
everyone else
Notice card
The details column for anyone who is neither party: reserved is a wait, sold is gone. Nothing to celebrate.
Reserved
anyone but the seller and the buyer
This item has been reserved
Sold
anyone but the seller and the buyer
This item has been sold
Listing card
A listing card's state over its photo, wherever the listing is a card.
Available
Sold
Shipped
Delivered
Draft
Offers
An offer in the thread, from the side that received it and the side that sent it, through each of its states.
Received
Pending, accepted, declined, countered, cancelled: what the seller sees, and what they can do about it.
Received - pending
Received - accepted
Received - rejected
Received - countered
Received - cancelled
Sent
The same offer as the buyer who made it reads it: waiting, accepted, declined, countered.
Sent - waiting
Sent - accepted
Sent - declined
Sent - countered
Icons
Each state's icon on its tint, as its badge wears it, in the order an order goes through them. The icon is a shipped order's; where a meetup or a same-day courier draws another, it is under the name.