mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-28 22:42:11 +01:00
feat(remission-data-access, remission-start-dialog): refactor remission workflow to use createRemission API Replace the startRemission method with separate createRemission and assignPackage operations. The new implementation improves error handling and provides better separation of concerns between return creation and package assignment steps. Key changes: - Add CreateRemission interface to models with support for validation error properties - Replace startRemission with createRemission method that handles return and receipt creation - Update service methods to return ResponseArgs objects with proper error handling - Enhance dialog components with reactive error handling using Angular effects - Add comprehensive server-side validation error display in form controls - Separate package assignment into dedicated step with individual loading states - Improve test coverage with proper mocking of new service methods The refactored workflow provides better user feedback for validation errors and maintains the existing two-step process while improving maintainability and error handling. Ref: #5251