refactor(ui): model Team setup as reducer state (#1553)
## Description Introduces one discriminated `SetupSessionState` and exhaustive reducer for Team setup lifecycle, commands, scoped errors, navigation, and completion. Stale async outcomes are discarded by generation and server action gates are enforced before effects are queued. Part 2 of codemem-752i.4. ## Type of Change - [ ] ๐ Feature (new functionality) - [x] ๐ Bug fix (fixes an issue) - [ ] ๐ Documentation (docs-only change) - [x] ๐ง Maintenance (refactor, chore, CI, etc.) - [ ] ๐งช Testing (test-only changes) ## Testing - [x] Direct reducer transition, stale-generation, gate, retry, and completion tests - [x] `pnpm run tsc` - [x] `pnpm run lint` ## Checklist - [x] Code follows project style - [x] Self-review completed - [x] No new warnings introduced
A
Adam Kunicki committed
249dc3881088b8752917019cfd0ce8e48fc68998
Parent: dd323c8
Committed by GitHub <noreply@github.com>
on 9/1/2026, 2:26:45 AM