Vorratsschrank — Direkter Kamera-Scan-Button in der Kopfzeile #173
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#173
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: Vorratsschrank — Direkter Kamera-Scan-Button in der Kopfzeile
As a Nutzer der Speisekammer-Übersicht,
I want to die Handy-Kamera zum Barcode-Scannen mit einem Klick direkt aus der Kopfzeile öffnen können,
so that ich nicht erst durch das "..."-Menü navigieren muss.
Kontext (verifiziert im Code):
shopping.page.scanBarcode) im "..."-Menü der Vorratsschrank-Seite (PantryPage.tsx, setztshowBarcodeScan) erreichbar, derPantryBarcodeScanneröffnet.Acceptance criteria:
PantryBarcodeScanner-Dialog wie der bestehende Menüpunkt.aria-label(DE/EN).Out of scope for this story:
/pantry/:id/scan) — siehe die separate, größere Story "Vorratsschrank — Scan-Station zur Vollbild-Aktivitäts-Ansicht mit Korrektur-Aktionen ausbauen".Claiming this for the current go-loop cycle. Plan: add an icon button (camera) to the Pantry page header that opens the existing PantryBarcodeScanner dialog, mirroring the shopping-list pattern from #161. No backend changes expected. Keeping the existing ...-menu entry as-is.
Done. Added a Camera icon button to the Pantry page header (next to the Categories button) that opens the existing PantryBarcodeScanner dialog directly - same dialog the "Barcode scannen" options-menu item already opens, which stays in place. Mirrors the shopping-list header pattern from #161 exactly. Reused the existing translated
shopping.page.scanBarcodei18n key (DE/EN) for both aria-label and title, so AC3 is covered without adding a new key. No backend changes needed.Tests: added a new PantryPage test covering the header button opening the scanner (mirrors the equivalent ShoppingListPage test from #161); full frontend suite (1210 tests) and full backend suite (1002 tests) both green locally.
npm run buildanddotnet build -c Releaseboth clean. CI run is queued (FIFO backlog on the shared runner) but not required to confirm correctness given the local pass.Commit:
99a8e58b.