Skip to content

feat(android): add note history screen with preview and restore - #193

Merged
haribo merged 2 commits into
developfrom
feat/android-note-history
Aug 9, 2026
Merged

feat(android): add note history screen with preview and restore#193
haribo merged 2 commits into
developfrom
feat/android-note-history

Conversation

@haribo

@haribo haribo commented Aug 9, 2026

Copy link
Copy Markdown
Owner

Summary

Brings note history (#183) to Android.

  • mobile facade: history / note_at / restore_version + a NoteVersionInfo record, wrapping client::commands.
  • repository + ViewModel: history/noteAt/restoreVersion on NoteRepository; ViewModel openHistory/previewVersion/restoreVersion/closeHistory/closePreview with history and versionPreview state.
  • Compose: a HistorySheet opened from the editor — a timeline (newest first, Actuel chip on the current, chevrons on the rest), a read-only version preview, and Restore (which refreshes the open editor). Time-only labels in v1 per the validated mockup.

Test plan

  • ./gradlew :app:verifyRoborazziDebug (local, JDK 17): unit tests + goldens green
  • New HistoryScreenshotTest — timeline golden, light + dark (timezone pinned to UTC for determinism)
  • New ViewModel test history_preview_and_restore (open → preview → restore, via a fake repo)
  • cargo fmt --all --check, cargo clippy --workspace --all-targets -- -D warnings, cargo test -p plain-note-mobile

Note: the Roborazzi golden covers the read-only timeline; the interactive preview/restore states are covered by the ViewModel test. Emulator screencaps of the interactive states weren't captured (no emulator in this environment) — the mockup (validated) shows those states.

Part of #179
Closes #192

@haribo
haribo merged commit 5ccf0ef into develop Aug 9, 2026
7 checks passed
@haribo
haribo deleted the feat/android-note-history branch August 9, 2026 20:00
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.

add a note history screen and restore to android

1 participant