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
Add total attendance column to workshop dashboard for local summer workshops #26828
Conversation
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.
Changes look correct. Can we get test coverage? I was thinking:
- Assert that
attendances
is included in the serialized workshop enrollment - Assert that the Total Attendance column only shows up for Local Summer workshops
@@ -6,6 +6,7 @@ import {workshopEnrollmentStyles as styles} from "../workshop_enrollment_styles" | |||
|
|||
const CSF = "CS Fundamentals"; | |||
const NA = "N/A"; | |||
const LOCAL_SUMMER = "5-day Summer"; |
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.
Can we / should we be sharing these constants with the server code?
60b5477
to
5f843f9
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.
It'd be nice to get soundLibrary.json
entirely out of this PR, but understandable if that's tricky at this point.
workshopEnrollmentSchoolInfo | ||
.find('th') | ||
.filterWhere(col => col.text().includes('Total Attendance')) | ||
).to.have.length(0); |
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 dig it. Thanks for adding additional coverage here!
This is part of the work for adding the scholarship dropdown - it will help partners decide which teachers will receive scholarships.
For each enrollee, display the number of sessions they have attended / the total number of sessions the workshop has.