Optimize deployment, fix E2E flakiness, and implement database-backed threading

- Optimize task deploy-android with marker files and source/generate tracking.
- Fix flaky Android E2E test with pumpAndSettle and safety delays.
- Implement global CrashScreen and error handlers in main.dart.
- Refactor threading to use a persistent Threads table for performance.
- Add database indexes and migration for schema v18.
- Enhance coverage gate with ghost path checks and increased coverage (82%).
This commit is contained in:
Thomas Güttler
2026-05-07 22:07:54 +02:00
parent 3c90818845
commit 656d4b46d7
9 changed files with 550 additions and 59 deletions
+9
View File
@@ -0,0 +1,9 @@
# Plan Log
- Optimized `task deploy-android` using marker files and Taskfile `sources`/`generates`.
- Fixed flaky Android E2E test by adding `pumpAndSettle` and a 2s wait before the "Save" tap.
- Implemented `CrashScreen` widget and global error handlers in `main.dart`.
- Refactored threading to be database-backed using a new `Threads` table.
- Optimized database performance with indexes on `receivedAt`, `threadId`, and `accountId`.
- Cleaned up `scripts/check_coverage.dart`: added ghost path check and reduced `_excluded` list.
- Verified all changes with `task check`. Total unit coverage: 82%.