Orders admin

A React block (a whole screen) in Beamline's Shop app.

A shop's order desk: today's orders and revenue, quick filters for what needs doing (to fulfil, unpaid, returns), a virtualised orders grid, and the chosen order beside it with its items, fulfilment steps, shipping and payment; fulfil with a carrier and tracking number, or refund chosen items, both optimistic.

Use it for

  • Running a shop's orders: see what needs fulfilling, ship orders with tracking, refund items, check a customer's order and payment.

Not for

Anatomy

  • app shell (your navigation, shop mark)
  • figures: orders today, revenue today, to fulfil, return requests
  • quick filters with counts: To fulfil · Unpaid · Returns · All
  • orders grid: order, placed, customer, items, total, payment, fulfilment
  • order panel beside the grid (a divider to resize; a sheet in a narrower room): status, items with quantities and prices, fulfilment steps, ship to, payment, the primary action (Fulfil, or Refund once shipped)
  • fulfil dialog: carrier and tracking number; refund dialog: items and quantities, the amount, a reason

States

  • loading (figures and grid hold their shape)
  • failed to load (the error with Try again)
  • no orders (says what lands here)
  • a filter with none (the grid's empty label)
  • payment: paid · pending · refunded · partly refunded; fulfilment: unfulfilled · packed · shipped · delivered · returned — each a word and a tone
  • fulfilling or refunding, done, refused (the order goes back; the reason sits in the panel with Try again)
  • a refund larger than what was paid is refused before it is sent

Keyboard

  • grid: arrows between cells, Enter opens the order in the panel
  • the panel divider is a separator: arrows resize it
  • dialogs trap focus and return it to the action that opened them

Motion

The chosen order's panel content changes in place; fulfilment steps fill toward the new step; figures roll after fulfilling or refunding; dialogs open out of their button. Reduced motion: changes are immediate.

Props

PropTypeDefaultDescription
orders / defaultOrders / onOrdersChangeOrder[]—
onFulfil(id: string, shipment: { carrier: string; tracking: string }) => Promise<void> | void—Ships the order. Applied at once; a rejected promise puts it back and shows why.
onRefund(id: string, refund: { lines: { sku: string; quantity: number }[]; amount: number; reason: string }) => Promise<void> | void—Refunds chosen items. Applied at once; a rejected promise puts it back and shows why.
openOrder / defaultOpenOrder / onOpenOrderChangestring | null—
carriersstring[]—Default UPS, FedEx, DHL, USPS.
loading / error / onRetryboolean / Error | null / () => void—
shopstring"Northline Goods"
navAppShellNavGroup[]—
className / style / refstring / CSSProperties / Ref<HTMLDivElement>—className: Classes on the documented visual root; no override by default. style: Inline styles on the documented visual root; no overrides by default. ref: Receives the documented native target or imperative handle; omitted by default.
ordersOrder[]—
defaultOrdersOrder[]—
onOrdersChange((orders: Order[]) => void)—
openOrderstring | null—
defaultOpenOrderstring | null—
onOpenOrderChange((id: string | null) => void)—
loadingboolean—
errorReactNode | Error—Errors retain the last completed rows. Error objects are rendered by their message.
onRetry(() => void)—
defaultSidebarOpenboolean—
classNamestring—Classes on the documented visual root; no override by default.
styleCSSProperties—Inline styles on the documented visual root; no overrides by default.
refRef<HTMLDivElement>—Receives the documented native target or imperative handle; omitted by default.
manualboolean—Server owns ordering, filters, search and page slicing. Default false.
sortListSort—
defaultSortListSort—
onSortChange((sort: ListSort) => void)—
filtersListFilters—
defaultFiltersListFilters—
onFiltersChange((filters: ListFilters) => void)—
querystring—
defaultQuerystring—
onQueryChange((query: string) => void)—
selectedstring[]—Stable row IDs, retained across server pages.
defaultSelectedstring[]—
onSelectedChange((ids: string[]) => void)—
selectableboolean—
emptyLabelstring—
allowSelectAllMatchingboolean—
onSelectAllMatching((scope: { rowCount: number; query: string; filters: ListFilters; }) => void)—
paginationboolean—Enable page controls explicitly. Page-related props also enable them, unless onEndReached is supplied.
pagenumber—One-based requested page. Default 1.
defaultPagenumber—
onPageChange((page: number) => void)—
pageSizenumber—Positive rows per page. Default 25.
defaultPageSizenumber—
onPageSizeChange((pageSize: number) => void)—
rowCountnumber | null—Total matching rows on the server. null means unknown. Local grids calculate it before slicing.
totalnumber | null—Deprecated: Use rowCount. Canonical rowCount wins, including null.
onEndReached(() => void | Promise<unknown>)—Append mode: fetch another batch. The app appends it to the supplied rows.
hasMoreboolean—Whether another batch exists; defaults to true with onEndReached. False stops requests.
loadingMoreboolean—An append request is pending; retain every loaded row.

Built from

Dependencies

@tanstack/react-virtual, lucide-react

Import

import { OrdersAdmin } from "@beamline/orders-admin";

Get it

Orders admin 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 Shop

  • Product editor: A product being made in a shop's back office, every value read as text at rest. The variant grid, grouped by the first option, lists each combination…
  • Category manager: A shop's product categories, nested and ranked. Each category moves up, down or into another from its menu, and every move gets its own receipt (saving…
  • Inventory item: One stock item in a shop's back office, apart from the variants that sell it (how many each uses per unit). Stock per location as stocked, reserved and…
  • Plan comparison: Plans side by side against every feature: prices that roll between monthly and yearly, the current and recommended plan marked, a header that stays in…
  • Step form: The finished frame for any multi-step form you compose — onboarding, intake brief, questionnaire, booking, application: a wide card with progress, the…
  • Order detail: One shop order with payment and fulfilment as two separate lanes. The header says where each stands (paid, partly paid, awaiting, refunded; not…
  • Order board: A shop's orders as cards in its columns, on the shared kanban with drag and keyboard moves. Each card: number, estimate or work order, customer, vehicle…
  • Order composer: An order made inside a support ticket: products found by name, each variant with its stock drawn and said (in stock, none, oversold, not known) and the…
  • Draft orders: A draft order made for a customer in a shop's back office that reads like the order it will become. The lines lead: each with its variant and SKU or…
  • Order changes: What happens to a shop order after it's placed. Edit: the order as it stands beside the requested version, each line marked new, changed (old → new…
  • Special orders: Customers' special orders as demand to buy for, per outlet: To order apart from Ordered; each product's demand, what is reserved, incoming and on order…
  • Order history and fills: Every order the account placed and every fill it got, for a period: totals for volume, fees, fill rate and maker share; orders with their status and how…
  • Order ledger: Purchase orders as money. Each order's spend is drawn against its approved total (paid, billed, pending, what is left, and any overrun past the end…
  • Ticket orders: A customer's orders inside a support ticket, each action's effect said before it's done: orders and drafts kept apart, a paid draft shown once as its…
  • Record search: One search across connected records (customers, vehicles, orders) by name, phone, plate, VIN or order number. What the words look like is said (info)…
  • Return queue: A queue of return cases. Search by return, order or customer, exactly (the default) or loosely; status tabs with counts, Requires attention first; a date…
  • Return case: One return as one place where every act is its own. The return, its order (linked out) and the customer on three cards; the stage said on its tone. Items…
  • Return request: Staff start a return from an order, and edit the reasons customers pick. New return: the order's lines as a checklist, each with its variant, price and…
  • Purchase orders: A salon's purchase orders, received: the orders down the side, the chosen one beside them. Each line still due reads as a strip of received, this…
  • Print quote: A print shop's quoting in three places. Quote: a group of garments that share one imprint and one quantity break, the group's pieces counted together and…
  • Service estimate: An estimate for one vehicle. Services added from the catalogue (one not listed for this vehicle said on warning, fit unknown said); each with its lines…
  • Job card: A technician's repair order, phone-first. The vehicle, the customer and when it's due in words (due at, due in, overdue by how long); an offline copy…
  • Parts tracker: Parts across a shop's work orders: each with its number, the order and vehicle, supplier, quantity and cost (not known said), and where it is: ordered…
  • Visit board: The staff board for a walk-in queue: visits move from waiting through called and serving to done today. Arrival (here or on the way), the place in the…

Part of Beamline UI: polished, editable React components and complete screens for custom applications. Build your own style from any look; tokens, fonts, radii, motion; not only colours.