Components
Commerce
You come here for prices, booking and the shop: money fields, slots, agendas, opening hours, reviews, the shop and its composer.
- Owner rule
- Money is minor units and a currency, never a float.
- Size budget
- 126.5 kB gzip for the whole domain; it only goes down.
Entries
15 entries, 8 used by live products and sites. Experimental entries come last: they may change or go in any minor version.
- AgendaOne day's appointments in time order: the times in tabular figures, the client, the service, a status chip, a small action — and a « now » line between the ones past and the ones to come.1 files import it
- Kind config editorThe admin's editors of a kind's vocabulary (
@krizaka/organizeKindConfig, krizaka-ts#89):TagSetEditor— the tags offered, who manages them, whether people add their own, the most — andStatusSetEditor— the states in their order, the initial state, the moves from × to with their roles, confirmation and reasons. Value in,onChangeout; the product posts the save.2 files import it - Opening hoursA shop's weekly hours in one quiet row — « Open now · closes at 5 pm » and today's hours — that unfolds into the whole week, today highlighted.1 files import it
- Pricing pagePlans and what they cost: the plans side by side with the featured one lifted, the comparison as a table, what a credit buys, the questions people ask.3 files import it
- Quota meterSpace or time used against a plan: the figure in words, a meter that turns amber at 80 % and red at 95 %, the sentence that says what to do, the small figures and the way out.
- ReviewsA score you can trust:
ReviewSummaryshows the shop's score as a stamp with the verified count, five meters for the distribution and its text equivalent — nothing under the host's minimum — andReviewCardone review with the owner's reply indented.1 files import it - Service cardA service a shop sells, as a card that argues: icon or photo, name, duration, capacity, price (« from » when it varies), what is included, a « Popular » tag — and one way in, the whole card pressable.
- Shop composerOur own editor for a shop's page document (ADR-007): the outline of the sections, the live preview of the product's page and the inspector of the selected section — variant as live thumbnails, settings as a form generated from the zod schema, words, blocks — with undo and redo, a saved draft and a publish step that shows what changes. First consumer: Akinaza's studio (akinaza#402).1 files import it
- Shop pageA shop's public page as a document, not as code: an ordered list of sections, each a type and a variant with its settings and blocks, drawn inside one frame and one rhythm.
shopPageSchemavalidates it,defineSectiondefines a type, one component per type draws the variants. Services come first as a compact price board. First consumer: Akinaza (akinaza#398); demo data only.11 files import it - Slot pickerThe next free times of a service as tappable chips: a strip of days, then the day's times — each a link to the booking page or a toggle the reader presses.3 files import it
- Money inputAn amount in integer minor units (cents) and a currency, typed the way the locale writes it, never as a float.
- Price catalogue editorAn administrator edits a product's price entries: the amount, unit, availability and limits, from a date that is never in the past, with the scheduled changes and the history folded.
- Promo code fieldEnter a code, apply it, and see the state: checking, applied with its effect, or refused (invalid, expired). The caller validates.
- Shop galleryA shop's photos as a bento mosaic (one 2×2 lead, four tiles, the last one « + N photos »), a snap strip with a counter on a phone, and a lightbox with swipe, arrow keys and the alt text as caption. Fixed ratios, no layout shift; the lightbox is a lazy chunk.
- UsageThe blocks of a « Credits & usage » page: the balance on a meter, the period switch (the address holds it), the figures on a strip with their trend in words, and the activity stacked by outcome.