Skip to content

Conversation

@MatissJanis
Copy link
Member

No description provided.

- Implemented getCategoryMappings to retrieve mappings of old category IDs to merged category IDs, handling cases where the database is not initialized or the category_mapping table does not exist.
- Updated getTransactions and getBudgetedAmounts functions to resolve category IDs through the merge chain, ensuring accurate category representation in transactions and budget calculations.
- Added unit tests for getCategoryMappings to verify its behavior under various scenarios, including database initialization and table existence.
- Enhanced data transformation tests to ensure transactions are correctly categorized under merged categories.
@netlify
Copy link

netlify bot commented Jan 4, 2026

Deploy Preview for actual-wrapped ready!

Name Link
🔨 Latest commit 45273cd
🔍 Latest deploy log https://app.netlify.com/projects/actual-wrapped/deploys/695c2775c5c7bb0008b3d7e3
😎 Deploy Preview https://deploy-preview-7--actual-wrapped.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

- Removed category mapping resolution for budget calculations, simplifying the logic by directly using category IDs.
- Updated comments for clarity on budget accumulation by category and month.
- Enhanced performance by eliminating unnecessary mapping operations related to merged categories.
…ove category handling

- Updated the BudgetVsActualPage component to filter out deleted categories and groups, ensuring they are not displayed in the UI.
- Enhanced the logic for grouping and sorting categories, maintaining only active categories and special cases.
- Modified related tests to verify the correct filtering behavior and ensure that deleted categories do not appear in the selection options.
- Improved data transformation logic to prevent the inclusion of non-existent categories in budget calculations.
@MatissJanis MatissJanis merged commit 41c1708 into main Jan 5, 2026
8 checks passed
@MatissJanis MatissJanis deleted the matiss/category-merges branch January 5, 2026 21:05
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.

2 participants