Skip to content

Comments

Feat: quiz type scale#2375

Draft
saadman30 wants to merge 8 commits into4.0.0-devfrom
feat/quiz-type-scale
Draft

Feat: quiz type scale#2375
saadman30 wants to merge 8 commits into4.0.0-devfrom
feat/quiz-type-scale

Conversation

@saadman30
Copy link
Collaborator

No description provided.

- Introduced a new question type 'pin_image' to the quiz system, allowing students to drop a pin on an image as an answer.
- Updated the quiz handling logic to support validation and processing of pin coordinates.
- Enhanced the frontend components to include the new pin_image type, ensuring proper rendering and interaction.
- Improved backend handling for pin_image answers, including file path management and answer validation.
- Updated relevant views to display pin submissions and instructor references correctly.
- Introduced a new question type 'coordinates' that allows students to select a point on a grid as an answer.
- Updated quiz handling logic to support validation and processing of coordinate inputs.
- Enhanced frontend components to include the new coordinates type, ensuring proper rendering and interaction.
- Improved backend handling for coordinates answers, including necessary filters and data processing.
- Added relevant form components and utility functions to manage coordinate input effectively.
…e image handling

- Removed unnecessary field value assignment in PinImage component.
- Enhanced FormPinImage to ensure proper handling of image uploads by checking for the presence of the option before accessing its properties.
- Updated the TutorCore API reference for drawing on images to ensure compatibility with the latest changes.
…s component

- Improved the spotlight quiz logic to handle reveal mode for different question types, ensuring the correct reference/explanation is displayed for 'draw_image', 'pin_image', and 'coordinates'.
- Removed unnecessary field value assignment in the FormCoordinates component to streamline the code and improve readability.
- Added a null check for the option in FormCoordinates to prevent rendering issues when no option is available.
- Introduced a new question type 'scale' that allows instructors to set a target value on a scale for quiz questions.
- Updated relevant components to support the scale question type, including the addition of FormScale for handling scale configurations and answers.
- Enhanced the QuestionList and QuestionConditions components to include the scale option with appropriate labels and icons.
- Ensured proper integration with existing quiz handling logic and validation processes.
@saadman30 saadman30 self-assigned this Feb 19, 2026
@saadman30 saadman30 added the 4.0.0 Tutor v4.w0w label Feb 19, 2026
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