Skip to content

Education round (#54) - #64

Merged
VidurShah merged 2 commits into
mainfrom
vidur/education-round
Nov 30, 2026
Merged

VidurShah merged 2 commits into
mainfrom
vidur/education-round

Conversation

@VidurShah

Copy link
Copy Markdown
Collaborator

Ticket

Closes #54

Stacked PR. Based on vidur/exec-round (#63).

What changed

API: POST /semesters/:id/education/accept-all (exec, 📝 recruiting.education_accept_all). In one transaction, every new-member application with track education and status submitted:

  • gets a member record with no login (reuses an existing member with the same email), plus the Education Student position for the semester;
  • is marked accepted, with decided_by/at set.

"Both" and Project applicants are untouched. Pressing it again only picks up applicants who arrived since; it's refused (409) after Recruiting done. Returns { accepted }. No email goes out: TDD 2.3 sends the education congrats at Recruiting done.

placeAsEducationStudent() is shared with Recruiting done (WP9), which places unconfirmed Both applicants and any late Education applicants the same way.

Web

  • Accept all… on the Applications page's Education tab, and in the overview's Actions for any exec until Recruiting done.
  • The confirmation reuses ConfirmStepModal (which now also shows notes). It shows how many Education-only applicants will be added, that Both applicants stay in the project pool, and that no email goes out now. Confirm stays disabled until the count loads, and while there's no one to accept.

How to verify

  1. bun run test:all. API education-round.test.ts: exec-only, Education-only → Education Student with no account + accepted, Both/Project untouched, audited, second press accepts 0. Web: Accept all shows for non-superuser exec (but not Exec round done), and on the Education tab.
  2. Manually: submit an Education and a Both application on /apply, press Accept all… on the Education tab, and see the Education applicant become Accepted while the Both applicant stays Applied.

Screenshots

To follow with the demo seed (WP10).

Checklist

  • CI passes locally (format, lint, typecheck, tests, build)
  • TDD updated if behavior changed: nothing marked ‼️
  • No secrets or real member data in the diff

@VidurShah VidurShah mentioned this pull request Nov 30, 2026
3 tasks done
@VidurShah
VidurShah force-pushed the vidur/education-round branch from 7c1cd36 to 0a6e076 Compare November 30, 2026 21:37
@VidurShah

Copy link
Copy Markdown
Collaborator Author

Updated: Accept all uses shadcn Button and Card. I also carried WP6's resend changes through the rebase.

- POST /semesters/:id/education/accept-all (any exec, audited) turns
  every undecided Education-only applicant into an Education Student
  member with no login, marks them accepted, and leaves Both applicants
  in the project pool. Repeat presses only pick up new applicants;
  refused after Recruiting done.
- Accept all button on the Education tab and in the overview's Actions,
  with a confirmation that shows the count and explains no email goes
  out until Recruiting done.
Also carries forward the email-resend schemas, the Radix tab test and
the transaction type for Accept all after rebasing on #53.
@VidurShah
VidurShah force-pushed the vidur/education-round branch from 0a6e076 to 3c24361 Compare November 30, 2026 21:48
@VidurShah
VidurShah changed the base branch from vidur/exec-round to main November 30, 2026 21:48
@VidurShah
VidurShah merged commit c40892a into main Nov 30, 2026
1 check passed
@VidurShah
VidurShah deleted the vidur/education-round branch November 30, 2026 21:48
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.

Education round

1 participant