Skip to content

Conversation

@Azzbo77
Copy link
Contributor

@Azzbo77 Azzbo77 commented Feb 2, 2026

Adds the ability to break down retirement savings with a new card that allows users to manage individual items (e.g., pension accounts, investment accounts, savings).

Changes:

  • New RetirementBreakdownCard component for CRUD operations on breakdown items
  • Updated RetirementSavingsCard to display total (base amount + breakdown items) with real-time sync
  • New toggle in Settings page to enable/disable the breakdown feature with help modal
  • UIPreferencesContext enhanced to persist feature preference
  • Dashboard now displays both retirement savings card (top) and breakdown card (bottom)
  • Settings accessible from both Dashboard and Summary pages with correct navigation

@cachebag cachebag added feature A new feature to the application (backend or frontend). frontend Frontend changes. labels Feb 3, 2026
Copy link
Owner

@cachebag cachebag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice! Could you address CI?

@Azzbo77
Copy link
Contributor Author

Azzbo77 commented Feb 3, 2026

Fix frontend CI test failures

The linting checks were failing due to several issues in the retirement savings components:

RetirementBreakdownCard.tsx:

Fixed impure function warning by wrapping Date.now() in a helper function
Moved localStorage initialization from useEffect to useState lazy initializer
Replaced as any type casts with proper Event type checking
RetirementSavingsCard.tsx:

Fixed setState in effect by using useState lazy initializer for localStorage
Replaced as any type casts with proper Event type checking
ID Generation:

Updated to use Date.now().toString() for timestamp-based IDs (consistent with CustomSavingsGoals)
Note: Did not modify CustomSavingsGoals to match

@cachebag cachebag merged commit a5de800 into cachebag:master Feb 3, 2026
3 checks passed
@Azzbo77 Azzbo77 deleted the Feature/retirement-card-optional-with-info branch February 4, 2026 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature A new feature to the application (backend or frontend). frontend Frontend changes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants