mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-07-27 09:44:39 +00:00
The PfapiStoreDelegateService was reading archive data from NgRx store, but archives are stored in ModelCtrl (pf database), not NgRx. The NgRx archive state is only populated on loadAllData (import) and is never updated when ArchiveService writes to ModelCtrl during finish day. This caused exports to contain empty/stale archiveYoung data after archiving tasks via "Finish Day", resulting in lost subtasks. The fix reads archiveYoung and archiveOld from ModelCtrl (via pfapiService.m.archiveYoung.load()) instead of NgRx selectors, since that's where the actual archive data lives. Includes E2E test to verify subtasks are preserved in archive after legacy data import and finish day flow. |
||
|---|---|---|
| .. | ||
| archive-subtasks.spec.ts | ||