Bug - Neue Liste ohne Gruppenauswahl landet trotzdem in der letzten Gruppe #203

Closed
opened 2026-09-27 16:46:23 +02:00 by lena · 2 comments
Collaborator

Regression aus #201. Beim Anlegen einer neuen Liste ohne Gruppenauswahl (Feld bleibt auf "Keine Gruppe") wird die Liste server-seitig ans Ende der gesamten Reihenfolge angehaengt. Existiert bereits eine Gruppe, deren Ueberschrift die letzte im gesamten Order ist, landet die neue Liste dadurch trotzdem innerhalb dieser Gruppe (kein nachfolgender Header begrenzt ihre Mitgliedschaft) - obwohl der Nutzer keine Gruppe ausgewaehlt hat.

Gleiche Ursache wie der bereits in #201 gefundene und behobene Bug beim manuellen "Keine Gruppe" im Options-Menue.

Fix: jeder Erstellungsdialog ruft moveListToGroup jetzt auch bei leerer Gruppenauswahl auf (mit null statt uebersprungen), sobald mindestens eine Gruppe existiert - platziert die neue Liste explizit vor der ersten Ueberschrift statt sich auf die Server-Standardposition zu verlassen.

Regression aus #201. Beim Anlegen einer neuen Liste ohne Gruppenauswahl (Feld bleibt auf "Keine Gruppe") wird die Liste server-seitig ans Ende der gesamten Reihenfolge angehaengt. Existiert bereits eine Gruppe, deren Ueberschrift die letzte im gesamten Order ist, landet die neue Liste dadurch trotzdem innerhalb dieser Gruppe (kein nachfolgender Header begrenzt ihre Mitgliedschaft) - obwohl der Nutzer keine Gruppe ausgewaehlt hat. Gleiche Ursache wie der bereits in #201 gefundene und behobene Bug beim manuellen "Keine Gruppe" im Options-Menue. Fix: jeder Erstellungsdialog ruft moveListToGroup jetzt auch bei leerer Gruppenauswahl auf (mit null statt uebersprungen), sobald mindestens eine Gruppe existiert - platziert die neue Liste explizit vor der ersten Ueberschrift statt sich auf die Server-Standardposition zu verlassen.
lena self-assigned this 2026-09-27 16:46:37 +02:00
Author
Collaborator

Claiming - fix already implemented (found live while verifying #201), will commit and close shortly.

Claiming - fix already implemented (found live while verifying #201), will commit and close shortly.
Author
Collaborator

Implemented and shipped in 479c02cf.

Fix: every list-creation dialog (Standard/Project/Priority/Shopping/Pantry/MasterPacking) now calls moveListToGroup unconditionally whenever the user has at least one group, passing null when none was picked - not just when a group was explicitly selected. This protects against the same positional-membership trap #201 already found for the manual "Add to group" -> "No group" action: the server's default placement (end of the whole order) can land a new list inside a trailing group's span if that group happens to be the last one in the order.

Tests: a new regression test added per dialog confirming a plain creation with groups existing (but none selected) still repositions the list to "no group", plus the existing "skips the reorder entirely when there are no groups at all" optimization stays covered.

Live-verified alongside #204's testing. Closing as done.

Implemented and shipped in 479c02cf. Fix: every list-creation dialog (Standard/Project/Priority/Shopping/Pantry/MasterPacking) now calls moveListToGroup unconditionally whenever the user has at least one group, passing null when none was picked - not just when a group was explicitly selected. This protects against the same positional-membership trap #201 already found for the manual "Add to group" -> "No group" action: the server's default placement (end of the whole order) can land a new list inside a trailing group's span if that group happens to be the last one in the order. Tests: a new regression test added per dialog confirming a plain creation with groups existing (but none selected) still repositions the list to "no group", plus the existing "skips the reorder entirely when there are no groups at all" optimization stays covered. Live-verified alongside #204's testing. Closing as done.
lena closed this issue 2026-09-27 21:01:00 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
robert/todo#203
No description provided.