open-prices-frontend
open-prices-frontend copied to clipboard
Get recent locations from the My prices page
Problem
If you clear your browser cache, you lose your list of recent locations.
Proposed solution
Check for previously added prices by the user and add their locations to localStorage if the recent locations list is empty.
if the recent locations list is empty
but maybe the user deleted the list on purpose ?
Oh, you can delete entries from the recent locations list? I didn't realize. Maybe it would make more sense to call it favorite locations or saved locations or something instead? If the list doesn't always represent your recent locations?
yes you can delete them individually, or all of them at once with the "Clear" button (in the location selector popup)
I see. Well, I kinda still wish there was a way to populate the list with your actual recent locations from your price upload history so I don't have to memorize or look up the shop name again whenever I want to add a price from there again, as I sometimes switch devices or may clear my browser cache occasionally.