freeCodeCamp / freeCodeCamp/classroom
Bug: Classrooms can be created with no certifications
- Dominant language
- JavaScript
- Stars
- 155
- Forks
- 138
- PR merge metrics
- No merged PRs in 30d
Description
Currently, it is possible to create a classroom without any certifications. This results in empty classroom pages being created, which would be confusing for teachers.
**Classroom page with no certifications:**
**Desired solution:**
When a teacher is creating a class, the "Create" button should be disabled when there are no certifications selected. If the teacher hovers over the "Create" button, hover text will appear saying, "Please select a certification."
Steps to reproduce the issue:
1. Make sure you can successfully log in via Github (use the Github sign-in option, not Auth0)
2. Run "npx prisma studio" in the terminal, navigate to the "Users" table, change the role of your user to "TEACHER"
3. Make sure you click "Save changes" in prisma studio
4. Sign out of the Classroom app and then sign back in
5. Press the "Classes" button on the top navbar
6. Create a class without selecting a certification
Contributor guide
Assessment
This issue has not been assessed yet.