Task: Codegen field mappers from entity models
This page documents a task in the Consolidate history dialogs onto HistoryDialogBase story. It captures the goal, current status, acceptance, and any notes or results.
Goal
Deferred: generate the per-entity field-string mappers from the entity org models, which already know field names, labels and types. Only after the hand-written currency shape is proven and the codegen org-model migration is complete.
Status
| Field | Value |
|---|---|
| State | BACKLOG |
| Parent story | Consolidate history dialogs onto HistoryDialogBase |
| Now | Not yet started. |
| Waiting on | Nothing. |
| Next | Begin implementation. |
| Last touched | 2026-06-05 |
Acceptance
- Mappers generated for all entities with history support.
- Hand-written mappers retired.
- Zero-diff guardrails green.
Plan
- Add a mapper template to ores.codegen mirroring the hand-written currency mapper.
- Derive labels/formatting from model properties; extend models where display metadata is missing.
- Replace hand-written mappers with generated ones, zero-diff where the hand-written shape was followed.
Notes
PRs
| PR | Title |
|---|---|
Review
| Comment summary | File | Decision | Notes |
|---|---|---|---|