cch5ng / wastenot

[wip] Application for reducing consumer food waste (get notifications when food is about to expire)
2 stars 1 forks source link

logic for waste calculations #17

Open cch5ng opened 5 years ago

cch5ng commented 5 years ago

first pass

first pass


considerations

cch5ng commented 4 years ago

resc

cch5ng commented 4 years ago

UI consideration: probably to user it is simplest if during the shopping session, every time they check an item as purchased, this should be the time that the start date/time gets saved (db) to count down to the expiration notification event... otherwise need to add another button for completed list purchase but that looks redundant visually

cch5ng commented 4 years ago

logistics

set db server timezone; America/Los_Angeles

cch5ng commented 4 years ago

010719

cch5ng commented 4 years ago

010920/011320

cch5ng commented 4 years ago

resc

cch5ng commented 4 years ago

010920 > 310

X-(fixed) some issue with setting comp useEffect; the timing seems off where the form field gets overwritten by useState call; need to figure out if my syntax with useEffect needs to change (try to look at definition of 2nd param again)

check how I handled this in the other form for retrieving either shopping list or template list

cch5ng commented 4 years ago

012320 > 350

X-(done) write up some tests to check out the logic in the map_expiration_dates.js file

cch5ng commented 4 years ago

012720 > 330


resc

UX or examples on different notification types; use like model for how to remind user they should set up the mapping between sample shopping list and the list item expiration date matches

https://www.nngroup.com/articles/indicators-validations-notifications/

cch5ng commented 4 years ago

013120 > 1218

(012920 > 353)

need to debug issues on ExpirationMapTest;

value prop on select should not be null; not sure where in the code this might be getting set; it should be "none"