mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-07-18 17:05:48 +00:00
Fixes #6021 When users manually added subtasks to markdown files that referenced non-existent parent tasks, the plugin would crash due to unsafe null assertions and missing validation. This made the plugin permanently disabled and required creating a new markdown file to recover. Changes: - Added parent ID validation before creating operations - Orphaned subtasks are now converted to root tasks with warnings - Added comprehensive error handling with user notifications - Plugin stays enabled even after sync errors - Added 15 new tests (689 lines) for orphaned subtask scenarios - Fixed all existing tests to support new error notifications The fix implements defense-in-depth: 1. Validation layer: Check parent IDs exist before operations 2. Error handling: Catch and report errors without crashing 3. User feedback: Clear notifications about issues 4. Data preservation: No data loss, orphans become root tasks |
||
|---|---|---|
| .. | ||
| assets | ||
| background | ||
| shared | ||
| ui | ||
| index.ts | ||
| manifest.json | ||
| setupTests.ts | ||
| types.d.ts | ||