fix(drafts): stop clearing drafts on workspace switch and hide sent section (#1708)

Signed-off-by: Will Pfleger <pfleger.will@gmail.com>
Co-authored-by: npub1mn7jgtj4w2pd0g0zeuhxsa6jy6p0rewxz4kujt98my82ahfmp72sxjexk7 <dcfd242e557282d7a1e2cf2e6877522682f1e5c6156dc92ca7d90eaedd3b0f95@sprout-oss.stage.blox.sqprod.co>
This commit is contained in:
Will Pfleger
2026-07-10 12:23:45 -04:00
committed by GitHub
parent 177fc30bea
commit e2d104f669
9 changed files with 110 additions and 303 deletions

View File

@@ -3,8 +3,8 @@
* time.
*
* Returns the key when a draft was actually persisted in the store before the
* send fired (so a sent record should be written), or null when no entry
* exists (fast / never-persisted send — no sent record should be written).
* send fired (so the active draft should be cleared on send), or null when no
* entry exists (fast / never-persisted send — no active draft to clear).
*
* This is a pure function with no dependencies so it can be imported and
* exercised directly in Node .mjs tests without a React renderer.