MOPC-App/prisma
Matt 6d2537ec04
Build and Push Docker Image / build (push) Successful in 9m41s Details
Add per-round assignment constraints (min/max per judge)
- Add minAssignmentsPerJuror and maxAssignmentsPerJuror fields to Round model
- Update assignment router:
  - Calculate effective max from user override or round default
  - Add forceOverride parameter for manual assignment beyond limits
  - Update getSuggestions to use round constraints with min target bonus
  - Update getAISuggestions to pass constraints to AI service
- Update AI assignment service:
  - Add minAssignmentsPerJuror to constraints interface
  - Update fallback algorithm with under-min bonus scoring
  - New score weights: 50% expertise, 30% load, 20% under-min bonus
- Update round router:
  - Add new constraint fields to create/update schemas
  - Add validation for min <= max constraint
- Update admin UI:
  - Add min/max constraint fields to round edit page
  - Remove hardcoded maxPerJuror from assignments page
- Add migration files for production deployment:
  - User.bio field for judge/mentor profiles
  - Round assignment constraint fields

Constraint hierarchy:
1. User.maxAssignments (if set) overrides round default
2. Round.maxAssignmentsPerJuror is the default cap
3. Admin can force-override any limit with confirmation

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-04 16:01:18 +01:00
..
migrations Add per-round assignment constraints (min/max per judge) 2026-02-04 16:01:18 +01:00
check-data.ts Remove dynamic form builder and complete RoundProject→roundId migration 2026-02-04 14:15:06 +01:00
cleanup-all-dummy.ts Remove dynamic form builder and complete RoundProject→roundId migration 2026-02-04 14:15:06 +01:00
cleanup-dummy.ts Remove dynamic form builder and complete RoundProject→roundId migration 2026-02-04 14:15:06 +01:00
schema.prisma Add per-round assignment constraints (min/max per judge) 2026-02-04 16:01:18 +01:00
seed-candidatures.ts Remove dynamic form builder and complete RoundProject→roundId migration 2026-02-04 14:15:06 +01:00
seed-expertise-tags.ts Add unified expertise tag system and round entry notifications 2026-02-04 01:15:21 +01:00
seed-jury-assignments.sql Initial commit: MOPC platform with Docker deployment setup 2026-01-30 13:41:32 +01:00
seed-jury-demo.sql Initial commit: MOPC platform with Docker deployment setup 2026-01-30 13:41:32 +01:00
seed-jury-demo.ts Remove dynamic form builder and complete RoundProject→roundId migration 2026-02-04 14:15:06 +01:00
seed-notification-settings.mjs Add multiple admin improvements and bug fixes 2026-02-03 23:19:45 +01:00
seed-notification-settings.ts Add notification bell system and MOPC onboarding form 2026-02-03 21:30:25 +01:00
seed.ts Update seed: real admin accounts, remove all dummy data 2026-01-30 16:40:07 +01:00
set-admin-pw.sql Initial commit: MOPC platform with Docker deployment setup 2026-01-30 13:41:32 +01:00