Client computeLiveProjection ignores snowball_exempt bills #60
Labels
No Label
architecture
backend
bug
feature
frontend
priority:critical
priority:high
priority:low
priority:medium
priority:nice-to-have
ux
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: null/BillTracker#60
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: MEH ⚪
Affected Files
client/pages/SnowballPage.jsx—computeLiveProjection()line 43Problem
The client simulation runs over whatever bills array is passed — which is already server-filtered. But if the array ever includes an exempt bill (e.g., a future UI change passes a superset), the client would include it in the projection where the server wouldn't.
This is a minor invariant break with no current user impact, since the server always filters before sending.
Impact
Fix
Add an explicit filter at the start of
computeLiveProjection():This makes the client defensive against future data contract changes.
Acceptance Criteria
computeLiveProjectionexplicitly filters outsnowball_exemptbills