Einkaufsliste - Online-Warenkorb-Funktion pro Liste ein-/ausschaltbar #226
Labels
No labels
priority/could
priority/must
priority/should
priority/wont
status/blocked
status/claimed
status/done-migrated
type/bug
type/feature
type/infra
type/tech-debt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
robert/todo#226
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Story: Online-Warenkorb auf der Einkaufsliste abschaltbar machen
As a Nutzer, der nicht online einkauft,
I want to die Online-Warenkorb-Funktion auf meiner Einkaufsliste ausschalten koennen,
so that die Kaestchen und Schaltflaechen dafuer mich nicht stoeren und keinen Platz belegen.
Kontext (verifiziert im Code):
ShoppingProductItem.tsx), dazu oben ein Sammel-Loeschen fuer alle Produkte im Warenkorb (ShoppingListPage.tsx) und den Warenkorb-Abgleich (#90).Acceptance criteria:
Offen / Annahme:
Verwandt: #216, #90
Claimed by session "Go [da5cae]"
Starting work: per-list setting (shared by all members, like colour/icon) to switch the online-cart feature on/off. Default on for new and existing lists; cart marks are kept while off.
Done (commits
65d66612backend,8d922695frontend).Scope: New list-wide setting IsOnlineCartEnabled on shopping lists (default on; migration default backfills every existing list). Switched via the list page's "..." menu entry "Online-Warenkorb verwenden - An/Aus". Off hides the per-item cart toggle (space goes to the product name), the header bulk-remove button and the cart check panel entry. IsInCart marks are never touched, so switching back on restores them.
Decisions: List setting shared by all members (as proposed in the issue); any member may switch it (it only hides UI, no data is lost). Broadcast over the existing shopping-list WS channel so other members' open pages follow live. Duplicating a list keeps the setting. All ShoppingListBroadcastDto construction sites carry the real value.
Tests: 5 new handler tests (incl. pre-existing-list backfill test per the existing-lists rule, explicit-false persistence, marks kept), 1 duplicate test; 3 page tests + 1 item test in the frontend. Backend 1119/1119, frontend 1565/1565 green, build clean. Security review: no findings.