Files
evig/scripts
Mao NakamotoandClaude Opus 4.8 a64fc52ba6 fix(it-hilfe): unblock community-tech matching + fix offer_count/SSOT bugs
- A1 (critical): the new-request match fan-out was gated on isVerified=true, so
  self-serve COMMUNITY technicians (the persona this feature targets, default
  is_verified=false with no self-serve verification) never got notified — the
  discovery loop silently failed for them. Notify all ACTIVE skill-matched techs;
  verified stays a trust badge, not a notification gate.
- A2: offer_count had two writers (DB trigger from migration 090 + the API),
  double-counting every fresh offer. Migration 100 drops the trigger fn CASCADE
  (app is now the sole writer; it handles insert/resurrect/withdraw) and
  reconciles existing counts; the offers POST now wraps the offer write + count
  bump in one transaction. Also fixes dev/prod parity (dev push has no triggers).
- A3: onboarding checklist linked to the non-existent /dashboard/repairer (404)
  → /dashboard/techniker.
- A4: repairer_profiles.profile_tier defaulted to 'professional' (opposite of the
  self-serve community model) → default 'community' (migration + schema).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-29 08:38:06 +02:00
..