Commit 63f2a0f
Send error notification on all createAndPersistProject failure paths
Matches the openProject convention: the catch block now sends the same
notification as the validation-failure path, so transport-level
rejections (where the backend may not have reached its own notification
send) also surface visible feedback to the user.
Expanded the JSDoc to document why the pre-round-trip newDraft() call
is safe: dirty=false means all draft data is committed to the active
project (or the draft was empty), and dirty=true means the user has
already confirmed discarding via DiscardDraftConfirm.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent d52a966 commit 63f2a0f
2 files changed
Lines changed: 18 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
543 | 543 | | |
544 | 544 | | |
545 | 545 | | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
546 | 550 | | |
547 | 551 | | |
548 | 552 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
215 | | - | |
216 | | - | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
217 | 226 | | |
218 | 227 | | |
219 | 228 | | |
| |||
245 | 254 | | |
246 | 255 | | |
247 | 256 | | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
248 | 260 | | |
249 | 261 | | |
250 | 262 | | |
| |||
0 commit comments