-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
🐛 (rules) fix filtering in the rules page #2141
Conversation
Previously the filtering was applied only to the loaded data. Meaning if there are >1 pages of data - it would initially apply only to the first page. After this fix - the filters are applied to all the pages. Closes #1502
✅ 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 No assets were bigger 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
|
@MatissJanis this looks like a nice cleanup, eliminates a redundant state, and everything seems to be working. But I haven't been able to reproduce the filtering issue in master. I have however reproduced the other issue referenced in the issue, which remains with this change. Which is that loadMore just isn't firing at all for me in firefox (works fine in my chrome). |
You would need to have multiple pages of rules to reproduce. It won't be possible with the test budget as there' s just not enough rules.
Argh.. ok, I'll unlink the bug report. So this change isn't fixing it. Still - it fixes a different issue. |
just submitted PR #2167 to merge into this branch ... should fix the load more rules, but more testers definitely welcome |
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!
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.
@MatissJanis you can go ahead a relink this to #1502 because it's now fixing both issues mentioned there.
I reread the issue and finally comprehended what the initial issue was. (I kept thinking it was the loadMore that wasn't being filtered but that was working fine)
This PR looks good.
- Cleans up multiple redundant state
- Filter now applies against the full data, so items in future pages now show up right away when the filter includes them and they should be appearing.
- loadMore is firing properly when scrolling down in firefox (tested on linux popOS)
Thanks @MatissJanis and @jasonmichalski
Previously the filtering was applied only to the loaded data. Meaning if there are >1 pages of data - it would initially apply only to the first page. After this fix - the filters are applied to all the pages.