Skip to content

Commit 1a278c3

Browse files
committed
docs(TD-3): record load_config colour-cascade table-driving (592 -> 496)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 567b6df commit 1a278c3

1 file changed

Lines changed: 13 additions & 3 deletions

File tree

TECH-DEBT.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,19 @@ guarded by the form behaviour net, which was first strengthened with three new
3737
pty tests (t/29 fields/nav/separator/boolean, t/30 F2-list/F5-preview,
3838
t/31 TAB-cycle/Save) — test count 351 → 366. The remaining `do_form` bulk is the
3939
per-call helper closures (kept as closures to preserve the M7 "won't stay
40-
shared" fix) and setup/teardown. Still open under TD-3: the other big subs
41-
(`run_browse` 543, `load_config` 582, `do_list`, `do_menu`, `load_form`) and the
42-
`ccfe.pl` perltidy pass + CI-gate decision.
40+
shared" fix) and setup/teardown.
41+
42+
`load_config` broken up **592 → 496 lines**: the ~20-arm colour/attribute
43+
cascade across `field_attr{}`/`active_field_attr{}`/`menu_global{}`/
44+
`browser_global{}` is now four name→cfg-key maps + an `apply_attr_section()`
45+
helper (overlaps the done TD-1d `attr_value`). Verified semantically verbatim
46+
(t/06, t/15, plus a direct cfg-value check that each section applies its
47+
configured `COLOR_PAIR` to the right key while a bogus key still errors).
48+
49+
Still open under TD-3: the other big subs (`run_browse` 543 — the tangled one,
50+
with nested *named* subs and a select-based I/O loop; `do_list`, `do_menu`,
51+
`load_form`) and the `ccfe.pl` perltidy pass + CI-gate decision (a policy call
52+
on perltidy/perlcritic severity for the legacy file).
4353

4454
---
4555

0 commit comments

Comments
 (0)