-
-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
localstorage for remembering settings #16
Comments
So I'm almost certainly an edge case, but I generally don't retain any state across browser restarts. So for me, I think that means that localstorage wouldn't actually be an effective store of anything. I think with #4 in place, it would be great to store these settings in the database somewhere, and then have the option to override them via localstorage, or something like that. localstorage does, of course, have the advantage of not requiring #4, though... |
I also think that if we are going to keep track of recently-visited (or bookmarked) room IDs, it might also make sense to be able to give nicknames to rooms (either as an actual global part of that room, or just on a per-user basis) to make picking the appropriate room out of that lineup easier. (oops, seeing now that this is mentioned in #6). |
Yes, this is meant to be complementary to #4 (user accounts) for those who don't want to sign in. Even if you clobber all state between sessions, I'm also interested in this because it's easier than #4, but offers at least some of the advantages. Not as much for you though. 🙂 |
I think it'd be nice to remember your line thickness, text size, pen color, fill color, grid snapping between sessions in localstorage. I think this should be per room? Could also choose to set them to default on the entire machine, maybe via right click/double click for options menu.
Possibly even more useful is to keep track of the list of room IDs that this machine has visited (with I guess the option to delete some). That list would be really handy, especially before but even with user accounts (User accounts #4).
Could also store
remoteId
, which would preserve your ID across reloads (so less likely to get a stale cursor), though this makes things slightly less private. Maybe only store when name is stored, so intentionally broadcasting name? Ended up putting insessionStorage
, so at least preserved across reloads.Customized keyboard shortcuts (keyboard shortcuts for switching tools and widths (and colors?) #57)
User's name (global to all boards)
As pointed out below, many of these things should be stored in user account if logged in; this issue is for not-logged-in users. The following should not be stored with user accounts though:
Saving the above settings is especially useful in a Comingle context, where we're constantly closing and reopening Cocreate rooms (including the same ones).
The text was updated successfully, but these errors were encountered: