Skip to content

Suppliers (Admin)

Suppliers supports searchable list, overview stats, modal create/edit, and detail with catalog/inventory context links. Debounced search and pagination match other admin tables.


GoalsNon-goals
Maintain supplier master dataRun procurement approvals inside this UI
Quick create/edit from listReplace ERP supplier sync

  • 400ms debounced search; 10 rows/page; overview from fetchAdminSuppliersOverview where wired.

  1. Open Suppliers → search → open row or create in modal.
  2. Save → verify in list and detail.

  • Supplier contacts may be sensitive—restrict exports and shared logins.

IDScenarioExpected
SP1SearchDebounced; list updates
SP2CreateModal save → row appears
SP3DetailRelated context loads

PathPurpose
/dashboard/suppliersSearchable list, overview stats, create/edit in a modal
/dashboard/suppliers/:idSupplier detail (related catalog and inventory context)
  • Search — debounced (400ms), resets pagination to page 1.
  • Pagination10 rows per page; overview stats: total/active suppliers, total purchased, outstanding to suppliers (with overdue sub-line when applicable); data table with actions.
  • Create / editSupplierModal opens from the toolbar; editing pre-fills from the selected row.
  • Delete — confirmation dialog, then deleteAdminSupplier; success toast and query invalidation.

Product catalog screens can also reference suppliers when configuring items; the supplier detail route aggregates supplier metadata plus related lists (for example products and lots) as implemented in detail.tsx.

Use the detail Overview tab for item/lot counts, purchase totals, outstanding balance, and overdue debt (unpaid lots with a purchase date before today), plus supplier metadata and catalog link count.