Overview
This change request proposes adding functionality to allow users to delete multiple journeys simultaneously from the Journey overview, with built-in dependency checks to prevent deletion of journeys in active states.
Current Behavior
Currently, users can select multiple journeys in the Journey overview (indicated by a blue line showing the number of selected items), but must delete journeys individually through each journey's ellipsis menu.
Proposed Changes
- Enable bulk deletion of multiple selected journeys through a single action
- Implement/Keep as is - dependency checks to prevent deletion of "Published" (including "In review", "Dry Run") journeys. Only delete when status is Draft, Draft (Test), Finished or similar.
- Add a "Delete Selected" button that appears in the blue selection bar when multiple journeys are selected
- Display a confirmation dialog showing:
- Number of journeys that will be deleted
- Number of journeys that cannot be deleted (with their states)
- Option to proceed with deleting eligible journeys only
Validation
- Only journeys in Draft, Draft (Test), Finished or similar status can be deleted
- If mixed selection (some eligible, some ineligible), provide clear feedback on which can be deleted
- After deletion, the selection counter should accurately reflect remaining selected items
Error Handling
- If deletion fails for any journey, show appropriate error message
- Provide detailed feedback on which journeys were successfully deleted and which weren't
Benefits
- Improved user efficiency when managing multiple journeys
- Reduced risk of accidentally deleting active journeys
- Consistent user experience for bulk operations