Skip to content

feat: add draw image threshold functionality to quiz questions#2428

Draft
saadman30 wants to merge 2 commits into4.0.0-devfrom
feat/draw-image-quiz-type-precision-level
Draft

feat: add draw image threshold functionality to quiz questions#2428
saadman30 wants to merge 2 commits into4.0.0-devfrom
feat/draw-image-quiz-type-precision-level

Conversation

@saadman30
Copy link
Collaborator

  • Introduced a new threshold selection for draw image questions, allowing instructors to set a required coverage percentage.
  • Updated the DrawImage component to include a FormSelectInput for threshold options.
  • Default threshold value is set to 70% if not specified.
  • Enhanced quiz data payload to include draw_image_threshold_percent.
  • Adjusted utility functions to handle the new threshold setting appropriately.

- Introduced a new threshold selection for draw image questions, allowing instructors to set a required coverage percentage.
- Updated the DrawImage component to include a FormSelectInput for threshold options.
- Default threshold value is set to 70% if not specified.
- Enhanced quiz data payload to include draw_image_threshold_percent.
- Adjusted utility functions to handle the new threshold setting appropriately.
@saadman30 saadman30 self-assigned this Mar 10, 2026
@saadman30 saadman30 added the 4.0.0 Tutor v4.w0w label Mar 10, 2026
…on control

- Refactored the DrawImage component to enhance readability and maintainability.
- Integrated precision control for draw image questions, allowing instructors to set a precision level.
- Updated the FormDrawImage component to accept a new `precisionControl` prop for better modularity.
- Simplified the rendering logic for threshold selection and draw image functionality.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4.0.0 Tutor v4.w0w

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant