VSN-1923/ Integration with backEnd : Adding store for personalize or duplicate
Integration with backend: Add store method for personalize or duplicate trip actions
This merge introduces the integration between the frontend and backend for handling trip personalization and duplication actions.
-
Added a new store method personalizeOrDuplicate(planningTripAction: PlanningTripAction) to communicate with the backend.
-
Updated the handleSave function to build the planningTripAction object and call the store method asynchronously.
-
Added success and error handling with visual feedback using enqueueSnackbar.
-
Ensured proper validation for required fields (tripObservation, selected dates for duplication, etc.).
-
The UI now closes automatically upon a successful operation.