Files
Kisani/Features
Robin Kutesa b3961257f6 fix(backup): live Pending/Safe counters now count down during active backup
Previous logic capped alreadySafe at phoneTotal immediately when the last
reconcile showed everything safe, freezing both counters at 0 pending /
max safe even while uploads were running.

Now during an active session both counters are driven by engine.job:
  Pending = totalFiles - (uploaded + skipped + failed)  → counts down
  Safe    = phoneTotal - Pending                        → counts up
Ensures Safe + Pending == phoneTotal at all times and the numbers visibly
move as uploads complete, regardless of the snapshot state.

Co-Authored-By: Kutesir <kutesir@provoc.ug>
Co-Authored-By: Sentry <sentry@provoc.ug>
2026-05-30 22:49:35 +03:00
..