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
**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
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Features:
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