Group Formation

Consent-first group creation with backend guardrails.

The starter layout separates leader actions from invitee actions so the acceptance and rejection workflow can be implemented clearly.

Leader workflow

Create a group and invite by roll number

The final form should validate duplicate invites, block accepted students, and cap Option B teams at four total members.

Invitee workflow

By clicking Accept, you confirm your voluntary participation. You cannot change your group or argue your placement later.

Guardrails

Leader is auto-marked as accepted.
Invited members stay pending until they explicitly accept.
Rejected invites should immediately free the slot.
Pending or accepted students cannot create another group.