Skip to content

Block day switch on failed autosave; refresh toolbar on editor swap - #47

Merged
setzor merged 1 commit into
mainfrom
vibe/autosave-dataloss-toolbar-refresh-3d935b
Oct 27, 2026
Merged

setzor merged 1 commit into
mainfrom
vibe/autosave-dataloss-toolbar-refresh-3d935b

Conversation

@setzor

@setzor setzor commented Oct 27, 2026

Copy link
Copy Markdown
Owner

Summary

Verification

  • pnpm test — 17 files, 80 tests passed (incl. new tests: flushNow false on persistent save failure / true once saved; toolbar refresh hides inTableOnly buttons after editor swap).
  • pnpm typecheck and pnpm build pass.

Closes #20
Closes #19

…or swap

- flushNow now reports whether everything was saved; openDate and
  switchNotebook abort when unsaved content is still pending so the
  dirty editor is never destroyed and its text lost (#20).
- createToolbar returns a refresh function; openDate calls it so
  table-only toolbar buttons no longer stay visible after switching
  away from a date that had a table (#19).

Co-authored-by: setzor <setzor@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants