Task: Adopt the base in the history-dialog template and roll out

Table of Contents

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

Bring the 61 generated history dialogs onto the target form: the base renders fields and changes straight from the response, and the per-entity dialogs shrink to generated declarations.

Gated on the codegen org-model migration: this task must not force codegen changes while entity models migrate. It proceeds component by component as each component's models settle, or waits for the migration to 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

  • All generated history dialogs derive from the base; no duplicated pipeline remains.
  • Interim template method and helpers removed.
  • History responses no longer ship full domain payloads.
  • Zero-diff regeneration checks green.

Plan

  1. Update cpp_qt_history_dialog.{hpp,cpp}.mustache and qt_history_dialog_ui.mustache: derive from HistoryDialogBase target form; remove the duplicated pipeline.
  2. Per domain: add the entity field mappers and extend the history handlers (mechanical application of the pilot pattern).
  3. Regenerate per component; zero-diff guardrails catch drift.
  4. Remove the interim calculateDiff machinery from the base once no dialog uses it; drop full domain payloads from history responses once no client reads them.

Notes

PRs

PR Title
   

Review

Comment summary File Decision Notes
       

Result

Emacs 29.1 (Org mode 9.6.6)