v1.3.6: auto-dismiss stale Fuliza insight + refresh after reparse

The Fuliza outstanding insight is stateful — it should disappear the
moment the underlying outstanding hits 0. Today it sticks until
manually dismissed, even after data updates.

InsightEngine now tracks a STATEFUL_KEYS set (just "fuliza:outstanding"
for now). If a rule that owns one of those keys returns no candidates
in this run, the row is deleted outright rather than being left around
as a tombstone.

SettingsViewModel.reparseAll() now also calls insightsRepository
.generateAll() once the row update completes. So the moment the user
finishes "Re-parse ALL transactions", any stale Fuliza alert reading
the limit-as-outstanding goes away, and any newly correct alerts show
up immediately.
This commit is contained in:
ngenohkevin
2026-05-16 22:30:17 +03:00
parent f83f644cd3
commit f40a93e62a
4 changed files with 34 additions and 3 deletions
+2 -2
View File
@@ -27,8 +27,8 @@ android {
applicationId = "com.ledga.app"
minSdk = 26
targetSdk = 34
versionCode = 8
versionName = "1.3.5"
versionCode = 9
versionName = "1.3.6"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}