generated from freeCodeCamp/template
-
-
Notifications
You must be signed in to change notification settings - Fork 133
Open
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomers
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:
- Make sure you can successfully log in via Github (use the Github sign-in option, not Auth0)
- Run "npx prisma studio" in the terminal, navigate to the "Users" table, change the role of your user to "TEACHER"
- Make sure you click "Save changes" in prisma studio
- Sign out of the Classroom app and then sign back in
- Press the "Classes" button on the top navbar
- Create a class without selecting a certification
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomers