Siphonight f5fa4c976d data: transactional import/export + version guard + batch inserts (lot P1)
- importJson: whole wipe+restore inside db.withTransaction (a crash mid-import
  could leave the DB half-restored); inserts via insertAll (~x100 cheaper)
- exportJson: consistent snapshot inside one transaction
- parseBackup (pure): reject future/invalid backups BEFORE any erase with a
  dedicated UI message; normalize #72 lists + tConfig via copy()
- auto-backup: delete partial document on write failure; log SAF failures
- convertTToNgMl: structured parser — ug/dL x10 (was /100), mg/L x1000 (was
  /1000); unknown units rejected (null -> lab skipped)
- tests: BackupImportGuardTest (5), extended source guards, updated T-unit
  assertions (new contract: reject unknown units)
2026-11-18 21:26:07 +01:00
..