Skip to content

feat: toggle settings for background image in puzzle - #2966

Open
saadman30 wants to merge 2 commits into
devfrom
feat/puzzle-toggle
Open

feat: toggle settings for background image in puzzle#2966
saadman30 wants to merge 2 commits into
devfrom
feat/puzzle-toggle

Conversation

@saadman30

Copy link
Copy Markdown
Collaborator

No description provided.

@saadman30 saadman30 self-assigned this Aug 19, 2026
@saadman30
saadman30 marked this pull request as ready for review August 20, 2026 05:33
@saadman30
saadman30 requested a review from b-l-i-n-d August 20, 2026 05:33
/>
)}

<Show when={!!tutorConfig.tutor_pro_url && !tutorConfig.is_legacy_learning_mode}>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This question type is already designated as PRO, making it unnecessary to include this check. Omitting it will streamline our process and enhance efficiency.

Comment on lines +228 to +238
{backgroundControllerProps ? (
renderBackgroundSwitch(backgroundControllerProps)
) : (
<Controller
control={form.control}
name={resolvedBackgroundPath}
defaultValue={true}
render={renderBackgroundSwitch}
/>
)}
</Show>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not make the backgroundControllerProps compulsory?

question.question_settings.puzzle_grid_size = Number(rawGridSize);
}
question.question_settings.enable_puzzle_answer_background =
question.question_settings.enable_puzzle_answer_background === undefined

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can use isDefined if it serves the purpose.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants