Background
When a BasicField enum value has no corresponding case in the MemoFieldDrawerContent method switch statement, the drawer silently falls through to the default branch and renders raw dev placeholder text (TODO: Insert field options here) visible to any admin user.
Goal
The edit drawer never shows raw placeholder text to users — unhandled field types either render the correct Edit component or fail with a clear, user-facing error state.
Acceptance Criteria
Notes
Affected file: apps/frontend/src/features/admin-form/create/builder-and-design/BuilderAndDesignDrawer/EditFieldDrawer/EditFieldDrawer.tsx
Background
When a
BasicFieldenum value has no correspondingcasein theMemoFieldDrawerContentmethod switch statement, the drawer silently falls through to thedefaultbranch and renders raw dev placeholder text (TODO: Insert field options here) visible to any admin user.Goal
The edit drawer never shows raw placeholder text to users — unhandled field types either render the correct Edit component or fail with a clear, user-facing error state.
Acceptance Criteria
defaultbranch inMemoFieldDrawerContentmethod no longer renders<div>TODO: Insert field options here</div>const _exhaustiveCheck: never = field.fieldType) is added so missingcaseentries are caught at compile timetsc --noEmitfails when a newBasicFieldvalue is added without a correspondingcaseNotes
Affected file:
apps/frontend/src/features/admin-form/create/builder-and-design/BuilderAndDesignDrawer/EditFieldDrawer/EditFieldDrawer.tsx