Notes: Detect edit conflicts between tabs or devices instead of last write wins
Evernote keeps note history and creates conflicting-change copies so that edits from two devices are never silently lost (https://help.evernote.com/hc/articles/208313858). Our autosave PATCH sends the whole title and block array with no version or updated_at precondition (components/notes/NotesApp.tsx saveContent, lib/notes.ts updateNote), so a stale tab or a laptop left open overwrites newer content written on a phone. PATCH also accepts content edits on trashed notes. This is silent data loss in the most common multi-device scenario. First scope: send the last known updated_at with each save, return 409 when the server row is newer, and show a 'This note changed elsewhere, reload or keep mine' banner; reject content edits on trashed notes. Priority: high. Effort: S. Compared with Evernote.
Comentários 0
Ainda sem comentários.
Entre para comentar