fix(projects): render zero Total Budget as "$0" not "$-0" #131

Merged
David merged 2 commits from fix/mapps-145-total-budget-negative-zero into main 2026-06-13 14:51:08 +02:00
Owner

The Projects page summary card formatted the total budget with format!("${total_value:.0}"). When the summed budget is negative zero (or a tiny negative that rounds to zero), Rust's formatter emits a leading minus, producing "$-0". Normalize any value that rounds to zero to positive zero before formatting so the card reads "$0".

#MAPPS-145

The Projects page summary card formatted the total budget with `format!("${total_value:.0}")`. When the summed budget is negative zero (or a tiny negative that rounds to zero), Rust's formatter emits a leading minus, producing "$-0". Normalize any value that rounds to zero to positive zero before formatting so the card reads "$0". #MAPPS-145
fix(projects): render zero Total Budget as "$0" not "$-0"
All checks were successful
Check / clippy + fmt + tests (pull_request) Successful in 2m4s
06fbf70a5d
The Projects page summary card formatted the total budget with `format!("${total_value:.0}")`. When the summed budget is negative zero (or a tiny negative that rounds to zero), Rust's formatter emits a leading minus, producing "$-0". Normalize any value that rounds to zero to positive zero before formatting so the card reads "$0".

#MAPPS-145
Merge branch 'main' into fix/mapps-145-total-budget-negative-zero
All checks were successful
Create release / Create release from merged PR (pull_request) Has been skipped
Check / clippy + fmt + tests (pull_request) Successful in 54s
b3ee98dac3
David merged commit 4f66fbf6ea into main 2026-06-13 14:51:08 +02:00
David deleted branch fix/mapps-145-total-budget-negative-zero 2026-06-13 14:51:08 +02:00
Sign in to join this conversation.
No reviewers
No labels
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
psa-systems/mokosh-apps!131
No description provided.