Skip to main content

Work Orders on the Shop Floor

Overview​

Maintenance happens where the Wi-Fi is worst. The portal keeps a technician's work orders working on the phone without a connection, each machine can carry a printed QR label that opens its page, and the portal has a QR scanner built in. This guide explains how each works, and what to build on if you write your own shop-floor app against the API.

Work orders without a connection​

When the portal is online, it keeps a copy of each person's unfinished work orders on the device: those assigned to them (as the lead or one of the assignees) that are open or in_progress, with their machines' names and their steps. It is the same list the API returns for:

GET /api/v1/work-orders?assigned_to_me=true&unfinished=true

Offline, the work-orders page opens from that copy, and a technician can start and complete work as usual. Each change is queued on the device, in order, and sent when the connection returns. A completion keeps the moment it was made: the portal sends it as completed_at, and the API records that as when the work was done rather than when the phone got signal back.

{
"status": "completed",
"completed_at": "2026-11-12T10:02:00Z"
}

The API keeps that time between the work order's creation and now, and never moves a completion already recorded (see Work Orders).

A change the API refuses when it is finally sent (the work order was signed off in the meantime, deleted, or is no longer the person's to change) is never dropped silently: it stays on the device, marked with the reason, for the technician to retry or discard.

What is kept, and for whom:

  • The copy and the queue are per person, in the browser's local storage on that device.
  • Signing out forgets every copy, so the next person on a shared device starts clean. Queued changes stay under their owner and are sent the next time that person signs in there, so completed work is never lost.
  • In a private window, or with site storage blocked, nothing is kept and the portal works online only.

Machine QR labels​

Each machine's label holds a QR code with the full link to the machine's page in the portal:

https://<your portal address>/machines/<machine_id>

Labels are printed from the portal: one from a machine's page (QR label), or many from the Machines list (QR labels), for the fleet as the list is filtered (by group or system), leaving out any you choose. There are two layouts:

  • an A4 sheet of 21 labels, 63.5 × 38.1 mm each (Avery L7160 and equivalents), which can start part-way down a sheet already used;
  • one large label per page, to cut out.

Any QR reader opens the link. Because the link carries the portal's address, a label printed from one Haltless address opens that address: reprint the labels if your portal moves.

The in-app scanner​

On a phone or a tablet, the portal's top bar has a Scan button. It opens the camera, reads a machine label, and opens the machine:

  • online, the machine's page, with its readings, alerts and work orders;
  • offline, or for someone whose role cannot open machines, the machine's work orders (offline, those kept on the phone).

If the camera cannot be used, a photo of the label works too. The scanner turns down codes that are not a Haltless machine label, and says so when a label comes from another Haltless address rather than following it. The decoding runs in the browser; no image leaves the device.

Camera permission​

The browser asks each person once for the camera. The portal must be served over HTTPS, and its Permissions-Policy header must allow the camera for the portal itself:

Permissions-Policy: camera=(self)

The hosted portal sends this. If you serve the portal yourself, or put a proxy in front of it that sets its own Permissions-Policy, keep camera=(self): with camera=() the scanner reports that the camera cannot open on this page.

Building your own shop-floor app​

Everything above is built on the public API, so the same pieces are available to your own app:

NeedUse
The technician's open work, to keep offlineGET /api/v1/work-orders?assigned_to_me=true&unfinished=true and each work order's instructions
Starting and completing work, sent latePATCH /api/v1/work-orders/{work_order_id} with status, and completed_at for when it was really done
What a scanned label namesThe machine id in the /machines/<machine_id> link, for GET /api/v1/machines/{machine_id}
Whether the repair heldThe work order's fix check

Send queued changes in the order they were made, and stop at the first network failure so later changes do not overtake it.