feat: team placement congratulations email endpoint #126
Labels
No labels
domain:backend
domain:devops
domain:frontend
status:approved
status:in-progress
status:needs-fix
status:qa
type:bug
type:devops
type:feature
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
forgejo_admin/basketball-api#126
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Type
Feature
Lineage
plan-wkq→ Phase 11 → Issue #118 (send team announcement email)Repo
forgejo_admin/basketball-apiUser Story
As an admin
I want to send a congratulations email to all boy players' parents
So that families know their team assignment, coach, and teammates
Context
After boys tryout team placements are finalized, parents need a branded congratulations email. The email infrastructure already exists (Gmail client,
_brand_wrapper(), EmailLog). Need a new email function and admin endpoint. For multi-team players, the email should list all assigned teams.File Targets
Files the agent should modify or create:
src/basketball_api/services/email.py— addsend_team_announcement_email()function using existing_brand_wrapper()src/basketball_api/routes/admin.py— addPOST /admin/email/team-announcementendpointsrc/basketball_api/models.py— addteam_announcementtoEmailTypeenum if not presentFiles the agent should NOT touch:
routes/teams.py— no team logic changesAcceptance Criteria
/admin/email/team-announcement, each parent receives one email per playeremail_logtableTest Expectations
pytest tests/ -vConstraints
_brand_wrapper()andget_gmail_client()patterns from email.pyChecklist
Related
Westside Basketball— projectClosing — stale. Teams were announced weeks ago. Placement emails were never built and the moment has passed. If needed for future seasons, create a new ticket.