-
Notifications
You must be signed in to change notification settings - Fork 14
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
Implement Search Pagination #297
Conversation
create constans.ts
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! Great work 🔥
Also, I'm guessing the issue you opened for performance improvements is meant for a new task/PR. I'm going to go ahead and unlink it from this PR so it doesn't close when this one merges. |
…into search-pagination-improvement
Just an inaccurate test: |
Improvement: load only the first 5 pages initially, but when the user jumps to the 3rd page or after, load all pages. |
Peterportal
This is a temporary solution. Currently, PPAPI does not support range search, see #310. We will change it to the actual range search upon the PPAPI update release. |
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! Just requested some minor changes :)) thanks!
Next todo: merge to Master |
Next todo: test, also test #366 |
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.
Optimization seems to have broken for going past page 3. Gets stuck in an infinite loop. Dark mode theming needed for pagination component.
Thank you for noting this. It didn't happen when I tested it, so it might be some side effect when merging with the new code since this functionality was written a long time ago. I will try to investigate this on this weekend. |
Honestly, I think we can leave out the first 5 pages limiter. I've tested locally and performance seems to be fine with this current version of fuzzy search. I think we should also lower the search delay from 500ms to 300ms so response times are a bit faster. |
Nevermind, seems like it is necessary given that changing between catalogue/roadmap tabs slows down when searching the additional results. |
702b812
to
41974b1
Compare
Found a solution: moving the states for |
…/refactor/optimize
commit d6ca086 Author: Jacob Sommer <[email protected]> Date: Mon Feb 12 02:32:57 2024 -0800 Add no results image commit f3e9823 Author: Jacob Sommer <[email protected]> Date: Mon Feb 12 01:45:48 2024 -0800 Refactor search pagination/hit container to simplify store usage commit 58a73c5 Author: Jacob Sommer <[email protected]> Date: Mon Feb 12 01:32:40 2024 -0800 Dark theme for pagination
b899931
to
2cd991a
Compare
Deployed staging instance to https://staging-297.peterportal.org |
Implement Search Pagination
Description
SearchPagination
componentIn addition:
stc/helpers/constants.ts
to storePAGE_SIZE
The current config is:
Screenshots
Final Checks:
(optional)