Task grouping: keep rows and day window together, safer list cleanup (#71)

This commit is contained in:
makiolaj committed 2026-11-17 11:21:44 +01:00
1 parent 761f3f5b3d
commit 367e04fa72
4 files changed
+55 -76

No files matched your search

@@ -38,17 +38,6 @@ class TaskGroupingPrefsTest {
assertThat(unscopeListKey("priority:HIGH", "OWN")).isEqualTo("priority:HIGH")
}
@Test
fun `entries for lists that are gone are dropped, other stores' lists kept`() {
val kept = keepLiveLists(
setOf("DAY|list:OWN:5", "LIST|list:OWN:6", "PRIORITY|list:PROVIDER:6", "DAY|smart:ALL"),
mode = "OWN",
listIds = setOf(5L),
) { it.substringAfter('|') }
assertThat(kept).containsExactly("DAY|list:OWN:5", "PRIORITY|list:PROVIDER:6", "DAY|smart:ALL")
assertThat(keepLiveLists(setOf("COMPLETED", "list:OWN:9"), "OWN", setOf(5L))).containsExactly("COMPLETED")
}
@Test
fun `collapsed day groups that have passed are dropped`() {
val today = LocalDate.of(2026, 11, 17)