2021-05-26 01:39:37 +08:00
## Todo
- Get google login working
2021-05-21 02:38:58 +08:00
- Transfer leaderboard and other cloud functions
- Reverse list of results on account page
- spinning wheel on account page should dissapear after data is loaded
- Account data should be updated when new result is added/test completed
- Add email verification
- Joined date doesn't look the same as it did before
- Personal bests items should not be arrays
- should be objects that are set on new pb
- Move user data to localstorage instead of cookies
2021-05-21 02:53:47 +08:00
- Result is duplicated in analytics
2021-05-22 21:56:51 +08:00
- Does entire result need to be stored in analytics
- Should result be stored in seperate collection and then referenced in user doc and analytics?
- Fix localhost, production, development server detection
- Should be a setting in the .env
2021-05-26 01:39:37 +08:00
- Maybe it could be set through package.json
- When a specific script is run, a certain mode will be activated
- Tests started and completed doesn't increment when quitting a running test
- Doesn't work as I expected in live version either, no issue
## After beta is ready
2021-05-21 02:53:47 +08:00
2021-05-22 21:56:51 +08:00
- make sure refresh token won't expire
- make refresh token expire after session if don't remeber me is set?
- Keep jwt and refresh in cookies?
2021-05-21 02:38:58 +08:00
- Get somebody else to check over security due to my lack of expertise
2021-05-26 01:39:37 +08:00
- Work on transfering data from firebase to mongo
## After release
2021-05-21 02:38:58 +08:00
- Investigate and improve efficiency after mongo merge or during review
2021-05-26 01:39:37 +08:00
- I'm not sure about this but it might be worthwhile to use redis to store userdata up to a certain point
- Users who have been requested in the last hour will be stored in the redis database so that their data can be sent again without having to search a large database
- After an hour without a new request they can be removed from memory
- User data should not be requested from the server every time a test is submitted, result should just be appended to results