Skip to content

Screens

A kitchen's food safety day, kept by the clock

The screen opens on today at one branch: a sentence with how many checks are done and which device has a deviation, then the day's checks by kind, each with its time and one button, the deliveries with their temperatures and what was recorded today. A check turns amber in the hour before it is due and counts as missed once its time passes, and a reading outside its limit keeps asking for a corrective action until somebody writes down what was done.

By Bohuslav PoláčekChecked

Today at the demo's Hackney branch, where a freezer deviation from Sunday night still waits for its corrective action, rendered from the kit's components when the site was built.

Open it in the live demo An app for restaurants and venues

What the screen shows

  • The day in one sentence: "3 of 15 checks for today are done, with a deviation to resolve on 1 device." Someone who covers all three branches sees a strip under it with each branch's own count, and a branch behind its plan says how: "2 overdue", "1 deviation".
  • The next step: one card names what comes first and offers its action. Here it is the freezer, whose −16.0 °C on Sunday night has no corrective action yet: "Record the action".
  • The checks: temperatures, operations (date labels on prepared food, the fryer oil) and cleaning, each row with its time and one button, Record for a temperature and Done for the rest. A row due within the hour says so in amber, "By 10:30, in 6 min"; a row that is done names who did it and when.
  • Deliveries and the record: each delivery with its receipt temperature, the product and who took it in. The side column holds the wireless sensors with their last report and everything recorded today, newest first.

The clock decides, not a tick box

Every check has a time: fridges and freezers are read in the morning and in the evening, hot holding at the lunch and the evening service, a cleaning task falls due on its day. The page works out each check's state from the time it shows, so a check turns amber in the hour before it is due and becomes missed once its time passes, while somebody watches and without asking the server.

A check ticked after its time stays on file as done late. A cleaning task done a day late is still that day's task, done late, and one nobody did stays open until somebody does it. The next step follows one order: a device still outside its limit, then a deviation nobody answered, then the earliest check that is not done.

A deviation waits for its answer

Wireless sensors report every 15 minutes, and a reading outside the device's limit opens a deviation (in the demo's plan, 4 °C or less for a fridge and −18 °C or less for a freezer). While the device is still out of its limit it heads the page. Once it is back, the deviation keeps asking for a corrective action until somebody writes down what was done: moved the goods, called the service, threw goods away and how much, fixed the unit on the spot, with a note.

When somebody records a value out of its limit by hand, the same fields open inside the reading dialog, so the action is written at once rather than later. The record for an inspector lists each deviation with its corrective action beside it.

A record nobody can quietly change

Everybody who works at a branch records its checks, newcomers included, because the check nobody dares to write down is the one an inspector finds missing. A reading is never deleted: its writer may give it back within ten minutes, for a typing error, and a manager the same day, and it stays on file marked as given back.

The branch manager and the operations director also change the plan, the devices and the cleaning tasks, and export the record for an inspection: the gaps first, a missed reading listed as missed, then the deviations with their corrective actions and every device's readings day by day. The rules are one table in the module's permissions, asked by the page and again by the server, as the permissions pattern describes.

What generated food safety apps usually get wrong

Asked for a HACCP log, coding tools tend to build a list of tick boxes without times, so a missed check looks the same as one not yet due. They let anyone edit or delete an entry, which is exactly what an inspector cannot trust; they store a temperature out of its limit and move on, with nowhere to write what was done; and they colour every row red or green.

In Meadowstack the time decides a check's state, colour goes only to what needs doing and always beside its words ("By 10:30, in 6 min", "Corrective action missing"), and every change writes an entry the kit's AuditTimeline shows. The screen is an overview, which opens with a sentence of figures as the overview pattern asks. The same kitchens plan their people on the staff rota.

What comes first, decided in one place

apps/demo/src/modules/haccp/domain/today.ts
export type NextStepKind =
  | { type: "control"; unit: UnitView; deviation: DeviationView }
  | { type: "action"; unit: UnitView; deviation: DeviationView }
  | { type: "check"; item: CheckItem; state: Due }
  | { type: "none" };

export function nextStepOf(branch: BranchToday, now: Date): NextStepKind {
  for (const unit of branch.units) {
    const open = openDeviationOf(unit);
    if (open) return { type: "control", unit, deviation: open };
  }
  for (const unit of branch.units) {
    const unanswered = unansweredOf(unit)[0];
    if (unanswered) return { type: "action", unit, deviation: unanswered };
  }
  const waiting = branch.items.filter(isCheck).filter((item) => !item.done);
  const next = waiting.sort((a, b) => a.dueAt.localeCompare(b.dueAt))[0];
  return next ? { type: "check", item: next, state: dueState(next, now) } : { type: "none" };
How the demo's food safety page picks its next step: a device still out of its limit, then a deviation nobody answered, then the earliest check not done. Each check's state comes from the time the page shows, never from a stored flag.

Lead in the kit's manifest

The overview's opening sentence with its figures, as the kit's manifest describes it to people and to coding tools, read when the site was built.Read from the kit's component manifest when the site was built (126 components, packages/kit/src/components.json); the same entry answers an AI coding tool through the kit's MCP server.

Questions

What does the food safety log record?

What a kitchen's HACCP plan asks for: fridge and freezer temperatures twice a day, hot holding at service, deliveries with their temperature, cleaning, frying oil, date labels and pest control, and each deviation with its corrective action.

What happens when a fridge goes over its limit?

The reading opens a deviation, and the device heads the page while it is still too warm. Once it is back within its limit, the deviation keeps asking for a corrective action until somebody writes down what was done, and the record keeps both.

Can a wrong entry be deleted?

No. Whoever wrote a reading can give it back within ten minutes and a manager the same day, and it stays on file marked as given back, so the record still shows what happened.

Who can record the checks?

Everybody who works at the branch, newcomers included. The branch manager and the operations director also change the plan, the devices and the cleaning tasks, and export the record for an inspection.

What if a check is done late?

It stays on file as done late, at the time it was done, and the record for an inspector shows it that way. A cleaning task nobody did stays open until somebody does it, still counted on the day it fell due.

Two ways

Build it yourself, or have it built

  • Build it yourself

    Build your app on the framework

    Get the codebase these apps stand on and build yours with Claude Code, Cursor or Codex.

    One payment, lifetime updates

    Get the framework
  • Have it built

    Have us build your app

    Tell us how your team works. We plan the app with you and build it on the same framework at a fixed price.

    After launch, Care keeps it improving, from €99 a month.

    from €1,990

    Describe your app