Repository navigation
Implement conflict resolution UI for concurrent edits - #1231
Merged
Merged
Conversation
When SharedNodeStore detects a concurrent-edit conflict via its Last-Write-Wins resolver, the losing pane now shows a brief toast: "Your edit was overwritten by another pane". The toast auto-dismisses after 4 seconds and can be manually closed. - conflict-notifications.svelte.ts: rune-based singleton store for pending conflict notifications (add/dismiss/dismissAll) - conflict-toast.svelte: fixed-position overlay toast component rendered in app-shell; uses CSS animation and var(--color-*) design tokens - shared-node-store.svelte.ts: handleConflict() now calls conflictNotifications.add() after resolving via LWW - app-shell.svelte: renders <ConflictToast /> above the status bar - 10 new tests: store unit tests + SharedNodeStore integration tests Co-Authored-By: Claude <[email protected]>
- conflict-notifications: cap at 10 entries (drop oldest on overflow), capture single Date.now() for id + createdAt - shared-node-store: replace hardcoded message with CONFLICT_MESSAGE map keyed on conflictType; distinct messages for concurrent-edit, version-mismatch, and deleted-node - conflict-toast: add orphaned-timer cleanup sweep in $effect; fix⚠️ emoji variant selector; add prefers-reduced-motion guard - tests: add overflow cap test; make conflictCount metric assertion unconditional (was silently skippable if detection regressed) Co-Authored-By: Claude <[email protected]>
malibio
force-pushed
the
worktree-issue-642-conflict-resolution-ui
branch
from
May 29, 2026 21:29
8efb9d0 to
56aeb0b
Compare
Collaborator
Author
Review Feedback AddressedAll 7 findings from the pragmatic code review have been addressed in commit 56aeb0b. Changes Made
Also added a test for the overflow cap behaviour (11th notification drops the oldest). Tests: 131 files, 3924 tests — all passing. |
This was referenced May 30, 2026
Closed
Closed
malibio
added a commit
that referenced
this pull request
Jun 22, 2026
* Implement conflict resolution UI with toast notifications (closes #642) When SharedNodeStore detects a concurrent-edit conflict via its Last-Write-Wins resolver, the losing pane now shows a brief toast: "Your edit was overwritten by another pane". The toast auto-dismisses after 4 seconds and can be manually closed. - conflict-notifications.svelte.ts: rune-based singleton store for pending conflict notifications (add/dismiss/dismissAll) - conflict-toast.svelte: fixed-position overlay toast component rendered in app-shell; uses CSS animation and var(--color-*) design tokens - shared-node-store.svelte.ts: handleConflict() now calls conflictNotifications.add() after resolving via LWW - app-shell.svelte: renders <ConflictToast /> above the status bar - 10 new tests: store unit tests + SharedNodeStore integration tests Co-Authored-By: Claude <[email protected]> * Address code review feedback for conflict resolution UI - conflict-notifications: cap at 10 entries (drop oldest on overflow), capture single Date.now() for id + createdAt - shared-node-store: replace hardcoded message with CONFLICT_MESSAGE map keyed on conflictType; distinct messages for concurrent-edit, version-mismatch, and deleted-node - conflict-toast: add orphaned-timer cleanup sweep in $effect; fix⚠️ emoji variant selector; add prefers-reduced-motion guard - tests: add overflow cap test; make conflictCount metric assertion unconditional (was silently skippable if detection regressed) Co-Authored-By: Claude <[email protected]> --------- Co-authored-by: Michael Libio <[email protected]> Co-authored-by: Claude <[email protected]>
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.
Closes #642