Skip to content

Preserve offline Journal drafts across concurrent edits - #204

Merged
callumalpass merged 1 commit into
mainfrom
sprint-w8-journal-safety-perf
Nov 28, 2026
Merged

callumalpass merged 1 commit into
mainfrom
sprint-w8-journal-safety-perf

Conversation

@callumalpass

Copy link
Copy Markdown
Member

Summary

  • Preserve the local draft and its original native revision when another device edits the same entry. An offline write whose readback differs from the captured text enters review, and Journal releases the lease before it can submit newer typing against the remote version.
  • Keep conflict review durable across reloads and allow the existing Copy my text and Use saved version actions.
  • Improve dark Settings text contrast and use the matching native color scheme for controls.

Validation

Five regression cases use the pinned SDK and its in-memory replica, covering the reconnect storage race, an in-flight offline save with and without later typing, a fresh client, and a retained lease. A Chromium run with the same fixture confirmed both versions survived and the recovery actions fit at 360px. Native and hosted replay remain outside this fixture.

axe-core 4.14.1 reported zero automated violations on the editor, Settings, and the populated date picker at 360px and 1280px in light and dark. The mobile recovery state also reported zero violations. axe left manual contrast and icon name checks on some editor and picker elements.

5,000-entry Chromium fixture

Action p50 p95 Samples
Refresh unfiltered picker 264.9 ms 411.0 ms 10
Filter loaded history to a date 1.1 ms 5.6 ms 30
Open a matching entry after filtering 11.3 ms 14.6 ms 10
Previous-day jump 240.1 ms 292.4 ms 10

The picker mounted 50 rows. Unfiltered refresh and day-arrow navigation each read ten 500-record pages. The 5,000-entry repository microbenchmark averaged 1.10 ms to parse and sort pages, 2.23 ms to render the picker, and 0.066 ms to change the date filter. This revision has no Journal full-text search or export operation to profile.

@callumalpass
callumalpass merged commit af58b9c into main Nov 28, 2026
1 check passed
@callumalpass
callumalpass deleted the sprint-w8-journal-safety-perf branch November 28, 2026 10:01
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