mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-28 22:42:11 +01:00
feat(crm): introduce PrimaryCustomerCardResource and format-name utility Replace SelectedCustomerBonusCardsResource with a new PrimaryCustomerCardResource that automatically loads and exposes the primary customer card as a signal. This simplifies customer card access across the application by providing a centralized, root-level injectable resource with automatic tab synchronization. Create new @isa/utils/format-name library to consolidate customer name formatting logic previously duplicated across components. The utility formats names with configurable first name, last name, and organization name fields. Key changes: - Add PrimaryCustomerCardResource as providedIn root service with automatic customer selection tracking via effect - Remove SelectedCustomerBonusCardsResource and its manual provisioning - Extract formatName function to dedicated utility library with Vitest setup - Update all reward-related components to use new resource pattern - Migrate OMS components to use centralized format-name utility - Add comprehensive unit tests for formatName function BREAKING CHANGE: SelectedCustomerBonusCardsResource has been removed Ref: #5389
28 lines
584 B
JSON
28 lines
584 B
JSON
{
|
|
"extends": "./tsconfig.json",
|
|
"compilerOptions": {
|
|
"outDir": "../../../dist/out-tsc",
|
|
"declaration": true,
|
|
"declarationMap": true,
|
|
"inlineSources": true,
|
|
"types": []
|
|
},
|
|
"exclude": [
|
|
"src/**/*.spec.ts",
|
|
"src/test-setup.ts",
|
|
"jest.config.ts",
|
|
"src/**/*.test.ts",
|
|
"vite.config.ts",
|
|
"vite.config.mts",
|
|
"vitest.config.ts",
|
|
"vitest.config.mts",
|
|
"src/**/*.test.tsx",
|
|
"src/**/*.spec.tsx",
|
|
"src/**/*.test.js",
|
|
"src/**/*.spec.js",
|
|
"src/**/*.test.jsx",
|
|
"src/**/*.spec.jsx"
|
|
],
|
|
"include": ["src/**/*.ts"]
|
|
}
|