mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-28 22:42:11 +01:00
f549c59bc87f79b1b14c61d160a2f8805933f199
feat(customer-search): use navigation state for reward customer selection Replace tab metadata context flag with NavigationStateService for tracking reward flow customer selection. Store return URL in preserved navigation context instead of tab metadata 'context' field. Benefits: - Clean separation: tab metadata no longer polluted with flow state - Automatic cleanup when tabs close (no manual cleanup needed) - Survives intermediate navigations (e.g., address edit) - Tab-scoped automatically via TabService integration Changes: - Remove `isRewardTab()` linkedSignal and tab metadata 'context' check - Add NavigationStateService with 'select-customer' scope - Store returnUrl in preserved context before navigation - Restore context and navigate back on customer selection - Update reward-start-card to preserve context on button click - Remove reward-catalog context initialization (no longer needed) Technical Details: - Context stored in tab.metadata['navigation-contexts']['select-customer'] - Uses async methods: preserveContext(), restoreAndClearContext() - Signal-based hasReturnUrl() for template reactivity - Maintains existing button flow (checks hasReturnUrl signal) Ref: #5368
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%