Skip to content

Dexie Resilience - #1556

Closed
Nick (ingalls) wants to merge 1 commit into
mainfrom
dexie-resilience
Closed

Dexie Resilience#1556
Nick (ingalls) wants to merge 1 commit into
mainfrom
dexie-resilience

Conversation

@ingalls

Copy link
Copy Markdown
Member

No description provided.

…sume

Migrated the DexieDB recovery features from #1544 (codecov branch),
leaving the warm-load/caching optimizations behind:

- database.ts: connection generation counter + forceReopenDatabase();
  withDbRetry() now force-closes and reopens a connection WebKit
  invalidated during an iOS suspend (Dexie still reports it open, so
  ensureDatabase() alone is a no-op) and treats WebKit's
  'in-progress transaction' UnknownError as transient
- workers/atlas.ts: resume() probe so the worker's own connection is
  force-reopened on foreground; token write wrapped in withDbRetry
- stores/map.ts: resumeFromBackground() driven by the native-reliable
  Capacitor appStateChange signal (replaces the visibilitychange
  listener, which is unreliable on iOS); onMapReady() retries
  initOverlays() with capped backoff so a single failure no longer
  strands the user on the loading screen with the Hard Reset button
- overlay-class.ts: duplicate-layer guard so retried initOverlays()
  attempts don't throw on layers a partial attempt already registered
- Map.vue: window error handler ignores transient IndexedDB errors
  (recovered by withDbRetry) instead of raising the error modal;
  listeners removed on unmount
@codecov

codecov Bot commented Jul 8, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 2.77778% with 70 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
api/web/src/stores/map.ts 0.00% 38 Missing ⚠️
api/web/src/database.ts 10.52% 17 Missing ⚠️
api/web/src/components/CloudTAK/Map.vue 0.00% 11 Missing ⚠️
api/web/src/workers/atlas.ts 0.00% 3 Missing ⚠️
api/web/src/base/overlay-class.ts 0.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@ingalls
Nick (ingalls) deleted the dexie-resilience branch July 24, 2026 23:27
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