Commit 9e54719
committed
Drag out: completion toasts + signs-of-life affordance (M3)
- One toast per drag SESSION (not per file): a signs-of-life in-progress toast when the first fulfillment begins ("Downloading 3 items…"), replaced in place by a completion toast when the session drains. Finder shows nothing while a promise downloads, so this is Cmdr's feedback surface.
- Success wording reuses the shared `composeTransferCompleteToast` selection-split ("Copied 2 files and 1 folder."); failures name the file(s) and complement Finder's own NSError alert rather than duplicating it.
- BE: `native_drag/session_summary.rs` folds per-item outcomes (file/folder/failure) into the toast counts; `promises.rs` records each fulfillment's outcome on the serial queue and emits `drag-out-session-started` / `drag-out-session-complete` at the session lifecycle points (plain Tauri events, FE-mirrored payloads — same pattern as the downloads watcher). `fulfillment.rs` now returns the resolved kind.
- FE: `drag-out-event-bridge.ts` listens to both events and shows the toast; `drag-out-toast.ts` is the pure composer. Both TDD-tested.
- Affordance is no-user-cancel in v1 (Finder owns the gesture); honest because it reflects real in-flight work, not a guessed size threshold.
- Docs: drag/CLAUDE.md now describes the shipped feature (was M1 "clean no-op"); native_drag docs gain the toast section; virtual-mtp.md notes the device is the drag-out test rig; plan's open decisions marked resolved.
- CHANGELOG: user-facing "drag files and folders from your phone or NAS straight to Finder".1 parent c97a032 commit 9e54719
14 files changed
Lines changed: 792 additions & 61 deletions
File tree
- apps/desktop
- src-tauri/src/native_drag
- src
- lib/file-explorer/drag
- routes/(main)
- docs
- specs
- tooling
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
21 | 24 | | |
22 | 25 | | |
23 | 26 | | |
| |||
41 | 44 | | |
42 | 45 | | |
43 | 46 | | |
44 | | - | |
45 | | - | |
| 47 | + | |
| 48 | + | |
46 | 49 | | |
47 | 50 | | |
48 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
106 | 107 | | |
107 | 108 | | |
108 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
109 | 135 | | |
110 | 136 | | |
111 | 137 | | |
| |||
121 | 147 | | |
122 | 148 | | |
123 | 149 | | |
124 | | - | |
125 | | - | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
126 | 155 | | |
127 | 156 | | |
128 | 157 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
103 | 112 | | |
104 | 113 | | |
105 | 114 | | |
106 | 115 | | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
111 | 125 | | |
112 | 126 | | |
113 | 127 | | |
| |||
138 | 152 | | |
139 | 153 | | |
140 | 154 | | |
141 | | - | |
| 155 | + | |
142 | 156 | | |
143 | 157 | | |
144 | 158 | | |
| |||
181 | 195 | | |
182 | 196 | | |
183 | 197 | | |
184 | | - | |
| 198 | + | |
185 | 199 | | |
186 | 200 | | |
187 | 201 | | |
| |||
349 | 363 | | |
350 | 364 | | |
351 | 365 | | |
352 | | - | |
| 366 | + | |
353 | 367 | | |
354 | 368 | | |
| 369 | + | |
355 | 370 | | |
356 | 371 | | |
357 | 372 | | |
| |||
521 | 536 | | |
522 | 537 | | |
523 | 538 | | |
524 | | - | |
| 539 | + | |
525 | 540 | | |
526 | 541 | | |
| 542 | + | |
527 | 543 | | |
528 | 544 | | |
529 | 545 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
0 commit comments