Skip to content

Migrate pie charts from Recharts to Chart.js#277

Merged
jwaspin merged 13 commits intomainfrom
copilot/migrate-recharts-to-chartjs
Feb 17, 2026
Merged

Migrate pie charts from Recharts to Chart.js#277
jwaspin merged 13 commits intomainfrom
copilot/migrate-recharts-to-chartjs

Conversation

Copy link
Contributor

Copilot AI commented Feb 2, 2026

Summary

Migrate all pie charts from Recharts to Chart.js (react-chartjs-2). Also fixes a bug where dollar values in the SettingsPanel category breakdown showed $0.00 due to using the wrong property name.

Changes

  • Replaced recharts with chart.js and react-chartjs-2 in CategoryBreakdown, SettingsPanel, and CategoryTotals
  • Fixed t.statust.transactionState in SettingsPanel category spending calculations
  • Removed duplicate deleteEncryptedRecord imports and cleaned up import ordering in recurring transaction action files
  • Added package-lock.json to .gitignore
  • Version bump to 2.3.0

Testing

  • pnpm lint
  • pnpm test

Checklist

  • Version updated appropriately in package.json
  • CHANGELOG updated
  • Tests updated/added if needed
  • No console warnings/errors introduced

Related Issues

Manual QA

  • Navigate between Dashboard (/dashboard) and Accounts (/accounts)
  • Create an account via "Create New Account"
  • Verify Material-UI components render correctly
  • Confirm version display appears (vX.Y.Z) and update dialog dismisses
  • Verify pie charts render on CategoryBreakdown, SettingsPanel, and CategoryTotals
  • Verify tooltips show category name and dollar amount on hover
  • Verify SettingsPanel category dollar values display correctly (not $0.00)

Co-authored-by: jwaspin <6432180+jwaspin@users.noreply.github.com>
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Feb 2, 2026

Deploying beta-lucaledger with  Cloudflare Pages  Cloudflare Pages

Latest commit: f60deda
Status: ✅  Deploy successful!
Preview URL: https://ba9626a8.beta-lucaledger.pages.dev
Branch Preview URL: https://copilot-migrate-recharts-to.beta-lucaledger.pages.dev

View logs

Copilot AI and others added 2 commits February 2, 2026 05:47
Co-authored-by: jwaspin <6432180+jwaspin@users.noreply.github.com>
Co-authored-by: jwaspin <6432180+jwaspin@users.noreply.github.com>
Copilot AI changed the title [WIP] Migrate chart components from Recharts to Chart.js Migrate pie charts from Recharts to Chart.js Feb 2, 2026
Copilot AI requested a review from jwaspin February 2, 2026 05:51
@jwaspin jwaspin marked this pull request as ready for review February 15, 2026 06:47
@jwaspin
Copy link
Contributor

jwaspin commented Feb 15, 2026

@copilot Merge main into this branch and fix merge conflicts

…grade)

Co-authored-by: jwaspin <6432180+jwaspin@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Feb 15, 2026

@copilot Merge main into this branch and fix merge conflicts

Merged main into this branch successfully (c1da9c1). Resolved merge conflict in package.json:

  • Kept version 2.3.0-rc.1 for this PR
  • Upgraded @reduxjs/toolkit from 1.9.7 to 2.5.0 (required for react-redux@9.2.0 compatibility)
  • All other dependency updates from main integrated

✅ All 233 tests pass
✅ Linter passes with no warnings

- Upgraded '@reduxjs/toolkit' from 1.9.7 to 2.11.2 and updated peer dependencies accordingly.
- Added 'chart.js' and 'react-chartjs-2' to the project with specified versions.
- Removed unused '@types/d3-*' packages to clean up dependencies.
- Refactored encrypted data handling in actions to directly import 'deleteEncryptedRecord' instead of using dynamic imports.
- Consolidated batch storage logic for accounts, transactions, categories, statements, recurring transactions, and events to improve readability and maintainability.
@jwaspin jwaspin merged commit 419ce48 into main Feb 17, 2026
2 checks passed
@jwaspin jwaspin deleted the copilot/migrate-recharts-to-chartjs branch February 17, 2026 02:19
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.

Migrate from Recharts to Chart.js

2 participants