Commits
- [C1] Add null guard on agent_id before queue promotion in complete handler
- [C2] Replace two-step agent lookup+insert with atomic CTE in POST /attendances; remove unused findAvailableAgent/nextQueuePosition imports
- [I1] Return 404 when DELETE /agents/:id target does not exist
- [I2] Add Team generic to teams.ts .all() call
- [I4] Wrap load/handleCreate in try/catch in Agents.tsx and Attendances.tsx; surface errors in UI
- [M2] Add apps/web/src/**/*.js to .gitignore
- [M3] Validate team_id exists before INSERT in POST /agents
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- [C1] Add null guard on agent_id before queue promotion in complete handler
- [C2] Replace two-step agent lookup+insert with atomic CTE in POST /attendances; remove unused findAvailableAgent/nextQueuePosition imports
- [I1] Return 404 when DELETE /agents/:id target does not exist
- [I2] Add Team generic to teams.ts .all() call
- [I4] Wrap load/handleCreate in try/catch in Agents.tsx and Attendances.tsx; surface errors in UI
- [M2] Add apps/web/src/**/*.js to .gitignore
- [M3] Validate team_id exists before INSERT in POST /agents
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>