Skip to content

Round fractional absence counts on absence tracking page - #256

Merged
buzz-code merged 1 commit into
mainfrom
claude/cool-knuth-2770g0
Nov 1, 2026
Merged

buzz-code merged 1 commit into
mainfrom
claude/cool-knuth-2770g0

Conversation

@buzz-code

Copy link
Copy Markdown
Owner

Absence counts are fractional, so the absence tracking page showed raw float sums like 9.600000000000001 מעל הסף. Adds formatNumber (max one decimal) and uses it for every count on the page: threshold labels, per-student unapproved/lessons/approved line, subject chips, drill-down table and absence dates, summary tile hint.

Tests: yarn test src/pivots/AbsenceTrackingList.test.jsx src/utils/absenceTracking.test.js pass, including new formatNumber test.


Generated by Claude Code

Counts like 9.600000000000001 showed raw float sums; display them with at most one decimal.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012GTictnqhUF9xceB6t8spc
@buzz-code
buzz-code merged commit 8f21276 into main Nov 1, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants