Repository navigation
Preserve offline task edits through rejection and reduce 10k editor work - #686
Merged
Merged
Conversation
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.
Offline editing
A title save could send an old body back after another client had edited it. Clearing a property could disappear from the recovery copy because JSON omits undefined values. The editor now sends explicit changes, records clears as null and merges individual custom properties into the latest task. It retains the device copy while receipts are pending or rejected. “Keep my edit” checks the reviewed revision and preserves unrelated peer changes.
Two unit regressions fail against
25c1674c. The Chromium SDK fixture also reproduces a lost estimate clear on that baseline. It reloads the app over a retained MemoryReplica and write ledger, simulates the peer edit and rejection, reloads again during review, then checks the final title, body, estimate and peer priority.Collection performance
The detail editor caches its navigation position. The filter preview depends on the query fields. Bulk selection keeps a reading-order index and reuses its selected rows and tag calculations.
Run
rpnpm bench:editor-interactionsfor three 10,000-task React/jsdom samples. Ten changes to the last task’s title previously visited 100,000 navigation IDs and now visit zero. Five view-name changes previously evaluated the filter five times and now evaluate it zero times. The benchmark also exercises opening and saving a task, applying tag, context, project and status filters, and selecting and updating 32 tasks.Median milliseconds across three shared-builder runs on each revision. The baseline is
25c1674c.Validation
/tasknotes-app/preview.