- Fix sports seasons not updating when saving league settings. The form submits intent="update" but sports were only handled under the dead intent="update-sports" branch, which nothing called. - Fix spurious audit log entries (scoring rules, draft settings) firing on every settings save. Change detection now compares submitted values against current DB values before adding to seasonUpdates. - Add previousValues to scoring_rules_changed and draft_settings_changed audit log entries so the detail formatter can show old → new diffs (e.g. "Scoring updated: 1st: 100 → 105"). - Add sports_changed audit action (migration 0076) with sport names resolved at log time. Batch-fetch added sports in one query instead of N individual queries. - Improve audit log display for all action types: field-level old→new diffs, readable labels, truncated sport lists (+N more). Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| context.browser-stub.ts | ||
| context.ts | ||
| schema.ts | ||