Commit Graph

3 Commits

Author SHA1 Message Date
Chris Sherwood 20d747b3fb
fix(ZIM): preserve co-existing Wikipedia corpora on cleanup (#884)
onWikipediaDownloadComplete was deleting every file whose name starts
with `wikipedia_en_`, treating distinct corpora (simple, medicine,
wikivoyage, climate_change, etc.) as competing versions of the same
selection slot. Whichever wiki finished second silently wiped the
other from disk.

Match by filename stem instead — strip the trailing `_YYYY-MM(-DD).zim`
date suffix and only delete files with the same stem as the new
download. Different release dates of the same variant still get cleaned
up; distinct variants are preserved.

Extracted the predicate to `app/utils/zim_filename.ts` so the boundary
is covered by unit tests (8 cases incl. the #884 repro scenario).
2026-05-20 17:14:38 +00:00
Ryanba 29f74e9525
fix(UI): improve global map banner display logic (#702) 2026-05-20 17:12:40 +00:00
Jake Turner b33a1b3e37 feat: initial commit 2025-06-29 15:51:08 -07:00