diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-05 09:39:40 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-05 09:39:40 -0500 |
| commit | e44bcad835f998f35d22aa1d6fa2a879eb843a87 (patch) | |
| tree | 214e4c20377f6948b5a79197d2d413bc8d42ad27 /test-from-git | |
| parent | 4a4294dbb0c6102d31925641fc93d47320dc75a0 (diff) | |
| download | org-drill-e44bcad835f998f35d22aa1d6fa2a879eb843a87.tar.gz org-drill-e44bcad835f998f35d22aa1d6fa2a879eb843a87.zip | |
refactor: split org-drill-final-report into format helpers
org-drill-final-report was 95 lines, dominated by two big format
calls (the main summary and the low-pass-rate WARNING) plus an
inlined queue-tag pattern that propertized 5 different counts in
the same shape.
Extracted three helpers:
- org-drill--queue-tag: builds a propertized 'N label' string for
one queue (failed / overdue / new / young / old). Replaces 5
inlined propertize calls.
- org-drill--build-final-report-summary: takes the session, and
returns the formatted main summary string.
- org-drill--build-low-pass-warning: takes the session and pass-
percent, returns the formatted warning string.
org-drill-final-report becomes a 12-line orchestrator that wires
the helpers together with the wait-and-read loop.
Diffstat (limited to 'test-from-git')
0 files changed, 0 insertions, 0 deletions
