Repository navigation
feat: keep note drafts offline and add version history - #43
Merged
Merged
Conversation
AmrMsCLL
force-pushed
the
feat/notes-editor
branch
from
October 5, 2026 19:04
982e6ae to
aedfdce
Compare
AmrMsCLL
force-pushed
the
feat/note-history
branch
from
October 5, 2026 19:04
8632470 to
55991d2
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
PR 3e from
.claude/.Plans/as2026-10-02-strata-phase-3-technical-design.md. Amr approved decision 4,y-indexeddb. Stacked on #42.New dependency:
y-indexeddb9.0.12 (MIT, no further dependencies), installed in the Linux container so the lockfile keeps itslibcfields.strata-note-<id>);note_versions):GET /notes/:id/versions(when and by whom),GET /notes/:id/versions/:versionId(the text), andPOST …/restorefor editors.Migration (runs on deploy)
20261005040000_note_versionscreatesnote_versions. It changes no existing rows.Verification
Lint, both builds and
tsc --noEmitpass.test/integration/notes.spec.tsadds a case covering:All four notes cases pass against Postgres on the local stack.
test/notes.spec.tsxadds a case for previewing and restoring, and for viewers having no Restore button.On the real local stack:
strata-note-<id>IndexedDB database is created;Offline editing itself wasn't tried; it would need the network cut in the browser.