feat(atlas): read and write the Atlas offline

The Atlas reads go network first and fall back to a snapshot kept in a new
Dexie table (v17, append-only). Marks, unmarks and wishlist deletes made
offline wait in their own account-level queue, replayed in order with an
idempotency key, and every read lays them over the kept answer.
This commit is contained in:
Maurice
2026-11-28 22:34:41 +01:00
parent 04d134755a
commit 68af65a2a6
13 changed files with 1539 additions and 121 deletions
-19
View File
@@ -139,7 +139,6 @@
"src/components/Admin/useSchoolHolidayCatalog.ts",
"src/components/Atlas/AtlasCountryPlaces.test.tsx",
"src/components/Atlas/AtlasCountryPlaces.tsx",
"src/components/Atlas/useGlassGlare.ts",
"src/components/BackgroundTasks/BackgroundTasksWidget.extra.test.tsx",
"src/components/BackgroundTasks/BackgroundTasksWidget.test.tsx",
"src/components/BackgroundTasks/BackgroundTasksWidget.tsx",
@@ -266,10 +265,6 @@
"src/components/Dashboard/CollectionsWidget.tsx",
"src/components/Dawarich/DawarichAcceptDialog.test.tsx",
"src/components/Dawarich/DawarichAcceptDialog.tsx",
"src/components/Dawarich/DawarichAtlasDialog.test.tsx",
"src/components/Dawarich/DawarichAtlasDialog.tsx",
"src/components/Dawarich/DawarichAtlasSidePanel.test.tsx",
"src/components/Dawarich/DawarichAtlasSidePanel.tsx",
"src/components/Dawarich/DawarichBadge.test.tsx",
"src/components/Dawarich/DawarichBadge.tsx",
"src/components/Dawarich/DawarichSuggestionsPanel.test.tsx",
@@ -1146,7 +1141,6 @@
"src/constants/tripTabs.ts",
"src/db/cacheAssignment.ts",
"src/db/offlineDb.test.ts",
"src/db/offlineDb.ts",
"src/help/contexts/admin.ts",
"src/help/contexts/atlas.ts",
"src/help/contexts/collections.ts",
@@ -1284,12 +1278,9 @@
"src/mobile/screens/admin/MAdminUsersSection.tsx",
"src/mobile/screens/admin/MApiProviderBlocks.tsx",
"src/mobile/screens/atlas/MAtlas.tsx",
"src/mobile/screens/atlas/MAtlasBucketSheet.tsx",
"src/mobile/screens/atlas/MAtlasCountryPopup.test.tsx",
"src/mobile/screens/atlas/MAtlasCountryPopup.tsx",
"src/mobile/screens/atlas/MAtlasSearch.tsx",
"src/mobile/screens/atlas/MAtlasStatsCard.tsx",
"src/mobile/screens/atlas/atlasController.ts",
"src/mobile/screens/collections/MCollAddSheet.tsx",
"src/mobile/screens/collections/MCollCategoryPicker.tsx",
"src/mobile/screens/collections/MCollEditSheet.tsx",
@@ -1440,9 +1431,7 @@
"src/mobile/useIsPhone.ts",
"src/pages/AdminPage.test.tsx",
"src/pages/AdminPage.tsx",
"src/pages/AtlasPage.test.tsx",
"src/pages/AtlasPage.tsx",
"src/pages/AtlasPage.wiring.test.tsx",
"src/pages/CollectionsPage.test.tsx",
"src/pages/CollectionsPage.tsx",
"src/pages/CollectionsPage.wiring.test.tsx",
@@ -1508,13 +1497,8 @@
"src/pages/admin/adminModel.ts",
"src/pages/admin/useAdmin.ts",
"src/pages/admin/useNotificationDefaults.ts",
"src/pages/atlas/AtlasCountrySearch.tsx",
"src/pages/atlas/AtlasLayerToggle.test.tsx",
"src/pages/atlas/AtlasLayerToggle.tsx",
"src/pages/atlas/atlasModel.test.ts",
"src/pages/atlas/atlasModel.ts",
"src/pages/atlas/useAtlas.test.tsx",
"src/pages/atlas/useAtlas.ts",
"src/pages/collections/collectionsModel.test.ts",
"src/pages/collections/collectionsModel.ts",
"src/pages/collections/useCollections.test.tsx",
@@ -1887,10 +1871,7 @@
"tests/unit/mobile/admin/MAdminSheets.test.tsx",
"tests/unit/mobile/admin/MAdminStoragePanel.test.tsx",
"tests/unit/mobile/admin/MAdminUsersSection.test.tsx",
"tests/unit/mobile/atlas/MAtlas.test.tsx",
"tests/unit/mobile/atlas/MAtlasBucketSheet.test.tsx",
"tests/unit/mobile/atlas/MAtlasCountryPopup.test.tsx",
"tests/unit/mobile/atlas/MAtlasSearch.test.tsx",
"tests/unit/mobile/atlas/MAtlasStatsCard.test.tsx",
"tests/unit/mobile/collections/MCollAddSheet.test.tsx",
"tests/unit/mobile/collections/MCollCategoryPicker.test.tsx",