Skip to content

Kitchen Mode

Status: core built, November 2026, and revised after review (one toolbar, reflowing lanes); the rest decided but not built. This records the design of the admin Kitchen board when it runs all day on a wall monitor or an iPad Pro (admin/restaurant/kitchen.html, admin-kitchen.css, admin-kitchen.js, KitchenAdminController). The owner's guide is Restaurant ordering. The ticket itself is described in Kitchen ticket.

Who uses it

A cook or the pass lead, looking at it from a metre or two away, by touch, with wet or gloved hands, for a whole service. It is a wall monitor or an iPad Pro (1366 px wide in landscape), not a desk screen: nobody types, scrolls with care or reads small print. It is left on for days, so it must also say so plainly when it has stopped being true.

Priorities

In order, what the screen must answer at a glance:

  1. What do I do next? The oldest, latest or most urgent ticket, and the action on it.
  2. What is waiting? New orders not yet accepted, and what is coming later.
  3. What has shipped? What is ready or gone, so the pass is not asked twice.

Everything else (chrome, settings, history) gets out of the way.

Built now: kitchen mode core

  • One toolbar (data-kb-bar), the same markup in and out of kitchen mode, above the board and outside the fragment the 15-second refresh swaps. Left: the station chips (only with stations), one status pill (Taking orders, Closed or Paused, with the BxStatus variant's colour and the words) and, while paused, an amber Resume orders. Right: the live indicator, the clock (kitchen mode only), Display, and Kitchen mode or, in kitchen mode, Exit kitchen mode. The kitchen's name is only shown when the shop has several kitchens, as the switcher. Why: the first version showed the location name twice, the status twice, a long sentence and two more rows of tools; a kitchen knows its own name, and the screen's top is the most valuable space on it.
  • Display, a native popover (light dismiss, Escape and focus back to its button come from the browser), holds the text size, Compact or full tickets, the sound switch and the order settings: the status sentence, the usual prep time and Pause new orders with its duration. It lives outside the board, so a refresh never closes it. The values that change between refreshes travel in the board as data-kb-pass (paused, takes orders, status headline, badge variant and sentence, prep minutes), and admin-kitchen.js copies them into the toolbar after each refresh: a kitchen paused from the location card shows Paused and Resume on the next refresh. The script positions the popover under its button; without the script it sits at the top right. With Display open, Escape closes it and does not leave kitchen mode. Why: settings used a few times a service shouldn't take a row all service. Things that must speak up stay out of it: paused shows in the row, closed shows in the pill.
  • The toolbar fits one row. It is not zoomed; its text is calc(1rem * var(--kb-text)) (1, 1.15, 1.3) with the 56 px targets and paddings fixed, and it is a size container whose thresholds are in em, which a container query resolves against the container's own font size, so a bigger text size gives way to icons sooner. Words marked kb-opt--b (Display, Recall, Tap for full screen, "kitchen mode" in Exit, "orders" in Resume, and the long live text, replaced by "Live · 3 s") are visually hidden below 98em; kb-opt--c ("stations" in All stations) below 72em, and the wake warning's words below 78em. The words stay in the accessible names. Estimated room needed at Standard with three stations, a recall and the full-screen prompt: about 1560 px with every word, 1140 px at the middle step, 1040 px at the last. At 1366 px in kitchen mode the bar is 1334 px: 83em at Standard and 72.5em at Large (middle step), 64em at Extra large (last step, about 1210 of 1334 px needed). Only everything at once (a paused kitchen with stations, a recall and the wake warning) at Extra large wraps; the row is flex-wrap: wrap, so it wraps rather than run off the side, as it does below about 1000 px. These are estimates from the type sizes, not measurements.
  • Kitchen mode. The Kitchen mode button (and the F key) hides the admin's side and top navigation, footer and page header, and asks the browser for full screen; the toolbar swaps the button for the clock and a 56 px Exit kitchen mode. Escape, F and any other route out of full screen leave the mode. The state is kept in localStorage; after a reload the page comes back chrome-free, with Tap for full screen, since a browser only grants full screen after a gesture. The class lives on <body>, never in the fragment swapped every 15 seconds. Why: the menus take a third of an iPad's width and invite stray taps. The shortcut is F, not K, because J and K already move between tickets.
  • Text size. Standard, Large and Extra large, a segmented control in Display, kept per device. It is CSS zoom (1, 1.15, 1.3) on the board and the drawer, because every size in admin-kitchen.css is rem or px; the attribute sits on #kitchen-board and on the toolbar's wrapper (data-kb-top), neither of which the refresh replaces. Why: one control scales the whole board together, rather than separate fonts that drift apart.
  • Lanes reflow; they are never squeezed. A zoomed container measures itself in its own, larger pixels, so container-query thresholds in px give the same minimum lane width at every text size. The ladder, in the board's own pixels with a 12 px gap: four lanes from 1100 px ((1100 − 36) / 4.2 = 253 px a lane, New at 1.2fr 304 px); three columns from 840 px ((840 − 24) / 3.2 = 255 px), with Out for delivery, usually empty, stacked under Ready (kb-lanes__stack, display: contents otherwise); two from 520 px ((520 − 12) / 2 = 254 px); then one. At 1366 px in kitchen mode the board is 1334 px wide (16 px page padding each side): 1334 at Standard and 1334 / 1.15 = 1160 at Large give four lanes, 1334 / 1.3 = 1026 at Extra large gives three. At 1920 px, Extra large is 1888 / 1.3 = 1452: four. A desktop browser's 15 px scrollbar leaves Large at 1147, still four. Why: the first version kept four lanes at every size, so at Extra large a lane was about 190 px of text and "Sam" showed as "S.".
  • Names and allergies are never cut short. The ticket's and the tile's customer name wrap (the number and the icon move under a long name), and the tile's allergy line and the ticket's banner wrap in full: no ellipsis and no line clamp anywhere on them. Why: a note cut to "anaphylactic, pleas..." is a safety failure.
  • Wake lock. While kitchen mode is on the page holds navigator.wakeLock for the screen, takes it again when the tab becomes visible (it is released when hidden) and releases it on exit. Unsupported or refused, a Screen may sleep warning appears in the toolbar: an amber warning triangle and the words, amber text on the warning tint (the warning amber darkened with the ink, about 5.5:1, since the plain amber is 4.4:1 on its tint), with no border, hover or focus. It is a span with role="status", not focusable and not a control; its title and visually hidden text carry "Screen may sleep. Turn off auto-lock in the device settings." Display says the same. Below 78em of toolbar its words give way to the triangle (sooner than the other words, being the longest optional label), so with it showing the row still fits at 1366 px at every text size: about 74em needed with the words at Standard (83em available), and the triangle alone at Large and Extra large. Nothing throws, since the client error beacon watches for uncaught errors. Why: a board that sleeps in the middle of service loses orders silently; a full-width line saying so all service was too loud for a setting nobody can change from the board. The first version was a grey rounded chip with a moon, which read as a snooze button.
  • Moves in place. Every move (Accept with its minutes, Ready, Out for delivery, Delivered, Collected, Turn down, a line bump, Served, Recall) and Pause and Resume orders is posted by admin-kitchen.js with fetch, asking for the kitchen-board fragment (see Storefront Fragments). The server answers with the board as it now stands and the script swaps it in exactly as the 15-second refresh does (chimes, allergy chime, the toolbar's pass values, focus), so the page never navigates and full screen, the scroll position and the open drawer survive. A tapped move dims its ticket and marks its buttons busy at once; a second tap on it sends nothing, and the refresh waits while a move is out. An answer older than the board on the screen is never drawn, and a board arriving while an allergy check (or a turn-down reason) is open waits for it to close. What the move says shows in a status region outside the board, bottom centre, in large bold text: a confirmation clears after 6 s, one with Bring it back (after Served) after 12 s, and a refusal or failure, in the danger colours, after 20 s; a tap dismisses it. A failure releases the buttons and says "Could not reach the server. Nothing was changed. Try again."; repeated failures bring the stale banner, and a move that lands on the sign-in page shows the signed-out banner. Focus goes to the same ticket if it stayed in its lane, else the next one in that lane. A move from the drawer closes it, except a line bump while the ticket is still there. Each move still posts its key, so a retry acts once. Without fetch the forms post as before. Why: each move used to reload the page, which dropped full screen, scroll and focus on every tap.
  • Stale-data banner. The board records the time of its last good refresh (an OK response that contains the board). A redirect, 401, 403 or an OK page without the board is read as being signed out and shown at once ("Reload"); another non-OK answer shows "Not updating" at once; network failures count only after 45 s (three missed refreshes). Refreshes fetch with redirect: 'manual', so a redirect to central sign-in on another host is seen as one, not as a network error. A skipped refresh (tab hidden, board busy) is never a failure, but after 45 s held back by a busy board the indicator reads "Paused while you edit" with a hollow dot instead of "Live". The toolbar and the banner share a sticky wrapper, so the banner stays on screen however far the lanes are scrolled. The banner sits above the board, outside the swap, and clears on the next good refresh; when Retry works, focus moves to Display rather than falling to the top of the page. A quiet "Live, updated N s ago" is not in a live region, so screen readers are not interrupted every second. Why: the worst failure is a board that looks fine and is silently out of date, because new orders then never reach the kitchen.

Known limits: choosing another kitchen or station is a link and loads the page, so full screen waits for the next tap there, as it does after any reload. popover needs iPadOS 17 or a current desktop browser; an older browser shows Display's contents in the row instead. The sound switch is in Display now, so "Tap to allow sound" isn't on screen; any tap on the page still unlocks the sound. Only the server's paused, status and prep values follow a refresh: a location that starts or stops taking takeaway needs a reload to gain or lose the order settings.

Built: Cooking now

A second view of the board, beside the lane board, switched in the toolbar by a two-button group ("Board" and "Cooking now", aria-pressed, 56px targets). The lane board is organised by ticket; this view is organised by dish, so a head chef can say "three ribeyes" to the grill and "one more" later, and the grill cook has the running count.

  • Grouping. Board.cooking() groups by dish name plus variant, the same names the "All day" totals use. Each tile (CookingDish) has the total still to cook and one row (CookingRow) per order line or table fire line: who (first name or the table, with the seat), service label, quantity, choices and note, how late or when due, and the ticket id so a tap can open it.
  • What is included. Accepted and preparing orders, and fired table lines that are not yet ready. New (unaccepted) orders, Ready, Out for delivery and held courses are left out, and a dish whose lines are all done never appears. The station filter applies as it does to the lanes, because the board model is already filtered.
  • Sort. Rows by due time, then by who; tiles by their oldest row first (most overdue first), then by dish name. An order's due time is its promised time (falling back to accepted, then placed); a fire's is when it was fired. No new prep-target concept was added.
  • No new endpoint. The markup is a section inside the same board fragment, after the lanes, so the 15 second refresh and in-place moves keep it fresh. The chosen view is data-kb-mode-view (board or cooking) on #kitchen-board itself, which refreshes do not replace; CSS shows one view and hides the other. The choice is kept in localStorage (bdgr.kitchenBoardView). Compact/Full applies to Board only, so in Display its control gives way to Totals / By ticket while Cooking now shows.
  • Rows (By ticket). Tapping a row opens that ticket in the existing drawer. A table fire row also has the per-dish tick, using the existing form, in-place POST and allergy confirm. Order lines have no tick (see Follow-ups).
  • Allergies. A row whose ticket has a declared allergy uses the existing red treatment; a dish that contains a declared allergen gets the existing "Contains" flag. Dish allergens are never shown for customers who declared none.
  • "New" marker. The script remembers which rows (ticket and dish) were present after the previous draw. A row that appears on a later draw gets a "New" tag and its tile a "N new" badge for about 30 seconds. The first draw after a page load marks nothing. It reuses the arrival chime; there is no second sound. Under reduced motion there is no animation, the tag alone shows. A chip shares its row's key, so in Totals the new chip gets the same tag and pulse (and is counted once).
  • Reading from a distance. Tile total about 4rem at Standard, dish name 1.5rem, rows at least 56px. Tiles sit in a grid that reflows with the board's own width (1 column, 2 from 700px, 3 from 1080px, in zoomed pixels). Names, notes and allergy text wrap; nothing is cut short.
  • Service colours. Each row has a 6px left stripe in its service colour and the service label as text. The tokens are on .kb in admin-kitchen.css, and the later "service band" on every ticket should reuse them:
Token Value White text contrast
--kb-service-dine-in #1d4ed8 (blue) 6.7:1
--kb-service-collect #6d28d9 (purple) 7.1:1
--kb-service-delivery #a21caf (magenta) 6.3:1

As a stripe each is 5.8:1 or more on every card and row background (--bx-surface, --bx-surface-alt, and --bx-brand-soft behind a New row), well over the 3:1 a stripe needs. - Totals and By ticket. A cook at a station mostly does not care who a dish is for: they care what to cook and how many. So Cooking now has two presentations, and Totals is the default: each tile shows the dish, the big total and its batch chips, and the per-ticket rows are hidden. By ticket shows the rows as above. The choice is a two-button group ("Totals", "By ticket") in Display, in the row that holds Compact/Full on the Board: while Cooking now shows, that row's control is this one, and the reverse on the Board. It is kept in localStorage (bdgr.kitchenCookDetail) and painted as data-kb-cook-detail (totals or ticket) on #kitchen-board. Both presentations are drawn in the same fragment and CSS shows one, so switching needs no request. - Batch chips. One chip (CookingChip, from CookingDish.chips()) per row, in the rows' order (the most overdue first), showing that ticket's quantity big ("4×"), so a dish of 8 reads 2 · 4 · 1 · 1 and a cook can prep in batches. The chips always add up to the tile's total. Each is a real button, at least 56px tall, that opens its ticket in the drawer (who it is for stays one tap away); its accessible name is the row's ("Open order for Sam, 4 Margherita"), and the service label, when it is due, "Next" and "Changes" describe it. A thin left edge in the service colour, and the service label for screen readers. Lateness reuses the row's clock: the chip says "in 5 min" or "3 min late", in red when late, so it is never colour alone. A fire's chip says how long ago it was fired. The first chip is marked Next (a tag and a heavier outline). Chips wrap onto more lines when there are many. A chip whose line has choices or a note says Changes; the drawer has them in full. - Allergy never merged. A ticket with a declared customer allergy keeps its own chip in the same ordered list, but it is unmistakable: a red outline, the allergy triangle and the word Allergy, and its accessible name carries the allergy. If the dish contains what was declared, the chip also says Contains. A tile with any allergy chip carries a one-line hint, "Cook allergy orders separately". We kept one ordered list rather than moving allergy chips to the end, so the order of cooking stays true. - Totals grid. Totals tiles are smaller, so more fit a row: 2 columns from 540px, 3 from 820px, 4 from 1100px (in zoomed pixels), which gives four columns at 1366px to 1920px at Standard. - No tick on a chip. A table line's tick stays in By ticket; in Totals the chip opens the ticket, where the line can be ticked. - Toolbar room. The switch adds roughly 160px. At 1366px and Standard the button reads "Cooking" (its accessible name stays "Cooking now"). The one-row width estimates above predate the switch and the worst case (stations, Recall and the full-screen prompt at Large) may wrap.

Follow-ups

  • Per-dish state for online orders. Takeaway and online order lines carry no per-line state, so their Cooking now rows cannot be ticked. This needs a change to the order line model. Accepted as a known limit: an online order's dishes go out together anyway.
  • A bulk "all ready" per dish, to clear a whole tile in one tap.
  • Rows are per order line, so one order with the same dish on two lines gives two rows.
  • Scheduled orders in the total. An order accepted early for a later time (a pre-order, which is promised for its wanted time) is still to cook, so it is counted in the dish's total today. Its row shows the wanted time with the day and the calendar mark, as its ticket does ("For Sat 19:30"), so the grill can tell it from what is wanted now. Whether pre-orders should be left out of the running total until nearer their time is an owner decision, not yet taken.

Built: orders held for later

An order placed at 3am for collection at 11:30 used to ring on the board, and loop the Badger app's new-order alarm, until somebody accepted it, and its Accept offered preparation times "from now".

  • Held, not ringing. KitchenService.start gives an order the kitchen needn't start yet a releaseAt: the wanted time less the usual preparation time (plus travel), at least 20 minutes before it; for an ASAP order placed while closed, the opening time. Until then it is not in the new list or count, so neither the board's chime (data-new-count, the New lane's tickets) nor the app's alarm (its PLACED orders in new) goes off, and no push is sent. The worker announces it when the time comes. Why: "queue it" was the ask; the decided design said Later, then New 20 minutes before.
  • Where it shows. Under a Later heading at the foot of New, like Held at the foot of Preparing, rather than a fifth lane: the lane ladder above is measured for four. The ticket is dashed and on the lane's grey, without the brand outline, and says "Rings at 11:10" where a new order says how long it has waited. It carries data-kb-later, so the board doesn't chime for it until it moves up into New. No auto-reject countdown: its deadline runs from its release.
  • Accept for the time. A placed order wanted later than the usual preparation time from now has one button, Accept for Sat 11:30, instead of the minute chips. The promise is the wanted time whichever chip is chosen, so the chips only suggested it would be ready in 20 minutes from now.
  • Accepting early is allowed. A held order can be accepted from Later; it then never rings.

Built: the ticket pops up where it was tapped

The compact tile used to open the whole ticket in a drawer at the right-hand edge, so checking a ticket took the eyes and hand across the screen and back. Now it pops up over the tile (and a Cooking now chip or row over itself): admin-kitchen.js places the same <dialog> centred on the tile, kept on screen, at least 28rem wide (scaled by the text size) and up to the screen's height, and grows it out of the tile in 120 ms (a translate and scale, Web Animations). A tap anywhere outside it, the X or Escape shrinks it back into the tile in 90 ms. A move made in it closes it at once. Under reduced motion it appears and goes without animating. The backdrop is lighter (20%) so the board stays readable around it. Why: a glance should cost no more than a tap; anything slower than about 150 ms reads as a delay in a kitchen.

Decided but not built yet

These were decided in review. The next pass starts from them rather than from memory.

  • Light and dark themes, light the default.
  • Density control, Comfortable or Compact. Compact gives Preparing two ticket columns.
  • Service band. A loud band across every ticket: dine-in blue, collect purple, delivery magenta, kept apart from the urgency colours. Urgency stays on the ticket's left edge and a labelled pill. Colour is never the only signal: the band carries the word too.
  • Urgency from a prep target. Amber at the target, red five minutes past it, with a text label always shown. Where the target comes from is an open question (see below).
  • Dine-in skips Accept. Table orders go straight to Preparing with a chime.
  • Hold. An action that sends any ticket to Later until it is released, plus an optional staff start tickets setting, off by default.
  • A tick per dish on every ticket, with All ready for the common case.
  • New tickets wiggle in short bursts for about 30 seconds; a tap on the card body settles them. Under reduced motion the wiggle is replaced by a pulsing outline.
  • Per-lane scrolling with pinned lane titles, oldest first, a coloured summary under each title (for example "2 late, 1 due"), and the tail of a long lane collapsed to one-line rows.
  • Booked-dishes chart for the next four hours: 15-minute slots stacked by service type, a dashed line for the kitchen's limit, and the note "booked only, walk-ins not shown". It sits under Later on wide screens and is a sparkline in the header on compact screens.

Open questions

  • Prep target source. One shop-wide number, or one per dish.
  • Stations. Station filters on one board, or a separate screen per station.
  • Ready tickets. Whether they stay on the board, and for how long, or leave it at once.