Fix string truncation overflow across the system
Audited all varchar-limited columns vs code that generates values for them:
- BranchForm: validation was max:20 but column is varchar(10) — fixed
- ActivityService: Str::slug output now capped at 90 chars (column is 100)
- TrainingProgramService: same slug truncation fix
- SetupWizard: slug generation for activities/programs also truncated
- Logout: removed navigate:true (app→guest layout cross breaks)
Affected columns and their limits:
branches.code = varchar(10) ✓ fixed
training_groups.code = varchar(10) ✓ already validated
activities.slug = varchar(100) ✓ now truncated
training_programs.slug = varchar(100) ✓ now truncated
Co-Authored-By:
Claude Opus 4.6 <noreply@anthropic.com>
Showing
Please register or sign in to comment