feat: make responsiblePerson required on project creation/edit
- Zod schema: responsiblePerson now min(1) required, no longer optional - ProjectModal: required indicator (*), HTML required attribute, no undefined fallback - ProjectWizard: same fix for create flow - Existing projects with null responsiblePerson still work (DB allows null) - Validation enforced at API boundary on new creates/updates Co-Authored-By: claude-flow <ruv@ruv.net>
This commit is contained in:
@@ -1089,7 +1089,7 @@ export function ProjectWizard({ open, onClose }: ProjectWizardProps) {
|
||||
endDate: new Date(state.endDate),
|
||||
staffingReqs: state.staffingReqs,
|
||||
status: state.saveAsDraft ? ProjectStatus.DRAFT : ProjectStatus.ACTIVE,
|
||||
responsiblePerson: state.responsiblePerson.trim() || undefined,
|
||||
responsiblePerson: state.responsiblePerson.trim(),
|
||||
blueprintId: state.blueprintId ?? undefined,
|
||||
dynamicFields: {},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user