* 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> |
||
|---|---|---|
| .. | ||
| components | ||
| contexts | ||
| hooks | ||
| lib | ||
| models | ||
| routes | ||
| services | ||
| test | ||
| types | ||
| utils | ||
| welcome | ||
| app.css | ||
| entry.client.tsx | ||
| entry.server.tsx | ||
| root.tsx | ||
| routes.ts | ||