Pack station
A React block (a whole screen) in Beamline's Inventory app.
A packing bench. Scanner, scale and printer each said, on the warning tone when away. Find the shipment by scanning or typing its number (none found said). Its items are scanned through scan-flow, worded as a verification: each scan fills its line, a wrong or unknown code is refused where it was scanned, a count can be set by hand; the lines left can be verified by hand, recorded with who did it. Verified says how (all scanned, or so many lines by hand) and that verifying changes no stock. Then the label: weight from the scale with when it was read (or typed when the scale is away), package, service with its price and days and the customer's choice said, Buy the label with the price; a refusal (a quote expired) is said and nothing is bought. A bought label shows its carrier and tracking, prints, and offers Reprint, which prints the same label; a shipment found already labelled skips verification and offers Reprint, never a second label.
Use it for
- A packing or dispatch bench: verify what's in the box against the order, then buy and print the label.
- Where verifying must never imply stock moves or a second label.
Not for
- Picking across bins (scan-station).
- Splitting an order into shipments (shipment-split).
Anatomy
- header: the tool's mark, Pack, scanner, scale and printer
- find: shipment number or barcode, Find, none found
- items: the shipment, scan-flow worded as verification, the lines left with Verify by hand, verified and how
- label: weight, package, service, Buy; or carrier, tracking, prints, Print or Reprint
States
- nothing on the bench, none found, mid-scan, a wrong code, verified by scanning or partly by hand
- label locked until verified, quote expired, bought, printed, reprinted, already labelled
- scanner, scale or printer away
- phone: one column
- right to left: mirrored
- reduced motion: through the tokens
Keyboard
- The scan field takes a scanner's Enter; Tab through find, the lines, Verify by hand and the label's fields
Motion
Scans move through scan-flow's own motion; nothing runs at rest.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
shipment | PackShipment | null | — | The shipment on the bench (controlled), or null before one is found. |
defaultShipment | PackShipment | null | — | |
onShipmentChange | ((shipment: PackShipment | null) => void) | — | |
onFind (required) | (code: string) => Promise<PackShipment | null> | — | Finds a shipment by its number or barcode; null when there's none. |
defaultVerified | Record<string, number> | — | Verified counts at first (a bench reopened mid-way). |
describe | ((code: string) => { name: string; } | null) | — | Names a code that isn't on the shipment, for the refusal. |
hardware (required) | PackHardware | — | |
packages (required) | { id: string; label: string; }[] | — | |
services (required) | PackService[] | — | |
currency (required) | string | — | |
packer (required) | string | — | Who is packing (recorded on a by-hand verification). |
onBuy (required) | (request: { shipmentId: string; kg: number; packageId: string; serviceId: string; }) =>… | — | Buys the label; reject with why nothing was bought. |
onPrint (required) | (labelId: string) => Promise<void> | — | Prints (or reprints) a label; reject when the printer refuses. |
product | string | — | |
className | string | — | Classes on the documented visual root; no override by default. |
style | CSSProperties | — | Inline styles on the documented visual root; no overrides by default. |
ref | Ref<HTMLDivElement> | — | Receives the documented native target or imperative handle; omitted by default. |
Built from
Dependencies
lucide-react
Import
import { PackStation } from "@beamline/pack-station";
Get it
Pack station is part of Beamline UI. Install the parts you need in your React app as compiled packages or editable source. Get Beamline · Connect your agent
More in Inventory
- Stock count: A shelf counted. Count: the products on it with counted units, not counted (an empty field that changes nothing) kept apart from a counted zero, expected…
- Inventory counts: Recurring stock counts from plan to shelf: a phone-first count of one occurrence where an untouched part reads not counted and a zero reads counted, none…
- Goods receiving: Goods received against purchase orders and invoices. Cards grouped by purchase order or invoice, each line once whichever way (a line keeps both sources…
- Purchase order desk: Purchase orders for stock from draft to closed. The list of orders with status (ready for review on warning, approved, ordered and partly received on…
- Restock desk: Restocking from suppliers' own shops. Items low on stock (below the minimum on danger, at it on warning, unknown said) beside the chosen item with how…
- Stock alerts: Alerts on stock counts and expiry dates. Counts of alerts gone off (danger) and close (warning) in the header. A table: item and type, the rule in words…
- Inventory finder: Find stock and act on what's found. A rail of filters: name or SKU; folders with or without their subfolders (folders the person can't see said as not…
- Item setup: Setting items up for scanning and records. Barcodes: scanned codes waiting to be linked, each with its symbology, when and who; Look it up brings a…
- Bulk item edit: Many items corrected at once. Pick a folder, with its subfolders or not (fixed once anything is edited), up to a limit said. The items in a grid: name…
- Kit builder: A kit (bundle) made of standalone products, and how many its parts' stock can make. Sell as a kit; the parts in one kit with units per kit, removable…
- Serial allocation: A receipt line's serial numbers. Serials generated from a first serial and how many (its digits counted up, padding kept; a first serial without digits…
- Stock moves: Where stock went, and moving it. The ledger lists movements newest first: moves on info, stock added on success, stock taken out on warning; each with…
- Scan station: A warehouse scanner, phone-first. Home: one scan field that also takes typing (and says so when the scanner isn't connected), each code named as what it…
- Shipment split: An order's lines split across shipments. A table of lines with what was ordered and a column per shipment (new ones marked); a line already shipped can't…
- Route plan: A day's delivery routes in the service's zone. The day at a glance: routes, routes without a driver (warning), stops running late (danger), stops done…
- Job materials: Materials sent out to jobs and pick lists. Jobs: the list (draft, active on info, completed on success) beside the chosen job with its site, dates (the…
- Service tasks: A fleet shop's maintenance setup. Tasks: active and archived, searchable, main tasks and their subtasks told apart in words, archiving refused while…
- Owner records: Who a customer is and what they own, at the front desk. New customer: name, phone and email checked as typed against existing customers; each likely…
- Sample storage: Where physical items are kept (rooms, freezers, shelves, racks, boxes) and acting on several at once. The storage tree is browsed apart from moving: Move…
- Sample ledger: Materials used in a record and the containers they came from, plus pooling. Subtracting a used amount writes a stock movement with its unit and the…