feat: add Consume and Restock quick actions (#64 #65) #72

Merged
makiolaj merged 1 commits from feature/issue-64-65-quick-actions into develop 2026-02-25 01:26:27 +00:00
Owner

Features:

  • Add prominent "Consume" button to reduce quantity by 1
  • Add "Restock" button that opens modal for custom amounts
  • Restock modal shows current quantity and calculated new total
  • Buttons use intuitive colors (orange for consume, green for restock)
  • Toast notifications on success (handled by existing update-quantity logic)
  • Optimistic UI updates via existing mechanisms

Acceptance Criteria:

#64 (Consume):
Consume button visible on each card
Reduces quantity correctly (by 1)
Handles edge cases (disabled when quantity low)
Works with all unit types

#65 (Restock):
Restock button visible on each card
Modal shows current quantity + increment input
Adds specified amount to quantity
Shows calculated new total
Works with all unit types

Closes: #64, #65

**Features:** - Add prominent "Consume" button to reduce quantity by 1 - Add "Restock" button that opens modal for custom amounts - Restock modal shows current quantity and calculated new total - Buttons use intuitive colors (orange for consume, green for restock) - Toast notifications on success (handled by existing update-quantity logic) - Optimistic UI updates via existing mechanisms **Acceptance Criteria:** **#64 (Consume):** ✅ Consume button visible on each card ✅ Reduces quantity correctly (by 1) ✅ Handles edge cases (disabled when quantity low) ✅ Works with all unit types **#65 (Restock):** ✅ Restock button visible on each card ✅ Modal shows current quantity + increment input ✅ Adds specified amount to quantity ✅ Shows calculated new total ✅ Works with all unit types **Closes:** #64, #65
makiolaj added 1 commit 2026-02-25 01:26:25 +00:00
feat: add Consume and Restock quick action buttons (#64 #65)
Some checks failed
Deploy to Coolify / Code Quality (pull_request) Has been cancelled
Deploy to Coolify / Run Tests (pull_request) Has been cancelled
Deploy to Coolify / Deploy to Development (pull_request) Has been cancelled
Deploy to Coolify / Deploy to Production (pull_request) Has been cancelled
Deploy to Coolify / Deploy to Test (pull_request) Has been cancelled
Pull Request Checks / Validate PR (pull_request) Has been cancelled
0a020a6681
makiolaj merged commit 3209adcf40 into develop 2026-02-25 01:26:27 +00:00
Sign in to join this conversation.