-
-
Notifications
You must be signed in to change notification settings - Fork 4
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
Account Based Preferences #191
Comments
Right now, all of these are stored in localstorage, but the question is: What do you do if someone changes their preferences, and then signs into an account that already has preferences? Which ones do we keep? |
you would put it as the one in the account |
as it would be in the account setting which you can't access without an account so they wouldn't be able to change it |
Ok |
I might as well make a schema
Preferences schema: {
"hue": 0-360, // or also theme in the future?
"study_modes": {
"flashcards": {
"answer_with": 0-1,
"starred": true/false
},
"learn": {
"answer_with": 0-1,
"starred": true/false
},
"test": {
"answer_with": 0-1,
"starred": true/false,
"types": 1001 // bitmask
},
"match": {
"answer_with": 0-1,
"starred": true/false
}
},
"starred": {
"set_id": [1, 3, 5] // TODO: Rn this is a list of numbers. It would be better to use a bitmask
}
} |
All CRUD operations can only be done if document ID matches user ID |
Right makes sense |
Discussed in https://github.com/orgs/For-0/discussions/190
Originally posted by ShreyanKhanna October 25, 2022
I think it would be a good idea to make it so that the user can change how the Vocabustudy page looks for them such as colors, backgrounds, and patterns(of course we can keep things like the homepage the same) as well as control how many drag & drops, questions, etc. they want. I think that we can have this whole thing in the setting as well as move the light/dark mode there as well. I know it may be too early but just putting it out there for the future.
The text was updated successfully, but these errors were encountered: