Skip to main content

Config, types & tooling

config/ · typescript/ · util/ · lib/ · json/ · build config

AreaFilesNotes
Config & constantsconfig/constants.ts, config/filterOptions.tsEnv-derived app constants (cookie names, token prefix) + KPI tooltip copy; static dropdown option lists (payment status/gateway, order/account type, payout status…).
Shared TS typestypescript/interface/*, typescript/types/*common.interface.ts — HttpStatusCode enum, BaseApiResponse; icons.interface.ts — the icon-component contract; common.type.ts — userData shape.
Formatting & date/timelib/dateTime.tsx, lib/regex/index.tsCentralized Intl.DateTimeFormat-based formatting layer with a DateTimeContext/useDateTimeFormatter() hook, used throughout the date pickers.
Small utilitiesutil/brokerMapper.ts, util/maskEmail.tsBroker display-label resolution; email masking for display.
Static JSONjson/assets, json/events, json/messages, json/mockAsset path map, event-name registry, validation copy, and a large set of mock KPI datasets still used to stub several unwired panels.
Build/lint/testnext.config.ts, vitest.config.ts, eslint.config.mjs, docker-compose.yamlNext config sets a strict security-header set (CSP, HSTS, X-Frame-Options) on every route and transpiles @mui/x-date-pickers for Turbopack; Vitest runs in jsdom with the same @/ path alias as the app.