* Auto-name teams on claim and harden owner-assignment logic - Add claimTeam() model function that atomically sets ownerId + name in a single DB write, replacing the previous two-step assignTeamOwner + renameTeam pattern that could leave partial state on failure - Rename team to "Team <username>" (fallback: displayName, then "Member") when a user joins via invite link or an admin assigns a team owner - Fetch the user record before claiming the team in both paths so we fail fast with a clear error rather than silently skipping the rename - Guard against assigning an already-owned team in the admin settings action (closes #107, closes #76) - Show owner username below team name in draft order settings UI; teams with an owner but no matching user record display "Unknown" Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * Fixing dropdown for admins --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| __tests__ | ||
| $leagueId.draft-board.$seasonId.tsx | ||
| $leagueId.draft.$seasonId.tsx | ||
| $leagueId.server.ts | ||
| $leagueId.settings.tsx | ||
| $leagueId.sports-seasons.$sportsSeasonId.server.ts | ||
| $leagueId.sports-seasons.$sportsSeasonId.tsx | ||
| $leagueId.standings.$seasonId.teams.$teamId.tsx | ||
| $leagueId.standings.$seasonId.tsx | ||
| $leagueId.tsx | ||
| new.tsx | ||