-
Notifications
You must be signed in to change notification settings - Fork 0
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
Collect student feedback #768
Conversation
[diff-counting] Significant lines: 250. |
…nell-dti/office-hours into richardgu/answered-question-feedback adf q the commit.
…nell-dti/office-hours into richardgu/answered-question-feedback
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.
This PR looks really good so far! I think the feedback form will be very helpful for professors/tas. In terms of validation, I think students should be required to add a somewhat detailed explanation (one or two words shouldn't be enough) so maybe the code could enforce a minimum character/word count, but this can definitely be discussed more with everyone at standup. Also, once you finish up the styling and the PR as a whole, don't forget to remove the console.log
statements. Besides that, very nice job!
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.
Great work so far! I don't see any bugs on my end when I run and test it for edge cases as well so far so the front end works perfect. But one thing to note is that the feedback is stored in courses and only the feedback rating and written feedback is stored. Sometimes there are multiple TA's that are assigned to a an office hours session and multiple sessions in a course so I think it would be beneficial to store the data on the student making the feedback and the TA receiving the feedback. And then maybe storing this in sessions instead of courses or as an alternative to this, store the session of the feedback in courses with the other information
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.
This feature looks really good! I think the design looks pretty good and I tested it on my machine with two different accounts and it works. I also think it's a pretty useful feature for TAs, Professors, and students.
I have three possible suggestions about changing the functionality of the "Submit Rating" button.
- The button is clickable even when the conditions for valid feedback aren't fulfilled. Although this is visually shown to the user through the use of a grayed-out color for the button, the button isn't actually disabled. I recommend adding a
disabled
property to the button to fix this. - The logic for valid feedback is repeated and should probably be in its own function or state variable. This way, it will be easier to call the logic for if feedback is valid and it will also be easier to add more complex logic to see if feedback is valid.
- Currently, feedback is only accepted if there is a rating and there's some text in the feedback box (length > 0). However, some students will probably only give a star rating to a TA and not write anything. I think that feedback should also be accepted, as it will probably be one of the most common forms of feedback.
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.
Thanks for making the changes Richard! I remember Alisha and Benji were the ones who suggested making comments on a review required to help collect extra feedback as justification to a star review. But we can leave it optional for now because of convenience purposes.
Also, I tested for the same things as my original review and it looks good as well.
Summary
Demo of what the entire process looks like, with the prompt appearing properly and the student's input appearing in Firestore
Screen.Recording.2023-11-29.at.10.49.27.AM.mov
Below, we have a rudimentary version of what the feedback modal will look like
Documentation
included in this PR as specification comments
Test Plan
Notes
The styling in this PR is definitely a work in progress. Substitutions for the star rating in MUI's icon library that look more similar to the design or just larger in general weren't found, but will keep looking for other ways.
Will need to discuss form validation – e.g. whether or not we're able to submit incomplete feedback and the associated warnings that may pop up if we don't have sufficient feedback given.
Also note that this is a New PR for this ticket without all the annoying linting issues from this PR
Breaking Changes
None