Repository navigation
Add note version history and comparison - #215
Merged
Merged
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
Contributor
PR StatusUpdated for PR #215 at 📊 Allure Test ReportContributing Workflows
Catalog: All reports 🤖 Android Build PanelCheck a box below to trigger a release build:
|
Deploying everfreenote with
|
| Latest commit: |
79375e6
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://2edb6998.everfreenote.pages.dev |
| Branch Preview URL: | https://codex-note-history-mvp.everfreenote.pages.dev |
Contributor
Allure Report Summary
|
koreyba
force-pushed
the
codex/note-history-mvp
branch
from
November 5, 2026 21:37
3b8c0fd to
b0cf2f1
Compare
|
This branch was successfully deployed
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.



Notes now have a version history. Open it from the note menu in reading or editing mode to preview a saved version or compare any two versions inline or side by side. Restoring a version happens in reading mode, so the editor can keep its draft when history is opened.
The list checks for fresh versions on open, on window focus, and after the server confirms a write. It keeps the current comparison and reuses earlier pages when their boundary snapshots still match. The list and selectors scroll on narrow screens, and a separate Current badge keeps the selected version number visible.
The Supabase migration seeds existing notes and records a snapshot when a synced write changes the title, body, or tags. Only the owner of an active note can read or restore snapshots. A restore rejects a stale selection and preserves queued local edits. Offline edits combined by the sync queue share one server version.
Moving a note to Trash keeps its history and the images used by old versions. Recovering the note leaves its version numbers intact. Permanent purge removes the snapshots and releases its image references for cleanup.
Validated locally with 2,209 core and web unit tests, 23 Trash PostgreSQL scenarios, 21 pgTAP checks, the Electron editor-history test, TypeScript, and ESLint. The local browser showed the new version immediately after Save in the same session. Also checked a 64-version demo on narrow screens and in both mobile orientations.
Apply migration 20261105193003 after the Trash migrations and before rolling out the web or Android client. The Stage project used by this PR preview already has the migration.