1.16 part 1/11: Library, catalog, downloads and add-ons; a lighter Docker image

Closed
EP
12d ago
+20499-1105

Part 1 of 11 of Zimi 1.16: library, catalog, downloads and add-ons; a lighter Docker image.

The release is split into 11 parts so each one can be reviewed whole. Each part's base is the part before it, so this diff is only its own files; a part on its own is not a running state. CI runs once, on the release PR that carries every part into main.

Every part was reviewed before it was opened, and the full suite (quick tier, node tests, every browser test under software GL) ran on the combined tree.


Summary by cubic

Part 1 of 11 of the Zimi 1.16 release: library, catalog, downloads and add-ons, and a lighter Docker image. This part alone is not a running state; each part merges on the one before it, and CI runs once on the release PR that carries every part into main.

Behavior changes

  • Kiwix's community catalog joins the main catalog as its own category; Zimi's own ZIMs now appear under Community, and opening the catalog never fetches, only the update check does.
  • The ZIM checksum check streams the file instead of holding the GIL through libzim, and add-ons are fetched once into the data folder and switched on without a restart, so the Docker image no longer carries them.
  • A place opens on the smallest installed map region that holds it, with the planet map as the fallback; downloads follow the .meta4 mirror order, give failed mirrors a second round, and resume with the same mirror after a pause.
  • Card games end with a detailed score summary in every language, and the auto-update opt-out moved from the card menu to the Manage > Installed row; file sizes below a gigabyte read as whole MB, and an installed app's tile carries a recency dot.
  • Planet positions come from VSOP87D (Mars is ~50,000 km closer at its 2021 arrival than the old approximate elements), an open app re-draws in the language picked in Settings, a long toast stays up until its words are read, and Older copies' Delete removes exactly the listed file.
  • Restore asks merge or replace when a file comes in, and its preview shows what Replace would drop.
  • Upgrading Zimi alone no longer rebuilds a search index, suggestions keep a correctly spelled word, and a manually run health check makes a deep pass.
  • warc2zim runs on machines without libcairo (SVG conversion is imported lazily), and an EPUB with an oversized directory is refused before it is read.

Tests

  • New infrastructure caps concurrent Chromiums per machine so 3D tests stop timing out, finds Chromium off any asyncio loop, probes hit areas against a 44 × 44 px touch target, and flags any shipped JS or Python that references an undefined name.
  • New suites cover add-ons, the community and satellites catalog, checksum streaming, map choice, mirror fallback, capability levels, offline readiness, static asset hashes, per-tier performance budgets, terrain heights from elevation rasters, mission events against their source documents, and planets against JPL Horizons.