mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-28 22:42:11 +01:00
3704c16de5cc235f6bb021af5a7c17aa3f1073b9
Implement comprehensive system to disable specific purchase options (e.g., B2B delivery) for reward flows while providing flexible UI control. Key Features: - `disabledPurchaseOptions`: Array to specify options to disable (skips API calls) - `hideDisabledPurchaseOptions`: Toggle to hide or show disabled options - true (default): Completely hidden from UI - false: Shown with disabled visual state (grayed out, not clickable) Implementation: - Store: Added state field and isOptionDisabled() helper method - Availability loading: Skip API calls for disabled options in _loadAvailabilities() - UI: Base directive prevents clicks, applies .disabled CSS class - Visual: CSS styling for disabled state (opacity, cursor, background) - Component: Updated showOption() logic to respect hide flag Reward Integration: - Applied to reward-catalog: Disable B2B delivery for reward redemption - Applied to reward-shopping-cart: Disable B2B delivery for cart items Documentation: - Comprehensive README.md with usage examples and architecture - JSDoc comments on all interfaces, methods, and directives - Migration notes for breaking change (hidePurchaseOptions renamed) Breaking Change: Renamed `hidePurchaseOptions` → `disabledPurchaseOptions` for clarity Affected Files: - Core: modal data, service, component, store, state - Tiles: base directive, CSS styling - Reward: catalog action, shopping cart item
feat: refactor return feature components; remove deprecated files and implement new search bar input
Hima
This project was generated with Angular CLI version 7.2.1.
Development server
Run ng serve --ssl for a dev server. Navigate to https://localhost:4200/. The app will automatically reload if you change any of the source files.
Code scaffolding
Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.
Build
Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the --prod flag for a production build.
Running unit tests
Run ng test to execute the unit tests via Karma.
Running end-to-end tests
Run ng e2e to execute the end-to-end tests via Protractor.
Further help
To get more help on the Angular CLI use ng help or go check out the Angular CLI README.
Description
Languages
TypeScript
86.9%
HTML
8.6%
SCSS
2.4%
JavaScript
1.3%
CSS
0.6%
Other
0.2%