Closed joel-jeremy closed 2 months ago
Name | Link |
---|---|
Latest commit | 7a7c74a9354ef551d09b3eef8381031100f2bba7 |
Latest deploy log | https://app.netlify.com/sites/actualbudget/deploys/66ea641b949c7600082b3a8d |
Deploy Preview | https://deploy-preview-3411.demo.actualbudget.org |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
Hey there, this message comes from a GitHub action that helps you and reviewers to understand how these changes affect the size of this project's bundle.
As this PR is updated, I'll keep you updated on how the bundle size is impacted.
Total
Files count | Total bundle size | % Changed |
---|---|---|
9 | 5.18 MB β 5.18 MB (-4.3 kB) | -0.08% |
Hey there, this message comes from a GitHub action that helps you and reviewers to understand how these changes affect the size of this project's bundle.
As this PR is updated, I'll keep you updated on how the bundle size is impacted.
Total
Files count | Total bundle size | % Changed |
---|---|---|
1 | 1.26 MB β 1.19 MB (-73.57 kB) | -5.69% |
Seems to work well. @Teprifer do you see anything else that needs fixed here?
Seems to work well. @Teprifer do you see anything else that needs fixed here?
I feel bad not picking up on it before. :(
There's something a bit weird with the undo, it needs to be done twice if the note is viewed, this isn't the case in a few days old edge.
To reproduce:
This stacks:
If not clicking the note in between, then only one ctrl+z is required.
Fairly minor overall, but could be come across as ctrl+z not working in niche cases?
Cheers for fixing the ctrl+z.
I, uh, mis-clicked when testing and found a difference in transfer behaviour to Edge:
In Edge if you click a category to assign the funds to another category and select the source category as the destination category nothing happens. In this PR it'll allocate the transfer value again to that category, pulling from To Budget (obviously).
This PR:
Transfer food to food:
Result:
Cheers for fixing the ctrl+z.
I, uh, mis-clicked when testing and found a difference in transfer behaviour to Edge:
In Edge if you click a category to assign the funds to another category and select the source category as the destination category nothing happens. In this PR it'll allocate the transfer value again to that category, pulling from To Budget (obviously).
This PR:
Transfer food to food:
Result:
Nice catch! I've hidden the source category in the transfer menu and cover menus.
@joel-jeremy Has that change been pushed to github? Or has the netlify build not updated? The source category is still showing for me.
Food (transfer)
I checked cover too, but trying to cover a negative with itself doesn't result in any note or change in budget, so this menu option is as expected. Clothing (cover)
@joel-jeremy Has that change been pushed to github? Or has the netlify build not updated? The source category is still showing for me.
Food (transfer)
I checked cover too, but trying to cover a negative with itself doesn't result in any note or change in budget, so this menu option is as expected. Clothing (cover)
Thank you for the testing it out! Sorry, I missed an if condition on the new utility method. Should be fixed now.
All good, familiar with the "oh that one other bit". Checks out functionality wise so should be good for a code review I think?
The changes in this pull request primarily focus on enhancing the handling of category management within various components of the application. Key modifications include the introduction of a new categoryId
prop in several modals and menus, the removal of outdated props, and the refactoring of logic to improve clarity and maintainability. Additionally, new utility functions have been added to facilitate category filtering, and changes have been made to ensure budget movements are logged effectively.
Files | Change Summary |
---|---|
packages/desktop-client/src/components/Modals.tsx |
Added categoryId prop to TransferModal and CoverModal , removed category from CoverModal . |
packages/desktop-client/src/components/budget/rollover/BalanceMovementMenu.tsx |
Removed useBudgetTransferNotes hook, simplifying budget transfer note management. |
packages/desktop-client/src/components/budget/rollover/CoverMenu.tsx |
Introduced removeCategoriesFromGroups utility function, renamed category to categoryId , and adjusted state management for clarity. |
packages/desktop-client/src/components/budget/rollover/TransferMenu.tsx |
Added categoryId prop, refined category filtering logic, and updated state management for category selection. |
packages/desktop-client/src/components/budget/util.ts |
Added removeCategoriesFromGroups function for dynamic category management. |
packages/desktop-client/src/components/mobile/budget/BudgetTable.jsx |
Updated modal invocation parameters from category to categoryId for clarity. |
packages/desktop-client/src/components/modals/CoverModal.tsx |
Updated CoverModalProps to include categoryId , simplified category filtering logic. |
packages/desktop-client/src/components/modals/TransferModal.tsx |
Added categoryId prop, refined category filtering logic for transfers. |
packages/loot-core/src/client/state-types/modals.d.ts |
Added optional categoryId properties to transfer and cover modal types. |
packages/loot-core/src/server/budget/actions.ts |
Introduced addMovementNotes function for logging budget movements. |
packages/loot-core/src/server/db/index.ts |
Modified getCategories and getCategoriesGrouped functions to include optional filtering by IDs. Added toSqlQueryParameters utility function. |
packages/loot-core/src/server/notes/app.ts |
Refactored notes-save method to use a new updateNotes function for better maintainability. |
upcoming-release-notes/3411.md |
Introduced functionality for "undoable auto transfer notes" and "auto notes for cover." |
Objective | Addressed | Explanation |
---|---|---|
Bug: Money moves tracking isn't undone on ctrl+z (Issue #3404) | β | The changes do not address the issue of notes remaining after an undo operation. |
categoryId
prop as both enhance category-related data management.merged
, enhancement
π In the garden where numbers play,
New props and functions lead the way.
WithcategoryId
shining bright,
Budgeting's clearer, what a delight!
So hop along, let changes flow,
In this realm of finance, letβs grow! πΌ
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
All good, familiar with the "oh that one other bit". Checks out functionality wise so should be good for a code review I think?
Had to rebase to resolve a conflict. Should be good for code review :)
All good, familiar with the "oh that one other bit". Checks out functionality wise so should be good for a code review I think?
Had to rebase to resolve a conflict. Should be good for code review :)
Haha, well, I'm sure a code review would've picked that up - I was more indicating to others as you don't want me pretending I can code review. :)
Resolves https://github.com/actualbudget/actual/issues/3404