summaryrefslogtreecommitdiff
path: root/internal/task/task_test.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-02-28 09:56:33 +0200
committerPaul Buetow <paul@buetow.org>2026-02-28 12:50:12 +0200
commitd2cc2def17b58da762d88090c0c298dc2e87dd1d (patch)
tree354259359f7e9d21166a61cdafd22d0d0a4a83ee /internal/task/task_test.go
parent2dc3e8caf088c01169080ca381454c653d4af4ad (diff)
fix(ui): remove double-render of expandedCellView in View()
Bugfix task (UUID d04dccbd): expandedCellView() was called once unconditionally in the base JoinVertical and again inside the cellExpanded guard, producing a duplicate expanded-cell line whenever the user toggled cell expansion. Fix: remove the unconditional call; expand only when cellExpanded is true. Also corrected updateTableHeight() which still reserved an extra row for the now-removed base expanded line (windowHeight-3 → windowHeight-2). Added regression test TestExpandedCellViewNoDoubleRender that verifies the expanded content is absent when cellExpanded is false and appears exactly once when true. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'internal/task/task_test.go')
0 files changed, 0 insertions, 0 deletions