super-productivity/e2e/tests/import-export
Johannes Millan 6c3f183fb7 fix(backup): persist archive data to IndexedDB on local import
When importing a backup file locally, archive data (archiveYoung and
archiveOld) was not being persisted to IndexedDB. This caused archived
tasks to be lost after page reload.

Root cause: ArchiveOperationHandler._handleLoadAllData() returns early
for local imports (isRemote=false), expecting the archive to be written
by the backup import flow - but this code never existed.

Fix: Add _writeArchivesToIndexedDB() to BackupService.importCompleteBackup()
that explicitly writes archive data to IndexedDB after dispatching the
loadAllData action.

- Add ArchiveDbAdapter injection to BackupService
- Add _writeArchivesToIndexedDB() private method
- Update misleading comment in ArchiveOperationHandler
- Add unit tests for archive persistence (7 tests)
- Add E2E tests for archive import persistence (3 tests)
- Add test fixture with archive data
2026-01-08 16:12:13 +01:00
..
archive-import-persistence.spec.ts fix(backup): persist archive data to IndexedDB on local import 2026-01-08 16:12:13 +01:00
archive-subtasks.spec.ts fix(e2e): fix archive-subtasks tests for TODAY tag virtual membership 2025-12-29 13:20:44 +01:00