fix(editor): honest save indicator — Changed while dirty (#83)
The dot claimed "Saved" for open posts even with unflushed keystrokes; only draft mode told the truth. SaveState now mirrors cleanliness: Changed while text differs from the last flush, Saved when clean. The Saving… state is deleted — the synchronous write never lasts a render pass. Save failed stays sticky until a write actually succeeds, and Keep Local no longer adopts local text as flushed when the post vanished mid-alert (that path silently killed ⌘S with "Saved" showing). Closes #83 [Generated by AI]
This commit is contained in:
1 parent
c1f5d707f8
commit
fc0dde4f7c
5 files changed
+79
-12
No files matched your search
@@ -224,7 +224,7 @@ private struct SaveStateDot: View {
|
||||
private var label: String {
|
||||
switch state {
|
||||
case .saved: "Saved"
|
||||
case .saving: "Saving…"
|
||||
case .changed: "Changed"
|
||||
case .failed: "Save failed"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user