a-type / gnocchi

A tiny but delightful cooking app. Use it free at gnocchi.club
https://gnocchi.club
34 stars 2 forks source link

When purchasing and then un-purchasing an item, the purchase date isn't undone #258

Closed a-type closed 1 year ago

a-type commented 1 year ago

The item shows up as recently purchased even if you purchase by accident and tap the checkbox again.

Items could store some local state to do this smarter.

a-type commented 1 year ago

Harder than I thought. Item doesn't have the necessary state (the food's last purchased time).

Could possibly store a previousLastPurchasedAt on food and revert to that? IDK.

The complexity affects priority to me. I may drop this. In most cases, the difference from accidental purchase to actual purchase will be really small.