Keep the closed box visible and tidy the order item card
- After closing, the box button stays disabled as "Box N closed" for 5 minutes, timed from a new picked_up_at so it survives a reload - Picked-up items keep showing their pickup box number - Hide the steps toggle on ready and picked-up items - Move "Buy again" and "Get help" into a dots menu in the item header Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -639,7 +639,8 @@ describe('pickup boxes', () => {
|
||||
await ordering.closePickupBox(testDb.db, itemId, accessFor(order))
|
||||
const status = await getStatus(order)
|
||||
expect(status.items[0].status).toBe('picked_up')
|
||||
expect(status.items[0].pickupBox).toBeNull()
|
||||
expect(status.items[0].pickupBox).toEqual({ number: 1, isOpen: false })
|
||||
expect(status.items[0].pickedUpAt).toBeInstanceOf(Date)
|
||||
expect(status.status).toBe('complete')
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user