Repository navigation
feat(realtime): delta patches, parity tests, revalidation, grouped notifications - #412
Open
lachlan63-cyber wants to merge 1 commit into
Conversation
…tion, grouped notifications Closes Refract-Protocol#291 Closes Refract-Protocol#293 Closes Refract-Protocol#301 Closes Refract-Protocol#305
|
@lachlan63-cyber Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
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.
Summary
lib/realtime/patch.ts: pureapplyPatch/applyFramewith revision checks, resync on gap/no base, stale/duplicate discard; wired (opt-in per frame) intoRealtimeClient.__tests__/parity.test.ts: one scenario suite run against websocket/SSE/long-poll mock modes, explicit long-poll divergence test, zero-scenario guard.lib/realtime/revalidation.ts+useRealtimeRevalidation: central topic→tag map, coalescing scheduler (1 refresh/window), flag/blocked guards,router.refresh().notificationstopic merged/deduped with REST-derived items, cross-tab read-state sync, polite live region.Closes #291
Closes #293
Closes #301
Closes #305
Validation
viteston new tests: pass (patch, parity, revalidation, groups).tsc: no errors in changed files. Pre-existing unrelated failures:src/app/cover/page.tsxsyntax errors, emptyNavbar.tsx,@/lib/store/preferencesStoreunresolved (breaksnotifications.test.ts),next lintconfig crash.