-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[#12508] Give respondents a way to reset a rubric question submission #12569
[#12508] Give respondents a way to reset a rubric question submission #12569
Conversation
- reset button added - function resetRubricQuestion() added to rubric-question-edit-answer-form module - styling for the button
Ready for review :D |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @Mex7180, thank you for your PR! Just a couple comments:
- As stated in the issue, there should add a confirmation modal for the user to confirm a reset.
- It would be good if there's a test added for the resetRubricQuestion function
Do make the changes and re-request for a review, thank you!
Hi @cedricongjh |
Do take a look at SimpleModalService and it's usages :D |
Update on the current state: |
Update on the current state: |
hi @Mex7180, the code on the PR does not contain the confirmation modal/dialog, wondering if you have pushed it yet? |
Hi @cedricongjh |
Folks, This PR seems to be stalling (no activities for the past 7 days). 🐌 😢 |
1 similar comment
Folks, This PR seems to be stalling (no activities for the past 7 days). 🐌 😢 |
Closing this PR because I don't find the time to work on it, I hope someone can get it to move forward. |
Fixes #12508
Outline of Solution
Added a new reset button connected to a function resetRubricQuestion() changing the currently shown answers to the empty question state (not automatically saved in backend).
Changed the media queries, because if the window size was changed more than once, at the with of 768px, the rubric questions were not shown anymore.
Different behavior shown in the video (resetting the question without saving, resetting the question with saving)
https://github.com/TEAMMATES/teammates/assets/90850610/a07e7b65-d2ae-472a-8f9a-10b00c202a18