Skip to content

Record block edit timestamps on mobile - #316

Merged
tiensonqin merged 2 commits into
mainfrom
devin/1796228107-mobile-block-updated-at
Dec 3, 2026
Merged

tiensonqin merged 2 commits into
mainfrom
devin/1796228107-mobile-block-updated-at

Conversation

@tiensonqin

@tiensonqin tiensonqin commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Write block/updated-at in the same transaction as mobile outliner title changes, including saves and title changes caused by splitting or merging blocks. The resolved transaction carries the original edit time through offline reopen and sync retries.
  • Skip a pending activity write and its paired retraction when the current graph already has an equal or newer time. Replay and upload still apply the rest of the offline edit.

Fixes logseq/db-test#1574.

Verification

  • opam exec --switch=5.5.0 -- dune build @shared/native/runtest passed (1,478 tests, including outliner performance checks). Regressions cover filling an existing empty block, appending text before pressing Return, and replaying and uploading an offline title edit after receiving a newer remote activity time.
  • Shared-core benchmark on macOS, 100 journal pages and 1,050 blocks, 15 samples. Median save was 2.02 → 1.60 ms, Return 2.56 → 1.83 ms, a remote update during editing 7.31 → 8.03 ms, and eight Return presses with RTC confirmations 118.17 → 120.00 ms. Median save allocation was 553 → 638 KB.
  • Android and iOS Release device behavior and timings remain unverified.

Link to Devin session: https://app.devin.ai/sessions/f3f7ac8f7aaf4e66a296097dc1de71cd
Open in Devin Desktop: https://app.devin.ai/desktop/session/f3f7ac8f7aaf4e66a296097dc1de71cd?variant=devin
Requested by: @tiensonqin


🟢 Devin Review found nothing to fix · View findings · Follow Devin's work

Devin Review

@devin-ai-integration

Copy link
Copy Markdown
Contributor

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

@devin-ai-integration devin-ai-integration Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@tiensonqin
tiensonqin merged commit a13e1dc into main Dec 3, 2026
11 checks passed
@tiensonqin
tiensonqin deleted the devin/1796228107-mobile-block-updated-at branch December 3, 2026 01:24
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.

block/updated-at not updated by new mobile app

1 participant