Skip to content

feat: add Missing items entry to navigation drawer - #3

Merged
spdotdev merged 1 commit into
mainfrom
feat/drawer-missing-items
Jun 29, 2026
Merged

spdotdev merged 1 commit into
mainfrom
feat/drawer-missing-items

Conversation

@spdotdev

Copy link
Copy Markdown
Owner

Summary

  • DrawerViewModel.refresh() now counts mandatory products with quantity == 0 across all households/shelves in the existing loop
  • New Missing items drawer entry shows the count inline and renders in red when non-zero, neutral when all clear
  • Tapping navigates to Dashboard which already shows the warning card

Test plan

  • No mandatory products at zero → "Missing items" appears in neutral color with no count
  • One or more mandatory products at zero → "Missing items · N" appears in red
  • Tapping navigates to Dashboard
  • Count updates after pull-to-refresh on any screen that triggers a drawer refresh

DrawerViewModel now computes the count of mandatory products at zero
quantity across all households in the same refresh loop (no extra API
calls). The drawer item shows the count inline ("Missing items · 3")
and renders in error color when non-zero; navigates to Dashboard which
already surfaces the warning card.
@spdotdev
spdotdev merged commit f2e1e37 into main Jun 29, 2026
1 of 3 checks passed
@spdotdev
spdotdev deleted the feat/drawer-missing-items branch June 29, 2026 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant