Skip to content

feat(Grade By Component): Show component average score #2112

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

Merged
merged 5 commits into from
Mar 12, 2025

Conversation

hirokiterashima
Copy link
Member

@hirokiterashima hirokiterashima commented Mar 7, 2025

This is a new feature for the grade by component feature branch.

This PR adds a new component, ComponentAverageScoreComponent, that shows the average score of the students in the period for the component. Previously, we were only able to show the average score for a node.

Changes

  • ComponentAverageScoreComponent shows
    • average score for the current period, if available
      • we only count workgroups that have a score
    • shows "N/A", if not available

Test

  • Choose different nodes, components, and periods (including all periods). The average score should display as described above.

@hirokiterashima hirokiterashima self-assigned this Mar 7, 2025
@hirokiterashima hirokiterashima marked this pull request as ready for review March 7, 2025 19:23
@hirokiterashima hirokiterashima requested a review from breity March 7, 2025 19:23
Copy link
Member

@breity breity left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Functionality works.

One suggestion: Maybe we shouldn't show the max score if there is no average score. For example, "N/A / 2 Mean Score" looks confusing. I think it would be better to just show "N/A Mean Score" like we do for the component score.

I will work on styling in #2090.

@breity breity self-requested a review March 12, 2025 20:49
Copy link
Member

@breity breity left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

I changed N/A to -, as we discussed.

@hirokiterashima hirokiterashima merged commit c76f167 into grade-by-component Mar 12, 2025
1 check passed
@hirokiterashima hirokiterashima deleted the component-average-score branch March 12, 2025 22:00
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.

2 participants