Categories & Groups / Category
26 entries across 9 modules.
How a single supplier's part of a search ended, shown in the results header.
How refetching one specific product ended.
One supplier's result for the most recent search.
Compact ISO 3166-1 alpha-2 country table: the English name and primary currency code for each country, and nothing else.
It replaces the runtime country-list-js dependency, which carries provinces, capitals,
phone codes and more (~140 kB) for the two fields ChemPal reads. The library is kept as
a dev dependency purely so src/constants/__tests__/countryData.test.ts can fail if this
table ever drifts from it. Regenerate by re-running the extraction described there.
[name, currency] per country, keyed by ISO 3166-1 alpha-2 code. currency is the
ISO 4217 code of the country's primary currency (e.g. "EUR").
Widget kinds a column's meta.drawer config can request. The value discriminates
the ColumnDrawerConfig union, so each one implies the runtime type of that
branch's options (e.g. DRAWER_WIDGET.AUTOCOMPLETE_OBJECTS needs
{ code, label }[]).
A DRAWER_WIDGET value.
Where a drawer section's value reads and writes in app state. Discriminates the
ColumnDrawerBinding union, so ColumnDrawerSection can dispatch on it
without columns knowing how the context is structured.
A DRAWER_BINDING value.
Sentinel values for a numberRange widget's adornment. Anything else is used
verbatim as the start-adornment text.
Fill colours for the four quadrants of an NFPA 704 "fire diamond".
Base URL for NIST WebBook structure images; append Struct=C<CAS digits>&Type=Color.
HTTP status codes the extension compares against or documents. Use these instead of bare
numbers so a check like error.status === HttpStatus.FORBIDDEN explains itself.
Deliberately a short list of the codes that matter when talking to supplier sites, not the
full registry; add a member here when a new code is needed. It replaced the
http-status-codes package, whose ~60-entry enum was bundled for the sake of one constant.
Common HTTP status codes, named in UPPER_SNAKE_CASE after their reason phrases.
GENERATED FILE — DO NOT EDIT.
Written by tools/generate-supplier-meta.js (pnpm run generate) from the static
fields of the supplier classes, which remain the single source of truth. Change a
supplier's name, country, shipping scope or shipsTo on its class and regenerate;
src/suppliers/__tests__/supplierMeta.test.ts fails 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.ts for the accessors.
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.
Failure share at or above which a category counts as "excessive". Below this a supplier is treated as healthy — occasional failures are normal. Total failure (a ratio of 1) escalates to the critical status for that category.
Exported so callers and tests can reference the threshold rather than duplicating the literal.
Reasons the shared search
AbortControllergets aborted. Passed verbatim tocontroller.abort()so a terminal search event can name the cause fromsignal.reasoninstead of string-matching a free-form message.