Skip to content
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

Merged
merged 14 commits into from
Sep 15, 2021
Merged

Conversation

maureensturgeon
Copy link
Contributor

@maureensturgeon maureensturgeon commented Aug 30, 2021

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"

Screen Shot 2021-09-07 at 5 54 38 PM

Links

Testing story

Tested locally and added unit tests

PR Checklist:

  • Tests provide adequate coverage
  • Privacy and Security impacts have been assessed
  • Code is well-commented
  • New features are translatable or updates will not break translations
  • Relevant documentation has been added or updated
  • User impact is well-understood and desirable
  • Pull Request is labeled appropriately
  • Follow-up work items (including potential tech debt) are tracked and linked

@maureensturgeon maureensturgeon force-pushed the maureen/LP-1989-all-feedbacks-makeover branch from db2b09e to 571d152 Compare September 3, 2021 20:10
@maureensturgeon maureensturgeon marked this pull request as ready for review September 8, 2021 00:55
@maureensturgeon maureensturgeon requested a review from a team as a code owner September 8, 2021 00:55
@maureensturgeon maureensturgeon requested a review from a team September 8, 2021 16:26
Copy link
Contributor

@jamescodeorg jamescodeorg left a 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!

dashboard/app/controllers/teacher_feedbacks_controller.rb Outdated Show resolved Hide resolved
dashboard/app/controllers/teacher_feedbacks_controller.rb Outdated Show resolved Hide resolved
dashboard/app/views/teacher_feedbacks/index.html.haml Outdated Show resolved Hide resolved
apps/src/templates/feedback/LevelFeedback.jsx Outdated Show resolved Hide resolved
: feedbacks.slice(0, 1);

const hasMultipleFeedbacks = feedbacks.length > 1;
const marginBottom = hasMultipleFeedbacks ? 8 : 24;
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor

@jamescodeorg jamescodeorg left a 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;
Copy link
Contributor

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.)

Copy link
Contributor Author

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/db/schema.rb Outdated Show resolved Hide resolved
Copy link
Contributor Author

@maureensturgeon maureensturgeon left a 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.

@maureensturgeon maureensturgeon force-pushed the maureen/LP-1989-all-feedbacks-makeover branch from 6eb26d0 to e1f9c82 Compare September 15, 2021 16:31
@maureensturgeon maureensturgeon merged commit 9caf603 into staging Sep 15, 2021
@maureensturgeon maureensturgeon deleted the maureen/LP-1989-all-feedbacks-makeover branch September 15, 2021 22:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants