VSN-2114 : Removing prepared passengers exportation & deletion features traces in front ui & Integration & store implementations.
Merge Request Description
Title
Removal of Deprecated Features and Export Control Refactoring
Overview
This merge request focuses on cleaning up deprecated functionality related to prepared passengers by removing unused endpoints, store logic, and UI integrations. In parallel, it introduces a new export control flag to better manage export-related actions in the user interface.
The goal is to simplify the codebase, reduce maintenance overhead, and align the application with the current functional requirements.
Scope of Changes
The changes mainly concern:
- Backend API cleanup
- Store and state management simplification
- Frontend integration refactoring
- UI behavior control related to exportation
Detailed Changes
1. Removal of Deprecated Endpoints
- Removed backend endpoints related to features that are no longer needed:
- Prepared passenger deletion
- Mass exportation of prepared passengers
- Ensures the API surface only exposes actively supported functionalities.
- Reduces confusion and potential misuse of obsolete endpoints.
2. Store Layer Cleanup
- Removed store implementations related to:
- Mass exportation of prepared passengers
- Prepared passenger deletion
- This simplifies the store logic and avoids maintaining unused actions, states, and side effects.
- Improves readability and long-term maintainability of the store layer.
3. Frontend Integration Removal
- Removed integrations related to deprecated features at multiple UI levels:
- Prepared passenger deletion logic removed from table row components
- Mass exportation logic removed from:
- Prepared passenger hooks
- Prepared passenger list view
- Ensures the UI is fully aligned with the cleaned backend and store layers.
4. Export View Refactoring
- Removed the preparation option from the export list view.
- Clarifies the export workflow and avoids exposing unused or misleading options to users.
- Results in a more focused and consistent export experience.
5. Export Visibility Control Flag
- Added a new export flag to the table control bar.
- This flag controls whether the export button should be displayed or hidden.
- Enables better UI flexibility and allows conditional exposure of export functionality based on context or permissions.
Benefits
- Cleaner and more maintainable codebase
- Reduced technical debt by removing obsolete features
- Better alignment between backend, store, and UI layers
- Improved user experience through simplified export behavior
- Increased flexibility in controlling export actions via UI flags
Impacted Areas
- Backend controllers (endpoint removal)
- Store/state management
- UI components (table row, hooks, list views)
- Export-related views and controls
Backward Compatibility
- The removed features were already deprecated or no longer used.
- No active or supported workflows are impacted by these changes.
Conclusion
This merge request streamlines the application by removing obsolete deletion and mass export features, refactoring related integrations, and introducing a clearer export control mechanism. The result is a cleaner architecture, reduced complexity, and a UI that better reflects current functional needs.
Closes VSN-2114