feat: mark list items as bought on tap and record boughtAt
Tapping an item in the list toggles it via a new PATCH /lists/:listId/items/:itemId endpoint. Marking an item as bought stores boughtAt (for future stats) and clearing it back to pending resets the timestamp. The web app updates optimistically and each row is now a real button with aria-pressed.
This commit is contained in:
@@ -91,6 +91,8 @@ export type ListItem = {
|
||||
listId: string
|
||||
name: string
|
||||
completed: boolean
|
||||
/** When the item was marked as bought; `null` while it is pending. */
|
||||
boughtAt: string | null
|
||||
quantity: string | null
|
||||
notes: string | null
|
||||
order: number
|
||||
|
||||
Reference in New Issue
Block a user