-
Notifications
You must be signed in to change notification settings - Fork 4
[ENHANCEMENT]: Initialize My Progress with default difficulty_id: 1 for all games #155
Copy link
Copy link
Open
Labels
featureNew feature or requestNew feature or requestpriority: mediumUsable but annoying bugUsable but annoying bugrefactormaking changes for enhancements or structure improvements without changing existing functionalitiesmaking changes for enhancements or structure improvements without changing existing functionalities
Description
What feature are you enhancing?
The initial My Progress database entry created for a new user
What improvement would you like to see?
Set up the default my_progress JSON to include all existing games with a difficulty_id value of 1. This structure should be automatically inserted during user creation (e.g., post-Google sign-in or standard registration). Example structure:
{
"progress": [
{
"game_id": 1,
"difficulty_id": 3
},
{
"game_id": 2,
"difficulty_id": 1
},
{
"game_id": 3,
"difficulty_id": 1
},
]
}
How will this benefit users?
• Ensures every new user has a consistent starting point in all games
• Prevents UI crashes due to missing keys in progress tracking
• Simplifies frontend logic by avoiding null checks for my_progress
• Supports personalized difficulty scaling in future updates
Before submitting
- I’ve checked for similar enhancement requests.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
featureNew feature or requestNew feature or requestpriority: mediumUsable but annoying bugUsable but annoying bugrefactormaking changes for enhancements or structure improvements without changing existing functionalitiesmaking changes for enhancements or structure improvements without changing existing functionalities