Commit Graph
17 Commits
Author SHA1 Message Date
catarrh 1201e16d5e fix(cache): complete preload coverage + surface silent write failures
Root cause of 'pre-cache done but offline data missing':
1. Preload manifest never listed the services/{prayers,texts,headers,var}
   subtrees the Service view dereferences (CommonPrayers->prayers, etc.),
   plus only 13 hardcoded commands. Generator now enumerates all of them
   (en 1500->1740, ru->1333, cu 1500->2108 files).
2. DataCache.set silently resolved on IDB write failure (quota exceeded),
   so preload counted un-stored files as success and reported 100% done.
   set() now returns boolean; preload treats failed writes as failures
   that feed the existing circuit breaker (visible abort + diag entry).
3. No persistence request: added best-effort navigator.storage.persist()
   before preload, diag-logged.
4. Dropped dead manifest weight (menaion-common/add, horologionadd) -
   never referenced by any view.
2026-09-08 08:04:13 +03:00
catarrh a005e386a6 feat: serve all precached data offline via DataCache fallback
- DataCache.fetchWithFallback: network-first with IDB write-through under
  the same url: keys the preload writes; falls back to precached IDB copy
  when offline — closes the preload(IDB) vs read(SW cache) gap that made
  the Bible reader (and every other view) fail offline despite precaching
- Convert all 33 raw /data fetches across bible/service/menaion/prayer/
  calendar/settings views; in-memory caches and notFound maps preserved
- fetchCommandText: switch to lowercase services/commands/ (already in
  preload manifest); tolerate both TEXT/text node casings per migrate-data
- Remove stale duplicate static/data/en/services/Command/ (15 files)
- fetchLives: fix misc fallback to real lives/misc/{N}.json bundles
2026-08-24 09:50:07 +03:00
catarrh 47017e7f4f fix: fill empty Bible book files (Brenton Mal + NKJV Jude/Philip) 2026-08-04 04:02:43 +03:00
catarrh 094b883759 fix: remove 14 phantom Bible book entries from versions.json, regen manifest 2026-08-04 03:16:39 +03:00
catarrh d1d43a5b57 feat: preload manifest for accurate offline caching 2026-08-04 02:48:11 +03:00
catarrh 857adce5da resolve all Composite_* paremia placeholders to real Bible refs 2026-08-02 22:24:59 +03:00
catarrh cb812fe4fe add English Exapostilarion1-11 and Compline files from external sources 2026-08-02 16:57:03 +03:00
catarrh 42ed5e7143 add English Theotokia VESPERST1-8 from Theotokia.pdf 2026-08-02 16:21:21 +03:00
catarrh 2e5515499c add English service texts: 25 Divine Liturgy prayer files from EPUBs 2026-08-02 15:49:51 +03:00
catarrh ebfd799723 fix: replace ™ with т҃ in LittleLitany 2026-08-02 00:28:17 +03:00
catarrh 8b27bd4767 PWA optimization: vite-plugin-pwa, split misc.json, IndexedDB cache layer 2026-08-01 21:39:10 +03:00
catarrh e32d7878a9 enrich 13 more ru lives from Bulgakov's Desktop Book 2026-08-01 15:15:46 +03:00
catarrh bc1cf5a939 fix bundle: move Иаков Боровицкий (868) from 05-22 to 10-23 2026-08-01 13:16:51 +03:00
catarrh ec3f593e5c enrich 3 more ru lives: Сретение, Захарий Печерский, Анна пророчица 2026-08-01 13:07:27 +03:00
catarrh 08950cd345 resolve 64 unmatched minei entries, enrich 57 more ru lives 2026-08-01 12:55:51 +03:00
catarrh 381a4943c5 resolve review-band matches and enrich 121 more ru lives 2026-08-01 12:50:00 +03:00
catarrh 7dde2168d1 enrich ru lives with Chetyi-Minei texts and track static data 2026-08-01 12:30:55 +03:00