Skip to content

fix(ui): overall track status should factor in after-tax status - #35

Merged
halfguru merged 1 commit into
mainfrom
fix/after-tax-status-sync
Aug 21, 2026
Merged

fix(ui): overall track status should factor in after-tax status#35
halfguru merged 1 commit into
mainfrom
fix/after-tax-status-sync

Conversation

@halfguru

Copy link
Copy Markdown
Owner

This PR fixes a logical discrepancy in the SummaryCard overall status reporting.

Bug:

If a user was on-track for their pre-tax target (100% progress) but had an after-tax gap (e.g. 98% progress due to RRSP tax rates), the card still painted itself green, showed the "You're on Track!" check icon/header, but printed a "Save an additional $X/year" warning callout at the bottom.

Fix:

Defined isOverallOnTrack which checks both pre-tax progress and after-tax progress (when a tax rate is active). The card's background color, header icon, and status title text now accurately reflect your combined track status.

@halfguru
halfguru merged commit 6d09c04 into main Aug 21, 2026
2 checks 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.

1 participant