PA 10.2: Add support for free response question feedback
- Due Oct 28, 2020 by 11:59pm
- Points 1
- Submitting a website url
- Available after Oct 14, 2020 at 12am
Copy the ca10-solutions code from the course Dropbox folder Links to an external site. (or a newer version of that code) to a new folder in your Git repository: pas/pa10.2. Update VidQuiz so that:
- in edit mode:
- when editing a free response question, feedback can be provided
- this should be an extra text area below the question box, hidden by default if it's empty (there should be a toggle button to show/hide it)
- when editing a free response question, feedback can be provided
- in play mode
- when the user answers a free response questions and clicks "Submit", if there is any feedback associated with that question, it should be displayed
- both the question and the feedback should be displayed; the user must click "continue" in order to stop showing the question and resume video play
- when the user answers a free response questions and clicks "Submit", if there is any feedback associated with that question, it should be displayed
- storage for feedback needs to be supported in the database and the API (this should be part of the APIs that handle question CRUD)—that is, don't make a separate API action just to handle feedback
- update the client-side code in crud.js to handle the extra information
- update the server-side code in api.php to handle the extra information
Here's the rubric:
[ ] users can add feedback on free response questions in edit mode
[ ] users can see feedback on free response questions after answering the question in play mode
[ ] the viewer has to click a "continue" button in order to resume playback after seeing feedback for a free response question
[ ] no feedback screen is shown after free response questions in play mode if there is no feedback
[ ] question feedback data is stored server-side
[ ] the code is well commented and styled
[ ] there is a header at the top of the file that includes the name of the author(s) and a brief description of the file
[ ] the PA folder includes a README.md file with the required information in it
Submitting PAs
Be sure to create a README.md with the following information:
- who you worked with (say "I worked alone" if you didn't have a partner)
- how long you spent on the assignment
- the PA option (and, if applicable, the earlier PA option it builds off of)
- a copy of the PA option's rubric, filled out (only submit if you can honestly check off each of the criteria)
- what the most challenging aspects were
- any lingering questions you have about the assignment
Commit and push your git repository to GitHub, then paste a link to your PA directory.