Mortgage category not auto-detected as debt (snowball DEBT_LIKE_CLAUSES gap) #50
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#50
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: HIGH 🟠
Affected Files
routes/snowball.js—DEBT_LIKE_CLAUSES(line 13–16)client/pages/SnowballPage.jsx—mortgageIncludedwarning logicProblem
The debt detection in
routes/snowball.jsuses:A category named "Mortgage" or "Housing" matches none of these patterns. The bill only appears on the snowball page if the user manually toggles
snowball_include = 1.The seed data sets
snowball_include: trueon the mortgage bill so demos work fine. But a real user who creates a bill under a "Mortgage" category and doesn't toggle the flag will never see it on the snowball page.Meanwhile, the frontend's
mortgageIncludedwarning logic inSnowballPage.jsximplies this was intended to auto-detect mortgage categories.Impact
snowball_includeis pre-setFix
Add mortgage and housing patterns to
DEBT_LIKE_CLAUSES:Also consider matching against
bill_namefor bills named "Mortgage" or "Rent".Acceptance Criteria
snowball_includemanual toggle still worksmortgageIncludedwarning logic is consistent with backend detection