open-prices-frontend icon indicating copy to clipboard operation
open-prices-frontend copied to clipboard

Get recent locations from the My prices page

Open odin-h opened this issue 10 months ago • 4 comments

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.

odin-h avatar Apr 14 '24 12:04 odin-h

if the recent locations list is empty

but maybe the user deleted the list on purpose ?

raphodn avatar Apr 15 '24 09:04 raphodn

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?

odin-h avatar Apr 15 '24 13:04 odin-h

yes you can delete them individually, or all of them at once with the "Clear" button (in the location selector popup)

image

raphodn avatar Apr 15 '24 13:04 raphodn

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.

odin-h avatar Apr 15 '24 13:04 odin-h