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
Workshop admins can move enrollments between workshops #30017
Conversation
UI-wise, I don't think we need to squeeze the dropdown button into a column header. I think it's fine to have it as a normal-sized button outside of the table, probably somewhere up and to the right. Maybe to the right of the download arrow. |
That would also make room for a select-all/deselect-all checkbox at the top of the column. |
+1! i think that's where we initially planned for the button to go? |
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'd like to see an additional test confirming that a non-admin can't interact with this route at all.
apps/src/code-studio/pd/workshop_dashboard/components/move_enrollments_dialog.jsx
Outdated
Show resolved
Hide resolved
Codecov Report
@@ Coverage Diff @@
## staging #30017 +/- ##
==========================================
Coverage ? 73.12%
==========================================
Files ? 2049
Lines ? 112131
Branches ? 3399
==========================================
Hits ? 81995
Misses ? 26902
Partials ? 3234
Continue to review full report at Codecov.
|
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.
Awesome!
}); | ||
} else { | ||
this.setState(state => { | ||
state.selectedEnrollments.push({ |
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.
Would it make sense for state to just hold the selected IDs, rather than duplicating this additional enrollment information into it?
Would it be worth getting some test coverage of the UI, using UI automation and/or React tests? |
Workshop admins can now move enrollments from one workshop to another. This means engineer involvement is not necessary in the frequent requests to combine workshops, split up workshops, or even out enrollment between workshops.
PLC-305
No enrollments selected, Move button disabled:
Enrollment selected, Move button enabled:
Move enrollments dialog:
Error message if moving enrollments fails: