frontend/src/admin/orders/README.mdView on GitHub ↗
admin/orders
Order directory, detail, state-machine transitions, payment/delivery operations and document generation. Components use shared API commands; state effects come from server events.
Files and their individual responsibilities are listed in the generated source inventory. Each file starts with its contract summary.
Modules
OrderDetail.tsx: Order workspace: server actions, exact-once commands, provider progress and visible event history.OrderPaymentDelivery.tsx: Payment jobs are observed until confirmation. Delivery actions share the server state machine.OrderWorkflow.tsx: Server-owned transitions: one source for permitted actions, labels and business guards.OrdersManager.tsx: Order operations UI. All changes call the same domain endpoints exposed through MCP.ReceiptPanel.tsx: Seller configuration and version-bound receipt creation/download.
Verification
Run npm run build, npm test, npm run test:coverage and npm run architecture from frontend/. Coverage includes untested source files; a module in this folder is not automatically fully tested. See the root testing guide for backend integration and coverage limits.