mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-28 22:42:11 +01:00
212203fb04885e2371a83dba1d3fbc4da26f444c
fix(core-tabs): improve tab cleanup and naming logic Refactor tab management to handle checkout state transitions more reliably: - Extract helpers (formatCustomerTabNameHelper, checkCartHasItemsHelper, getNextTabNameHelper) from checkout component to @isa/core/tabs for reuse - Fix getNextTabNameHelper to count tabs instead of finding max ID, preventing gaps in "Vorgang X" numbering - Add canDeactivateTabCleanup guard to manage tab context based on cart state: * Preserves customer context if either cart (regular or reward) has items * Updates tab name with customer/organization name when context preserved * Resets tab to clean "Vorgang X" state when both carts empty * Handles navigation to global areas (without tab ID) gracefully - Apply canDeactivateTabCleanup to checkout-summary and reward-order-confirmation routes - Move tab cleanup logic from component ngOnDestroy to reusable guard - Add comprehensive unit tests for getNextTabNameHelper This ensures tabs maintain correct state after order completion, properly display customer context when carts have items, and reset cleanly when both carts are empty. The guard approach centralizes cleanup logic and makes it reusable across checkout flows. Ref: #5480
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%