Skip to content

[ENHANCEMENT]: Initialize My Progress with default difficulty_id: 1 for all games #155

@master-of-none

Description

@master-of-none

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.

Metadata

Metadata

Labels

featureNew feature or requestpriority: mediumUsable but annoying bugrefactormaking changes for enhancements or structure improvements without changing existing functionalities

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions