Skip to content

Add class codes and student class selection - #477

Merged
nevins321 merged 9 commits into
stagefrom
feature/student-class-code-join
Oct 28, 2026
Merged

nevins321 merged 9 commits into
stagefrom
feature/student-class-code-join

Conversation

@KsAashrith87

@KsAashrith87 KsAashrith87 commented Oct 23, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Generate unique 5-character class codes and allow coaches to regenerate them.
  • Let students join classes with a code and view/select their classes on the reader forms page.
  • Scope published forms and submissions to the selected class while preserving student access checks.
  • Automatically enroll reader student profiles in Rae's MLK Class and route Rae's form management to that class.

Rae's one-time setup

  1. Sign in to the deployed app with Rae's existing account (the deployed seed already gives her admin access; do not change her role or the seed file).
  2. If a class named MLK Class does not already exist and belong to Rae, create it once from the coach portal while signed in as Rae. This associates the class with her account. Students do not need the class code to be enrolled.
  3. After this PR is merged and deployed, new reader accounts get a student profile enrolled in MLK Class automatically. Existing profiles are enrolled the next time their owner loads the student profiles or forms. If all existing profiles must be enrolled immediately, coordinate an approved backfill against the deployed database; this PR does not run a bulk production backfill.
  4. Rae can create/manage forms with MLK Class selected; her form-management requests are scoped to MLK Class so its students can see published forms there.

Validation

  • pnpm build
  • pnpm exec prisma validate
  • git diff --check

KsAashrith87 and others added 9 commits October 22, 2026 22:44
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…s-code-join

# Conflicts:
#	server/api/student/index.post.ts
@nevins321
nevins321 merged commit a7bb4c1 into stage Oct 28, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants