-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PLU-361: warning when deleting connections (#794)
## Problem There is no warning/prompt when user is deleting a connection. Other delete actions on Apps/Pipes/Tiles have a warning/prompt when user is attempting to delete. Closes [PLU-361: warning-when-deleting-connections](https://linear.app/ogp/issue/PLU-361/warning-when-deleting-connections) ## Solution Add warning/prompt modal when user is attempting to delete a connection. **Improvements**: - Refactor Tiles to use MenuAlertDialog instead of inline AlertDialog - Add toast on Tile delete success ## Before & After Screenshots **BEFORE**: - No warning/modal, connection is deleted immediately. https://github.com/user-attachments/assets/1d6ccd95-76bf-4e00-ad43-615902f3aa22 - No notification on Tile delete success **AFTER**: - Delete Connection https://github.com/user-attachments/assets/c5b89692-26b1-47b3-80fe-20b64918f622 - Delete Tile https://github.com/user-attachments/assets/c68e63df-9e30-4071-91f0-968f000524fe ## Tests - [X] Modal appears when user attempts to delete a connection. - [X] Connection is deleted successfully upon confirmation on modal. - [X] Able to delete Tiles - [X] Able to duplicate Pipes - [X] Able to delete Pipes **New scripts**: - `packages/frontend/src/components/MenuAlertDialog/index.tsx` : generic MenuAlertDialog for reuse across delete actions (updated from `plumber/packages/frontend/src/components/FlowRow/MenuAlertDialog.tsx`)
- Loading branch information
1 parent
4c8e637
commit 25eeaae
Showing
4 changed files
with
91 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters