-
Notifications
You must be signed in to change notification settings - Fork 481
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
All feedbacks makeover #42260
All feedbacks makeover #42260
Conversation
db2b09e
to
571d152
Compare
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.
I think this will be huge improvement for students!
: feedbacks.slice(0, 1); | ||
|
||
const hasMultipleFeedbacks = feedbacks.length > 1; | ||
const marginBottom = hasMultipleFeedbacks ? 8 : 24; |
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.
Why do we need this?
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.
For levels that have just one feedback we do not display the "Show older comments" button, so the design has a little bit of extra spacing to make up for the space that we usually get with the button.
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.
Love it! I'm finding the UI display logic to be a lot more localized and easier to understand.
const feedbackSeenByStudent = | ||
seen_on_feedback_page_at || student_first_visited_at; | ||
|
||
const commentExists = comment.length > 2; |
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.
Do you know why this is >2
? (I see that it is logic carried over from the previous implementation.)
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.
I'm not sure. Must have been an issue at some point that there were accidental or empty string comments?
dashboard/test/controllers/teacher_feedbacks_controller_test.rb
Outdated
Show resolved
Hide resolved
dashboard/test/controllers/teacher_feedbacks_controller_test.rb
Outdated
Show resolved
Hide resolved
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.
Feel free to merge while I'm out.
6eb26d0
to
e1f9c82
Compare
On the all feedbacks page, groups feedback by level, displays only the latest feedback for each level by default. The user can see the full history of feedback given on the level by clicking "Show older comments"
Links
Testing story
Tested locally and added unit tests
PR Checklist: