Skip to content

feat(sync): wire live replication observability - #181

Merged
LiranCohen merged 1 commit into
mainfrom
feat/live-sync-observability
Jul 20, 2026
Merged

feat(sync): wire live replication observability#181
LiranCohen merged 1 commit into
mainfrom
feat/live-sync-observability

Conversation

@LiranCohen

Copy link
Copy Markdown
Contributor

Summary

  • route freshly applied live deliveries into the exact wallet query caches, while retaining local/cross-tab subscriptions and coalescing duplicate signals
  • replace the 10-second remote-status polling loop with sync-event refreshes plus a five-minute local-store safety refresh
  • show per-remote live link scopes and caught-up, repairing, and paused states from getReplicationLinks()
  • refresh both remote health and live-link state after a targeted retry

Test plan

  • bun run test:coverage
  • focused live-sync and cache-routing tests after the final assertions
  • bun run build
  • bunx tsc --noEmit
  • bun run lint (0 errors; 144 pre-existing warnings)
  • Playwright Chromium and mobile-Chrome E2E on an isolated local port (28/28)

Rollout notes

The event-driven refreshes read the SDK local status stores; they do not add a remote HTTP polling loop. The existing five-minute SDK settle check remains the degraded-network safety net.

@github-actions

Copy link
Copy Markdown

Coverage Report

Status Category Percentage Covered / Total
🟢 Lines 69.12% (🎯 25%) 3504 / 5069
🟢 Statements 67.1% (🎯 25%) 3702 / 5517
🟢 Functions 65.53% (🎯 30%) 1065 / 1625
🟢 Branches 63.09% (🎯 29%) 2318 / 3674
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
src/enbox/hooks/use-live-sync-status.ts 100% 100% 100% 100%
src/enbox/hooks/use-sync-query-invalidation.ts 82.08% 56.25% 84.61% 81.67% 54-55, 63-71, 137, 143, 215-216, 220-223, 236-245, 276-280, 302-303, 314, 318
src/enbox/queries/query-keys.ts 100% 100% 100% 100%
src/features/identities/tabs/RemoteSyncStatusPanel.tsx 82.69% 70.58% 100% 83.67% 51, 58-63, 72-73, 76, 115
Generated in workflow #425 for commit 399c2b4 by the Vitest Coverage Report Action

@LiranCohen
LiranCohen merged commit c4e1a95 into main Jul 20, 2026
4 checks passed
@LiranCohen
LiranCohen deleted the feat/live-sync-observability branch July 20, 2026 04:36
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.

1 participant