Many Features w/ Hard Dependency on HTML localStorage

Home Forums Calendar Products Filter Bar Many Features w/ Hard Dependency on HTML localStorage

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1033913
    Josh
    Participant

    Hello,

    The following features appear to have a hard dependency on localStorage:

    • filters
    • photo view (issue with google maps)
    • month view
    • map meta box on event page
    • “Events From” date filter

    I have added code to detect this and disable (display:none) these features in the event that localStorage is not available.

    However, this solution is very much not ideal, as it means customers with iOS private browsing mode enabled do not have access to a very large number of key features. (This issue has also been brought up in this support issue.)

    Would you be willing to prioritize removing this hard dependency?

    #1034087
    George
    Participant

    Hey @Josh,

    I’m sorry that for now you’ve had to outright disable these features; improving the handling of storing the state of Filter Bar is indeed a priority, but it’s a challenging thing to fix. There are not great alternatives ๐Ÿ™

    Posts like these definitely do help keep this on our radar, though, so thank you for reaching out at all.

    I’m really sorry about this state of things; do you have any further thoughts or any more specific questions I could address here?

    Sincerely,
    George

    #1035658
    Josh
    Participant

    Since this issue extends beyond Filter Bar and into core functionality of The Events Calendar, if there’s any way that I can fix at least some of these cases using an existing filter, that would be very much appreciated.

    Can you offer any suggestions? (Otherwise, if there’s nothing you can do, go ahead and close the ticket.)

    #1035708
    George
    Participant

    I’m sorry about this @josh, but other than localStorage there is not a solution I could recommend at this time ๐Ÿ™

    I know it’s a huge disappointment and I’m very, very sorry about that! I will indeed close up this ticket, but before doing so, let me know if you have any other questions I can help with or any other thoughts on this…I’m sorry to disappoint Josh!

    Sincerely,
    George

    #1036635
    Josh
    Participant

    Since you’re asking for other thoughts – I haven’t looked at the code, but I can’t imagine that you’re storing that much. Why not just fall back to memory if local storage isn’t available?

    #1036993
    George
    Participant

    I unfortunately don’t have a technical answer for that question โ€“ย what do you mean by “fall back to memory” in the context of our browser-side JavaScript powering these features?

    #1037051
    Josh
    Participant

    Something like this:

    
    window.foo = 'bar';
    

    As opposed to:

    
    window.localStorage.foo = 'bar';
    

    And maybe check to see if localStorage is available before deciding whether or not to use it: http://stackoverflow.com/a/16427747

    #1037753
    George
    Participant

    I appreciate the tips and recommendations here; there’s much to pass along to our devs and we are seriously interested in improving Filter Bar’s ability to save and store a set of filters…

    Thank you for your patience here in this thread specifically, and just in general with us while we work on improving Filter Bar period.

    Stay tuned to plugin updates!

    Sincerely,
    George

    #1076020
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Many Features w/ Hard Dependency on HTML localStorage’ is closed to new replies.