ChemPal Documentation - v1.15.1
    Preparing search index...

      ChemPal Documentation - v1.15.1

      Categories & Groups / Category

      Constants

      15 entries across 6 modules.

      constants/common1

      • SEARCH_ABORT_REASON

        Reasons the shared search AbortController gets aborted. Passed verbatim to controller.abort() so a terminal search event can name the cause from signal.reason instead of string-matching a free-form message.

      constants/drawer5

      supplierMetaGenerated2

      • supplierMetaGenerated

        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.

      • SUPPLIER_META

        Display and shipping metadata for every live supplier, keyed by class name, in the order src/suppliers/index.ts exports them.

      constants/supplierMeta4

      constants/suppliers2

      helpers/supplierStats1

      • EXCESSIVE_RATIO

        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.