Commit Graph
27 Commits
Author SHA1 Message Date
catarrh 4f11e8ca6c feat: bump UI chrome font scale (xs->sm, sm->base)
- text-sm -> text-base (14px -> 16px), then text-xs -> text-sm (12px -> 14px)
  across 75 usages in 8 UI files; nav dropdown links 0.875rem -> 1rem
- Liturgical content untouched (var-based size); verse-number superscripts
  and text-[10px] micro-labels intentionally kept
2026-08-25 00:04:41 +03:00
catarrh 4f6461efad feat: default liturgical text size 16px -> 18px (new installs only) 2026-08-24 23:48:19 +03:00
catarrh f49735b360 feat: explicit PWA update prompt with build stamp
- registerType 'prompt' + skipWaiting/clientsClaim false: new SW waits
  instead of silently hijacking running sessions
- main.ts registers via virtual:pwa-register; onNeedRefresh shows
  dismissible toast (i18n en/ru/cu) with Update button -> updateSW(true)
- No polling — update check only on navigation, zero extra traffic
- Settings About shows __BUILD_DATE__ build stamp for remote debugging
2026-08-24 11:39:47 +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 623c56a96f fix: robust first-launch auto-preload (mobile bible/download)
- OfflineManager.preload accepts bibleTranslations: 'all' and resolves
  translation ids internally from versions.json (single source), removing
  the fragile settings-side fetch that could throw and abort the whole
  download on mobile first launch
- Decouple trigger from '#settings/autopreload' route param via one-shot
  requestAutoPreload()/consumeAutoPreload() flag
- Auto-expand + tick Bible variant checkboxes for UI consistency
- Offer modal sets the flag and navigates to plain '#settings'
2026-08-23 22:05:58 +03:00
catarrh 142b95d226 refactor: address code-review findings for install detection and diag log
- pwa-install.ts: permanent 'ponomar-ever-installed' marker keeps install
  button hidden on Firefox/Safari after appinstalled clears the offer flag;
  isPwaInstalled moved to core for reuse
- diag-log: self-heal corrupted storage, show MM-DD in tail
- settings: refresh diag panel after clear-cache; uniform completion style
- data-cache.has: plain count(key); document HTML-as-failure intent
2026-08-23 10:23:36 +03:00
catarrh 193038a671 fix: hide install button when PWA already installed
- Button hidden by default; async isPwaInstalled() check (standalone mode,
  ponomar-installed flag, getInstalledRelatedApps) unhides only if installable
- Click hint 'already installed' branch uses same multi-signal detection
- manifest id '/' for getInstalledRelatedApps matching on desktop Chrome
2026-08-22 23:14:25 +03:00
catarrh 8c4f60d635 feat: precache resilience — circuit breaker, forensic diag log, safe version check
- Circuit breaker: abort preload after 5 consecutive network failures
  (success or 404 resets streak) instead of grinding doomed retries
- localStorage diag ring buffer (survives cache wipes): preload-start/
  done/abort, manifest-unavailable, version events; shown in Settings
- checkDataVersion: no longer wipes IDB on transient read errors
  (DataCache.has tri-state probe); logs old value on real migrations
- loadManifest: null result no longer cached forever (per-session fallback lock-in)
2026-08-22 22:39:37 +03:00
catarrh ee5fb17c6b feat: install hints for non-Chromium browsers; preload 404 hardening
- Install button without beforeinstallprompt now shows inline per-platform
  instructions (Firefox/iOS/generic) instead of silent no-op
- Preload: 404s no longer counted as failures nor retried
- PreloadProgress.failedFiles (up to 10) surfaced in completion message
2026-08-22 21:51:38 +03:00
catarrh c8e11f0af7 feat: Gregorian default calendar, Hymnal label, day header cleanup
- Default calendar type julian -> gregorian (new installs only)
- EN nav 'Sbornik' -> 'Hymnal', section title -> 'Liturgical Hymnal'
- Day header: text-sm on date lines, weekday dropped from Julian line,
  order: Julian / day-title / Gregorian
2026-08-21 23:58:35 +03:00
catarrh ea09993df9 fix: IDB resilience, direct autopreload, nav delegation, Bible bounds 2026-08-21 23:05:23 +03:00
catarrh cb63254b2f fix: save and restore last used Bible version across sessions 2026-08-04 04:23:10 +03:00
catarrh 73fac73248 feat: sort Bible translations by interface language (en/ru/cu priority) 2026-08-04 04:13:08 +03:00
catarrh b78e6ac09e fix: actually use preload manifest, remove dead calendarDataFiles (was never wired) 2026-08-04 03:42:10 +03:00
catarrh fdbfcd4911 feat: unified offline preload — Calendar & Services + Bible, 3 checkboxes → 1 2026-08-04 02:16:15 +03:00
catarrh e4ddee924b offline: Infinity TTL, skip cached files, data version, first-launch preload offer, cache stats 2026-08-04 01:18:29 +03:00
catarrh f45791579b feat: color themes, dark mode, HC/sepia themes, moon tooltip, docs update 2026-08-02 23:45:56 +03:00
catarrh 0769271f98 UX: comm chevron, lang fix, PWA cache control, Bible expand, app title 2026-08-02 21:47:31 +03:00
catarrh c2d5bd3093 feat: Bible translation preloading with translation picker 2026-08-02 14:42:34 +03:00
catarrh accd5cf48c reduce spacing across all views; i18n for cache info text 2026-08-02 02:47:31 +03:00
catarrh 672af4b5fb feat: moon phase + sunrise/sunset with location settings 2026-08-02 02:28:43 +03:00
catarrh 8ef5f63300 i18n for offline settings (en/ru/cu) 2026-08-01 22:08:39 +03:00
catarrh 465e2664cc offline manager + settings UI for preloading data 2026-08-01 21:43:18 +03:00
catarrh eea87ba08f Titles style change in CU texts all titles are red 2026-08-01 03:40:35 +03:00
catarrh 07ff6b5890 abandoned conversion from original Java Ponomar app, migrated to own text storage format 2026-07-26 00:20:14 +03:00
catarrh ad6ec8f1ce once interface language is selected or detected, automatically select default Bible variant based on language choice 2026-07-23 02:58:57 +03:00
catarrh 58b379d6e3 initial commit 2026-07-23 02:41:15 +03:00