Negative points balances render inconsistently across ledgers #122

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

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

Web has 3 balance ledgers: PointsChip and Rewards clamp at 0, Today.tsx:419 does not. Android mirrors this: only the header chip (TopBar.kt:182) clamps. A member whose spends exceed claims sees "-5 points" on one board and "0" in the header, on both platforms.

Fix: one shared balance function per surface, one clamping decision. See also the consolidation issues for shared points formatters.

From the surface parity report (2026-08-18), defect 13. Web has 3 balance ledgers: `PointsChip` and Rewards clamp at 0, `Today.tsx:419` does not. Android mirrors this: only the header chip (`TopBar.kt:182`) clamps. A member whose spends exceed claims sees "-5 points" on one board and "0" in the header, on both platforms. Fix: one shared balance function per surface, one clamping decision. See also the consolidation issues for shared points formatters.
Author
Owner

Delivered across PR #145 (web) and PR #146 (Android), both merged. Ruling recorded: a display balance is what you can spend, so every ledger clamps at 0 — web through points.ts balanceOf, Android through RewardsRepository.balanceOf, with the zero-balance strip hidden. The TUI's bounty math was fixed in PR #147's shared rows.

Delivered across PR #145 (web) and PR #146 (Android), both merged. Ruling recorded: a display balance is what you can spend, so every ledger clamps at 0 — web through points.ts balanceOf, Android through RewardsRepository.balanceOf, with the zero-balance strip hidden. The TUI's bounty math was fixed in PR #147's shared rows.
nalum closed this issue 2026-08-18 16:47:10 +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#122
No description provided.