Skip to content

Add note version history and comparison - #215

Merged
koreyba merged 5 commits into
mainfrom
codex/note-history-mvp
Nov 6, 2026
Merged

koreyba merged 5 commits into
mainfrom
codex/note-history-mvp

Conversation

@koreyba

@koreyba koreyba commented Nov 5, 2026 •

Copy link
Copy Markdown
Owner

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.

@coderabbitai

coderabbitai Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 7c73a824-9518-4b1f-b9be-514e2caaa86e
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@github-actions

github-actions Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

PR Status

Updated for PR #215 at 79375e6 on 2026-11-06T08:47:32.401Z.

📊 Allure Test Report

Open Allure Report

Contributing Workflows

Workflow Status Suites
Unit Tests ✅ Completed Core Unit, Core Integration, Web Unit, Mobile Unit
Component Tests ✅ Completed Web Component
E2E Tests (PR Preview) ✅ Completed Web E2E

Catalog: All reports

🤖 Android Build Panel

Check a box below to trigger a release build:

  • 🚀 Build Stage Release APK
  • 🚀 Build Prod Release APK

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Deploying everfreenote with  Cloudflare Pages  Cloudflare Pages

Latest commit: 79375e6
Status: ✅  Deploy successful!
Preview URL: https://2edb6998.everfreenote.pages.dev
Branch Preview URL: https://codex-note-history-mvp.everfreenote.pages.dev

View logs

@github-actions

github-actions Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Allure Report Summary

Name Duration Stats New Flaky Retry Report
Allure Report Allure Report 12m 22s Passed tests 3447   Skipped tests 7 0 0 0 View

@sonarqubecloud

sonarqubecloud Bot commented Nov 5, 2026

Copy link
Copy Markdown

@koreyba
koreyba merged commit 1c6e067 into main Nov 6, 2026
49 of 53 checks passed
@koreyba
koreyba deleted the codex/note-history-mvp branch November 6, 2026 08:49

This branch was successfully deployed

1 active deployment
Stage — 79375e61 Deployed Nov 5, 2026 by koreyba via build #1071
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant