Repository navigation
Conversation
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 113 |
| Duplication | 0 |
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
… note Tapping a version in the activities list restored it immediately, without any way to see what it contained. Users now get a preview screen that shows the changes compared to the current note, or the full text, and restoring asks for confirmation first. FileVersion from android-library only parcels mimeType and fileLength, so passing it through an Intent lost the file id and revision and led to requests for /versions/0/0. A small serializable VersionReference is passed instead. The server also lists the current file as a version, which has no stored version file and returns 404 on download. The newest entry is therefore labelled "Current version", shows the local note text and cannot be restored, matching the Nextcloud web versions tab. Assisted-by: ClaudeCode:claude-opus-5-5 Signed-off-by: larena1 <60823161+larena1@users.noreply.github.com>
larena1
force-pushed
the
feat/version-diff
branch
from
December 3, 2026 09:59
c1227e8 to
908f29a
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.
Tapping a version in the note details' activities list restored it immediately, without any way to see what it contained. This adds a preview screen for file versions with a line diff against the current note, and asks for confirmation before restoring.
Refs #3272
What changed
−on a red background, lines only in the current note+on green. Unchanged runs are collapsed to "⋯ N unchanged lines" with three lines of context.Two bugs found on the way
FileVersionfrom android-library only parcelsmimeTypeandfileLength. Passing it through anIntentlost the file id and revision, so requests went to/versions/<user>/versions/0/0. A small serializableVersionReferenceis passed instead.Notes for review
LineDiff.kt(common prefix/suffix trimming + LCS) instead of adding a library, to avoid touching the Gradle verification metadata. Above 2M table cells it falls back to "all removed, all added" to bound memory.🏁 Checklist
/backport to stable-xx.x🤖 AI (if applicable)
The code was written with Claude Code and reviewed, built and tested on a device by me.
How to test
🤖 Generated with Claude Code