feat(offline): advertise dict versions + background dictionary preload #196
Reference in New Issue
Block a user
Delete Branch "feature/offline-dict-preload"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part of the PWA offline mode feature (Phase C). Two commits, into
development.What
dict_versions— the current dictionary version per game variant, piggybacked on the existing cold-start profile request (no new round-trip, per the agreed design). Additive, backward-compatible FBS field (DictVersiontable + trailingProfile.dict_versions). Wired backend → gateway → client (decoded into a per-variant map onmodel.Profile) + mock.Notes / decisions
bundle-size.mjs, matching the existing per-feature bump history: 110 → 112 → 113). Now 112.0/113. Flagging for review — the alternative was runtime-wasteful lazy-loading gymnastics to reclaim ~19 bytes.Tests
-tags=integrationsuite — reproduced and fixed a nil-registry 500 on the profile endpoint for registry-less test servers).check(0 errors); unit (preloadDicts×5,offlinePreloadEligible, codec round-trip — bite-tested by neutering the decode); e2e (196, Chromium + WebKit);build+ bundle gate (112.0 / 113).