Commit 6e93fad
authored
ui: add cross in the undo email toast, decrease time from 30s to 15s (#1979)
<!-- This is an auto-generated description by cubic. -->
## Summary by cubic
Added a close (cross) button to the undo email toast and reduced the undo window from 30 seconds to 15 seconds.
- **UI Improvements**
- The undo toast now shows a close button for quick dismissal.
- The undo option is available for 15 seconds instead of 30.
<!-- End of auto-generated description by cubic. -->
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
* **New Features**
* Improved Undo experience: separate flows for scheduled vs. immediate sends with clearer toasts. Undoing a scheduled send cancels scheduling; undoing an immediate send restores the draft (including attachments) and reopens the composer. Toasts now last 15 seconds and include a close button.
* Default delay before processing a send/schedule reduced from 30 seconds to 15 seconds.
* **Bug Fixes**
* Prevented negative time remaining, ensuring Undo is reliably available and consistent with the 5-second gating.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->1 parent 722fef4 commit 6e93fad
File tree
2 files changed
+29
-9
lines changed- apps
- mail/hooks
- server/src/trpc/routes
2 files changed
+29
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
| 72 | + | |
72 | 73 | | |
73 | 74 | | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
78 | 96 | | |
79 | 97 | | |
80 | 98 | | |
| |||
98 | 116 | | |
99 | 117 | | |
100 | 118 | | |
| 119 | + | |
101 | 120 | | |
102 | | - | |
103 | | - | |
104 | | - | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
105 | 125 | | |
106 | 126 | | |
107 | 127 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
515 | 515 | | |
516 | 516 | | |
517 | 517 | | |
518 | | - | |
| 518 | + | |
519 | 519 | | |
520 | 520 | | |
521 | 521 | | |
| |||
0 commit comments