Extract PickList wrapper from elements index

This commit is contained in:
2026-04-08 08:12:40 +01:00
parent 30bd8c49da
commit 6c387fa6fb
3 changed files with 58 additions and 24 deletions
+27
View File
@@ -3585,3 +3585,30 @@ Validation:
Follow-ups:
- Continue bounded no-behavior-change slices by removing dead locals/comments and extracting one additional low-risk field wrapper at a time.
---
### CL-101: 22500 `PickList` wrapper extraction from `components/elements/index.js`
date: 2026-04-08
author: Cline
scope: `components/elements/index.js`, `components/elements/fields/pickListField.js`
type: change
rationale: Execute one bounded Phase 2 renderer/wrapper extraction slice by moving the `PickList` wrapper out of the elements monolith into a dedicated field module.
impact: No intended behavior change; preserves existing EN/CY translation behavior and validation wiring while reducing `index.js` size/coupling.
status: completed
Summary:
- Added `components/elements/fields/pickListField.js` and moved the existing `PickList` wrapper implementation.
- Updated `components/elements/index.js` to import/export `PickList` from the new field module.
- Removed inline `PickList` wrapper implementation from `index.js`.
- Removed now-unused `RenderPickList` import from `index.js` after extraction.
Validation:
- `npx eslint components/elements/index.js components/elements/fields/pickListField.js` -> pass
Follow-ups:
- Continue bounded no-behavior-change slices by extracting one additional low-risk wrapper (e.g., `CheckBoxfield`) or removing dead locals/debug logging in place.