-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sort Transactions on Accounts Page #1232
Conversation
update merge
✅ Deploy Preview for actualbudget ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Bundle Stats - desktop-clientHey 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
Changeset
View detailed bundle breakdownAdded No assets were added Removed No assets were removed Bigger
Smaller No assets were smaller Unchanged
|
Bundle Stats - loot-coreHey 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
Changeset No files were changed View detailed bundle breakdownAdded No assets were added Removed No assets were removed Bigger No assets were bigger Smaller No assets were smaller Unchanged
|
packages/desktop-client/src/components/accounts/TransactionsTable.js
Outdated
Show resolved
Hide resolved
packages/desktop-client/src/components/accounts/TransactionsTable.js
Outdated
Show resolved
Hide resolved
packages/desktop-client/src/components/accounts/TransactionsTable.js
Outdated
Show resolved
Hide resolved
packages/desktop-client/src/components/accounts/TransactionsTable.js
Outdated
Show resolved
Hide resolved
packages/desktop-client/src/components/accounts/TransactionsTable.js
Outdated
Show resolved
Hide resolved
packages/desktop-client/src/components/accounts/TransactionsTable.js
Outdated
Show resolved
Hide resolved
packages/desktop-client/src/components/accounts/TransactionsTable.js
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work so far. I’m noticing an issue with the demo budget when I sort by date (reversed). My suggestion below might help but you might also need to change the sorter to produce an unambiguous result by falling back to sorting by UUID as a fallback if the two transactions match?
Screen.Recording.2023-06-30.at.11.18.10.mov
packages/desktop-client/src/components/accounts/TransactionsTable.js
Outdated
Show resolved
Hide resolved
packages/desktop-client/src/components/accounts/TransactionsTable.js
Outdated
Show resolved
Hide resolved
packages/desktop-client/src/components/accounts/TransactionsTable.js
Outdated
Show resolved
Hide resolved
Something from a recent merge is causing my page to freak out...bouncing between category and amount as if they are being clicked on but they aren't. @j-f1 can you help me find the bug? |
packages/desktop-client/src/components/accounts/TransactionsTable.js
Outdated
Show resolved
Hide resolved
I think the usememo addition fixed this. Can you double check it? |
@Kidglove57, I think I found a good solution. I copied the logic from filters and searches. Sorting removes the balance column but remembers your last show/hide choice of the balance column option. |
@carkom Thank you very much for working out a solution - much appreciated.
|
👍
This is due to the actual name of the payee being null in the data table. I'm not sure there's an easy way to aggregate payee name with transfer_acct name and then sort them all together. I think it best to push this to a new PR.
Fixed
This was a bug. I've fixed it. I've setup filters, searches and sorting to all operate independently so that taking action on one element doesn't automatically change any of the the other 2 elements. This is out the idea to avoid assuming what a user wants to do. For instance, creating/deleting a filter will no longer clear the search box or any sorting you've done and clearing the sorting will not clear filters or search box and clearing search box will not change filters or sorting. |
Thanks so much @carkom. And for the clear explanations. I have tested again with my complex file and it now all works beautifully for me. I'm loving this extra functionality. I agree about the separate PR for transfer account name issue. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks mostly good to me, just a few minor nits
packages/desktop-client/src/components/transactions/TransactionsTable.js
Outdated
Show resolved
Hide resolved
If nothing to add. This is ready for merge. Cheers! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM but I want @MatissJanis to take a look too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! This is a great addition to Actual!
This is a pretty simple and straight forward PR. I've added sorting to the transactions table.