TUI: Today tab leaks raw reward enums and disagrees on bounty math #126

Closed
opened 2026-08-18 10:45:24 +00:00 by nalum · 1 comment
Owner

From the surface parity report (2026-08-18), defect 16.

  1. tui/today.go:557-566 bypasses rewardLine and prints the raw enum tail uppercase (PRIVILEGE, CURRENCY) where the Rewards tab prints "privilege". Currency rewards lose their € prefix.
  2. Bounty math disagrees between tabs: today.go:155 worthOf sums all linked POINTS rewards, jobs.go:112 rewardFor takes only the first. The same job can show two different point values on two tabs.

Fix: hoist rewardLine and one worth function; both tabs consume them (see the TUI consolidation issue).

From the surface parity report (2026-08-18), defect 16. 1. `tui/today.go:557-566` bypasses `rewardLine` and prints the raw enum tail uppercase (`PRIVILEGE`, `CURRENCY`) where the Rewards tab prints "privilege". Currency rewards lose their `€` prefix. 2. Bounty math disagrees between tabs: `today.go:155` `worthOf` sums all linked POINTS rewards, `jobs.go:112` `rewardFor` takes only the first. The same job can show two different point values on two tabs. Fix: hoist `rewardLine` and one worth function; both tabs consume them (see the TUI consolidation issue).
Author
Owner

Delivered in PR #147 (merged): the TUI's shared rows.go renders rewards through rewardLine (plain-language kinds, no raw enums) and worthOf sums bounty math the same way the other surfaces do. tmux-verified live.

Delivered in PR #147 (merged): the TUI's shared rows.go renders rewards through rewardLine (plain-language kinds, no raw enums) and worthOf sums bounty math the same way the other surfaces do. tmux-verified live.
nalum closed this issue 2026-08-18 16:47:11 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
eagraiclainne/app#126
No description provided.