project: Moodle app
summary: Quiz support in the Mobile app
description: We need to evaluate adding support for the quiz module in the app, maybe initially only allowing quizzes with simple question types to be done online

1.summary: Quiz: Allow reviewing other user attempts
description: Using the capture links feature its possible that a teacher reviews another user attempt. We should allow that.
2.summary: Review quiz usability
description: While developing the quiz we took some decisions that should be discussed: Where should we place the navigation items? Right now we have arrows in the top and bottom of the quiz to go to next/previous page. We also have a TOC in a popover. Should we show a confirm modal before changing page in a sequential quiz? The user wont be able to go back to previous page. If an autosave fails, how much time should we wait before retrying? Right now we start the timer again, so itll depend on the quiz autosave setting (1, 2 or 5 minutes). Its a big delay for a retry, but setting a lower delay might increase the server load. In review mode, if the user selects to see "one page at a time" right now well show the attempt summary at the start of each page. Maybe we should show it only when all the questions are shown at once, or move it to a top right button to see it, ...
3.summary: Explain how the Drag and Drop questions works on mobile
description: We should add some instructions to inform the user that another action has to be done instead of DnD. We should decide the correct verb. The current action is click to select and click to drop ("Select/Grab and drop"). Place the decided text when answering Drag and Drop questions.
4.summary: Gather preflight data in prefetch
description: In the prefetch issue weve just hardcoded the required preflight data (offlineattempts). We should think of a proper way to gather the preflight data when the user clicks prefetch. The problem comes if we need a user input, since the user might be downloading more than one quiz at once.
5.summary: Add a loading spinner for D&D question types using images
description: Discovered while testing We should display a spinner in the question until all the images referenced inside are loaded.
6.summary: Implement quiz synchronization process
description: The quiz synchronization process will be responsible of sending the offline data to Moodle. We need to check if each question can be synchronized and discard the answers that cant be. Synchronized data should be removed from the device.
7.summary: Handle essays with required attachments
description: An essay question can be configured to accept only attachments, without inline text. In the app we dont allow attachments yet, so the user will be unable to answer the question. Also, an essay can accept inline text but also require at least 1 attachment. We have no way to tell if the attachments are required or optional, so we decided to not allow submitting the quiz if an essay accepts attachments.

Below is an instruction that describes a task, paired with an input that provides an epic with this format: 
"project": "Name of the project" 
"summary": "Summary of the epic user story" 
"description": "Description of the epic user story". Write a response that appropriately completes the request.### Instruction:
Break this epic user story into smaller tasks to help the developers understand the epic better, you can divide this epic into as much as you want depending on the complexity of the epic.
### Input:
project: Moodle app
summary: Quiz support in the Mobile app
description: We need to evaluate adding support for the quiz module in the app, maybe initially only allowing quizzes with simple question types to be done online

### Response:
1.summary: Quiz: Allow reviewing other user attempts
description: Using the capture links feature its possible that a teacher reviews another user attempt. We should allow that.
2.summary: Review quiz usability
description: While developing the quiz we took some decisions that should be discussed: Where should we place the navigation items? Right now we have arrows in the top and bottom of the quiz to go to next/previous page. We also have a TOC in a popover. Should we show a confirm modal before changing page in a sequential quiz? The user wont be able to go back to previous page. If an autosave fails, how much time should we wait before retrying? Right now we start the timer again, so itll depend on the quiz autosave setting (1, 2 or 5 minutes). Its a big delay for a retry, but setting a lower delay might increase the server load. In review mode, if the user selects to see "one page at a time" right now well show the attempt summary at the start of each page. Maybe we should show it only when all the questions are shown at once, or move it to a top right button to see it, ...
3.summary: Explain how the Drag and Drop questions works on mobile
description: We should add some instructions to inform the user that another action has to be done instead of DnD. We should decide the correct verb. The current action is click to select and click to drop ("Select/Grab and drop"). Place the decided text when answering Drag and Drop questions.
4.summary: Gather preflight data in prefetch
description: In the prefetch issue weve just hardcoded the required preflight data (offlineattempts). We should think of a proper way to gather the preflight data when the user clicks prefetch. The problem comes if we need a user input, since the user might be downloading more than one quiz at once.
5.summary: Add a loading spinner for D&D question types using images
description: Discovered while testing We should display a spinner in the question until all the images referenced inside are loaded.
6.summary: Implement quiz synchronization process
description: The quiz synchronization process will be responsible of sending the offline data to Moodle. We need to check if each question can be synchronized and discard the answers that cant be. Synchronized data should be removed from the device.
7.summary: Handle essays with required attachments
description: An essay question can be configured to accept only attachments, without inline text. In the app we dont allow attachments yet, so the user will be unable to answer the question. Also, an essay can accept inline text but also require at least 1 attachment. We have no way to tell if the attachments are required or optional, so we decided to not allow submitting the quiz if an essay accepts attachments.
