classroom icon indicating copy to clipboard operation
classroom copied to clipboard

Bug: Classrooms can be created with no certifications

Open NewtonLC opened this issue 1 year ago • 1 comments

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: Image

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." Image

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

NewtonLC avatar Oct 12 '25 21:10 NewtonLC

Hi! I'd love to contribute. Could you assign this issue to me? Happy to get started right away.

mizoz avatar Apr 28 '26 18:04 mizoz

Hey! I have created PR. Could you check if any other changes are needed?

TsaH0 avatar Aug 08 '26 10:08 TsaH0

Hi freeCodeCamp team,

I'm Diya Jatar, an aspiring Software Engineer interested in React, backend development, and building reliable web applications.

I'd like to contribute to the classroom validation issue. Is someone already working on it, or can a new contributor take it up? I'll review the project's contribution guidelines and tests before proposing a fix.

Thank you for maintaining this project!

DIYAJATAR avatar Oct 04 '26 16:10 DIYAJATAR

Hi, I would like to work on this.

I previously contributed to this repository in 2022 (PR #173 / commit e084a4c), where I helped add the styled toast notification for the “Copy Invite Code” action. I understand that this was a long time ago.

I am happy to implement the certification requirement against the current codebase and open a pull request if the issue is still open.

KevinTieu9 avatar Oct 31 '26 10:10 KevinTieu9

This issue has been resolved. We decided to allow classes with no certifications, but fix issues that arose out of classes having no certifications.

NewtonLC avatar Nov 11 '26 03:11 NewtonLC