-
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
[#12649] When adding a comment while submitting responses, show visibility of the comment as well #12659
Conversation
Hi @hallovera, do fix the lint issues as well as the failing snapshot tests. You can update the snapshots by running |
Hi @hallovera, The snapshot tests are still failing. Are you able to fix them following the steps mentioned by @weiquu? Do let us know if you face any troubles! Fyi, we will review your PR only after the snapshot tests are fixed. |
Sorry for the delay, I believe all tests pass successfully now. The problem was pretty silly: I misunderstood how snapshot testing worked, and assumed I had to manually fix the issues arising on the tests (which didn't go well). Once I figured out I simply needed to "update" the snapshots, it all fell into place. Please let me know if there are any other issues! Thanks @weiquu and @jasonqiu212 for your helpful comments. |
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.
LGTM
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.
Small nit. Nice work!
src/web/app/components/question-submission-form/question-submission-form.component.html
Outdated
Show resolved
Hide resolved
@hallovera Sorry, will need you to update the snapshots please. Thank you! |
@domlimm Done! |
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.
LGTM, thank you for your contribution!
…how visibility of the comment as well (TEAMMATES#12659) * Add visibility information for question comments * Fix lint issue * Fix snapshot issues * Standardise text with existing one in response body * Update snapshots --------- Co-authored-by: Wei Qing <48304907+weiquu@users.noreply.github.com> Co-authored-by: Jason Qiu <jason_qiu@hotmail.com> Co-authored-by: Dominic Lim <46486515+domlimm@users.noreply.github.com>
Fixes #12649
Outline of Solution
The problem was that some users could get confused by the visibility of the comments sections, believing they were visible to the instructors only. In fact, they could actually be viewed by the same people as the main question.
To solve this, the visibility information from the main question is added to the comments section as well. It will show/hide with the comments box, and highlights the people who can see your comments.
When comments are showing:
When comments are hidden: