Skip to content

Add durable offline mutation queue with FIFO replay and conflict resolution - #379

Open
Gipzy8 wants to merge 1 commit into
Adamantine-guild:mainfrom
Gipzy8:feat/offline-mutation-queue
Open

Add durable offline mutation queue with FIFO replay and conflict resolution#379
Gipzy8 wants to merge 1 commit into
Adamantine-guild:mainfrom
Gipzy8:feat/offline-mutation-queue

Conversation

@Gipzy8

@Gipzy8 Gipzy8 commented Jul 29, 2026

Copy link
Copy Markdown

Closes #306
Add durable offline mutation queue with FIFO replay and conflict resolution

Admin write mutations (assignRole/removeRole/updatePolicy) now queue
themselves in an IndexedDB-backed queue instead of failing when offline
or on a network error, replaying strictly FIFO once the app reconnects
(reusing lib/offline/use-sync-status.ts for connectivity detection).
A 409 hit during replay of a queued updatePolicy surfaces through the
existing PolicyConflictDialog with correct attempted-vs-current context,
never silently applied or discarded. SyncStatusBanner now reflects the
pending queue count and replay state.

…lution

Admin write mutations (assignRole/removeRole/updatePolicy) now queue
themselves in an IndexedDB-backed queue instead of failing when offline
or on a network error, replaying strictly FIFO once the app reconnects
(reusing lib/offline/use-sync-status.ts for connectivity detection).
A 409 hit during replay of a queued updatePolicy surfaces through the
existing PolicyConflictDialog with correct attempted-vs-current context,
never silently applied or discarded. SyncStatusBanner now reflects the
pending queue count and replay state.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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.

Implement an offline mutation queue with conflict resolution for admin actions

1 participant