Categories & Groups / Group
12 entries across 5 modules.
Display and shipping metadata for every live supplier, keyed by class name, in the
order src/suppliers/index.ts exports them.
Display and shipping metadata for one supplier — the subset of a supplier class's
static fields the UI needs before any search has run.
The active supplier class names, sorted, mirroring the value exports of the
@/suppliers barrel. See the module header for how it stays dependency-free.
Shipping-destination logic, split out of SupplierBase so the UI can answer
"does this supplier ship to me?" without importing the supplier layer. The
module deliberately has no imports: it is reached from the results table and
the column drawer, which mount before any search has run.
The shipping fields a supplier exposes — either as static class members
(SupplierStaticMeta) or as an entry in SUPPLIER_META. Accepts a readonly
shipsTo so both shapes satisfy it.
The static shipping metadata every supplier class exposes as static fields,
readable without instantiating (e.g. SupplierCarolina.shipping). Consumed by
SupplierBase.shipsToCountryStatic and SupplierFactory.
GENERATED FILE — DO NOT EDIT.
Written by
tools/generate-supplier-meta.js(pnpm run generate) from thestaticfields of the supplier classes, which remain the single source of truth. Change a supplier's name, country, shipping scope orshipsToon its class and regenerate;src/suppliers/__tests__/supplierMeta.test.tsfails if this file drifts.Its reason to exist is bundle size: the UI needs supplier metadata at mount, and reading it off the classes would pull the whole supplier layer into the popup's startup bundle. See
src/constants/supplierMeta.tsfor the accessors.