Commit Graph
1 Commits
Author SHA1 Message Date
Mao NakamotoandClaude Opus 4.8 3b1178ab69 refactor(teams): extract useAsyncAction hook (DRY) + David rename + example seed
- useAsyncAction: the run(key,fn){busy;error;refresh} pattern was copy-pasted
  across 8 team components. Extract one hook (SSOT); adopt it in the 3 new
  coordination components (Goals/Metrics/JoinButton).
- Placeholder Dana → David (Dani = Daniel; keep gender). Email + seed updated;
  stale "Platzhalter surname is the marker" comment corrected (email domain is
  the only marker now).
- scripts/db/seeds/team-coordination-examples.sql: example goals + KPIs on the
  Reparatur team so the hub isn't empty (idempotent; editable rows).

Verified: typecheck + lint (0 errors). Prod DB updated.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-14 19:15:58 +02:00