Closed joel-jeremy closed 1 month ago
Name | Link |
---|---|
Latest commit | 97e42034e8ce906647d3f33d4534621ce1a01e9a |
Latest deploy log | https://app.netlify.com/sites/actualbudget/deploys/66ba4dfe62cc9b0008cc3e2a |
Deploy Preview | https://deploy-preview-2892.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 | 4.92 MB → 4.94 MB (+21.23 kB) | +0.42% |
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.14 MB → 1.14 MB (+184 B) | +0.02% |
If you bulk change the account on the transactions they stay selected even after they are visually gone. That's maybe ok but feels a bit weird.
@youngcw Updated to clear selection after the batch operations and added undo notifications since I realized these operations can easily mess up the transactions if a mis click happened.
Nice, I like the undo option. Im thinking it would be nice to leave the transactions selected so other changes can be made. Something like, edit the notes the change the category for a batch. I do that on occasion. Maybe we can leave this as is and see how it goes? What do you think?
Nice, I like the undo option. Im thinking it would be nice to leave the transactions selected so other changes can be made. Something like, edit the notes the change the category for a batch. I do that on occasion. Maybe we can leave this as is and see how it goes? What do you think?
Agreed, it makes sense to leave them selected. Updated the code :)
I also added a useUndo
hook here which I plan to use in the budget page to show undo notification when applying goal templates.
@MatissJanis @twk3 Could one of you look over this? With the new hooks and such this deserves more experienced eyes.
Code looks good :+1:
Not sure if you missed this comment with a bug report + a feedback item on the "undo" notifications.
Small bug (not sure if related to this PR though): "link schedule" opens a modal, but after you select a schedule to link - the modal stays open. So it feels like nothing happened.
I can't seem to replicate this one. Maybe the recent commits fixed it?
Really like the thought that went into the undo feature! That's super nice. Though I find the undo notification quite disruptive. What if we instead added a "undo" button besides the "edit" button (maybe with a undo icon instead? just a thought)?
I'm planning to reuse the undo notification on the budget page too (https://github.com/actualbudget/actual/pull/3085) so I would like to keep the "undo" mechanism consistent across the pages for now. Once we have that running, we can definitely revamp the undo notification to be less disruptive or maybe we can just use less text on the notification so it takes up less screen real estate?
This is what I see:
https://github.com/user-attachments/assets/b9ddb896-ed9e-4a3f-949e-8816379f0232
And now that I think about it more - there's also no "undo" notification for this action. But there is one for un-linking which is strange.
I'm planning to reuse the undo notification on the budget page too (https://github.com/actualbudget/actual/pull/3085) so I would like to keep the "undo" mechanism consistent across the pages for now. Once we have that running, we can definitely revamp the undo notification to be less disruptive or maybe we can just use less text on the notification so it takes up less screen real estate?
Less text works fine. And then we can nicely position it to be above the purple action bar. (+ would be really nice to auto-close it after a delay).
Yay more functionality! I did pick up two niggles when trying it out.
1) The edit notes Prepend and Append options give an incorrect undo notification as the wording indicates the note from one of the selected is what all were set to. When in reality each note add the text prepended/appended to their existing content.
Example: Pre-edit notes for the 3 transactions were in turn:
Edit notes Prepend 'prepend' Result:
2) The Edit Amount dialog brings up the qwerty keyboard and not the numbers keyboard(Android, firefox incognito mode). Obviously this generates a red something internally went wrong notice if text is attempted to be entered.
Thank you for your feedback @Teprifer. I have fixed #1. I guess for number we're going to have to address that in a separate PR. Maybe I should disable bulk edit for amount for now - just like Date is currently disabled. WDYT?
Thank you for your feedback @Teprifer. I have fixed #1. I guess for number we're going to have to address that in a separate PR. Maybe I should disable bulk edit for amount for now - just like Date is currently disabled. WDYT?
Cheers, not strongly opinionated, although I edge slightly towards your suggestion of disabling as errors are unfriendly.
Sorry, but I'm still really disliking the undo notification UI. As a minimum - could we make it so it doesn't overlay the action bar? To push it up.
Also I think the close delay should be increased to something much higher (~10s?). To give people time to react before it closes.
@MatissJanis Updated :)
Thanks! The positioning is much better now. But now we have one more bug: if you perform an action - the undo notification opens up. But there is no way to close it. And without closing it - the entire page is not usable (clicks are blocked everywhere). So you have to wait for the notification to dissapear.
Would it be possible to allow clicking in the action bar if the notification is open? And perhaps to also add a "x" for the undo notification so it can be dismissed more quickly if the user wants to.
Floating action bar should now be clickable even if a notification is present :)
Appears to be temporarily not working? Can't long press or tap to edit/view a transaction.
Browser console:
@Teprifer Nice catch! I went into a deep dive into react aria's codebase and found out that one needs to use PressResponder
to handle both press and long press on react-aria-components's Button
component - which is not documented anywhere in their docs.