Problem 02
Team Invites + Role Management
Build a team settings page where an owner can invite users, view pending invites, accept invites, and manage roles.
Requirements
- 01Normalize invite email addresses and allow only one active pending invite per team and email.
- 02List members and pending invites with their current role and lifecycle status.
- 03Accept only a valid, unexpired invite token once; cancelled, replaced, or already-used tokens must fail safely.
- 04Authorize role changes and prevent removing or demoting the team's last owner.
- 05Cancel or resend an invite, invalidating any token that it replaces, and confirm destructive actions.
Constraints
- • Submit one compact engineering spec, not implementation code.
- • The generated artifact must use the declared Next.js 16 adapter.
- • Scoring rewards observable behavior and prompt efficiency, not runtime.
Difficulty
expert
Target
18 min
Acceptance
—
Artifact
web