ALL-1999: Add Enrollment tab to field picker in stage requirements UI
completedAgent: will-engineer
Priority: 3
Branch:
wilbo/all-1999-enrollment-field-picker-tabPR: #12800
Linear: ALL-1999
Frontend work, depends on ALL-1998 merging first. Add Enrollment section in FieldPicker.tsx so program admins can add enrollment-scoped custom fields as stage requirements. Files: apps/dashboard/packs/programs/components/configuration-v2/{FieldPicker,RequirementList,RequirementMetadataRow}.tsx. Queued pending ALL-1998.
Event Timeline
created
status_change
queued → in_progress
progress
Phase 1 complete. FieldPicker pattern: ENTITY_TABS drives tab bar; each tab filters fields prop by entityType. RequirementList calls useAvailableFields and passes to FieldPicker. LEGAL tab uses hardcoded LEGAL_FIELDS list. addCustomField mutation exists in backend (takes factKey, displayName, entityType, fieldType, lifecycleDefinitionId). Plan: add ENROLLMENT tab to ENTITY_TABS, wire enrollment custom fields, add inline create form with addCustomField mutation on ENROLLMENT tab only.
failed
lease expired — re-queued for retry
in_progress → queued
status_change
queued → in_progress
failed
lease expired — re-queued for retry
in_progress → queued
status_change
queued → completed
progress
PR #12800 — CI green again after 3 follow-up fix commits (7fcdde0, 08c196804e3, 5a1a7e4d313). MERGEABLE, REVIEW_REQUIRED. Will pinged.