Fixes #224 * Add inline edit for participant names on admin sports season page Adds a pencil icon button next to each participant's delete button. Clicking it switches the row into edit mode with an input field, a save (checkmark) and cancel (X) button. Escape also cancels. Submits via intent="update-name" and validates uniqueness within the season before persisting. https://claude.ai/code/session_01Q94DWQ1HZEB9PJhGMArU8D * Simplify edit state and surface edit errors to user - Combine editingId + editingName into single editing: { id, name } | null state object - Extract cancelEdit() helper called in 3 places instead of repeating setEditing(null) - Tag all update-name action responses with intent: "update-name" so errors can be identified and routed correctly - Show update-name errors inline below the edit input - Guard single-add and bulk-add error displays against showing update-name errors https://claude.ai/code/session_01Q94DWQ1HZEB9PJhGMArU8D --------- Co-authored-by: Claude <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 | ||