Improve localStorage
This is just an issue covering stuff i do and plan to do.
-
Remove 60s throttle on localstorage saving -
Make it so that saving to localstorage only happens when there's something to save there -
Separate user configuration from instance configuration -
Remove or simplify whitelist of stuff saved to localstorage so that nobody forgets to add new path to the list -
Add a feedback when changes are saved or if there's been an error.
This should fix:
- login/logout problems
- having to wait some time until settings are actually saved (and due to nature of that throttle it's not exactly predictable)
- (see above but also about unread notifications)
- huge mess in code with nearly every thing using
setOption
to store some stuff, be it user setting or instance name - feedback should clear up the "...did it save or i'm missing a 'Apply' button?" and "is it actually not saving or somebody forgot to add path to whitelist again?"
Edited by HJ