Kitchen Ticket¶
Status: built, November 2026. This records the design of a ticket on the admin Kitchen board
(admin/restaurant/fragments.html, kitchenCard and tableCard; admin-kitchen.css and
admin-kitchen.js; KitchenAdminController). The owner's guide is
Restaurant ordering. The lanes and the compact view are
unchanged by this work.
Decisions¶
- Flag the customer's allergy, not the dish's allergens. The board used to draw a red flag on every ticket with any dish allergen, and chips on every line. A chef knows what is in the menu, so the flag was on nearly every ticket and meant nothing. What the kitchen cannot know is whether this customer has an allergy. Checkout now asks (opt in, the 14 allergens plus a free-text note) and the answer is stored on the order's kitchen details; a table's ticket takes the guest's recorded allergies from the booking.
- One loud thing. A declared allergy is a full-width red banner ("ALLERGY: Milk, Peanuts"), a red
outline round the ticket and a distinct, longer alarm sound on arrival (
data-kb-allergyon the ticket tells the script to ring it instead of the ordinary chime). Without a declaration the ticket has none of these, so when one appears it stands out. - Show the dish allergens that matter, where they matter. A line shows a red "Contains" row only
for allergens the customer declared (the intersection of the dish's allergens and the declaration,
Card.matches/TableCard.matches). The dish's full allergen list stays in the ticket's markup but only the drawer shows it (.kb-line__dish-allergens), with the order page, so the compliance record is one tap away without being noise. - Confirm before Ready. An allergy ticket's Ready (and Out for delivery and Collected
from Preparing, which skip Ready) asks "Check every dish against the customer's allergy before it
leaves the pass", through the admin's
data-bx-confirmdialog. A table's whole-fire Ready and every line's bump do the same: bumping each line readies the fire, and a guest's allergy in words ("nut allergy") or a dish with no allergen data never matches, so a match can't be the trigger. A line that does match says so in the question. - The tile says it in words. The compact tile (the default when busy) shows the red flag and the
declaration as text, names then the note (
allergySummary()), in full (it wraps, never cut short: a note cut to two lines once read "anaphylactic, pleas..."), and puts it in the tile'saria-labeltoo (anaria-labelreplaces a button's own text). Icons alone said nothing for a note or a word that isn't one of the 14. The board does not refresh while that dialog is open, otherwise the form it will submit would be replaced. - No declaration, no change. POS and app orders, orders placed before this, and tabs with no booking have no declaration: no banner, no attribute, no confirm, the ordinary chime. Absent data is never an error.
- Health data stays out of logs. The declaration is excluded from
toString, never logged and not exported with a site (orders already are not).
Ticket cleanup¶
- Name first. The customer's first name leads the ticket (the order number when there is none) as a button that opens the drawer; the number is small beside it and no longer a link, so a tap on the ticket face can't leave the board. The drawer title reads "Sam ยท #1042" and links to the order page.
- The auto-reject countdown is quiet until its last two minutes (
.is-urgent, set by the clock script), then red; the drawer always shows it. A minute after an order lands it was only noise. - Delivery or collection is an icon, with the word kept for screen readers and the tooltip.
- Turn down moves into the drawer (and the order page link with it): the lanes hide it with CSS, the markup stays so the drawer, which clones the ticket, has it. Cancelling an order was one tap from a thumb resting on a busy ticket.
- The customer's name wraps, whole. Neither the ticket nor the tile cuts a name short (an ellipsis turned "Sam" into "S." in a narrow lane); the number and the delivery icon move under a long name.
- One toolbar above the board, not a status bar inside it: the status pill, the station chips and the tools, with the status sentence and the prep time in its Display popover. See Kitchen mode.