-
Notifications
You must be signed in to change notification settings - Fork 16
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
CIDs paging [storage] #1889
CIDs paging [storage] #1889
Conversation
…rowser.tsx Co-authored-by: Thibaut Sardan <33178835+Tbaut@users.noreply.github.com>
…ChainSafe/files-ui into fix/heic-image-preview-fix-1558
Your Render PR Server URL is https://storage-ui-stage-pr-1889.onrender.com. Follow its progress at https://dashboard.render.com/static/srv-c7pt86nh8vl8rd7ick00. |
Your Render PR Server URL is https://chainsafe-components-stage-pr-1889.onrender.com. Follow its progress at https://dashboard.render.com/static/srv-c7pt877h8vl8rd7ickcg. |
Your Render PR Server URL is https://files-ui-stage-pr-1889.onrender.com. Follow its progress at https://dashboard.render.com/static/srv-c7pt87vh8vl8rd7ickh0. |
This pull request introduces 3 alerts when merging ce5c1f4 into a08b19d - view on LGTM.com new alerts:
|
This pull request introduces 3 alerts when merging 7a2a114 into 03f67c5 - view on LGTM.com new alerts:
|
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.
The code looks really great. The only comment I have is when switching pages, both the buttons become disabled (which is expected), and a spinner appears in both of the page buttons (this is less expected).
Not sure what the solution is here - either show a spinner only on the button that was clicked, or do not have a spinner on the button during the request at all.
CIDs.-.Chainsafe.Storage.-.Brave.2022-04-14.17-11-51.mp4
All right, we're handling to show spinner only on the next or previous button now. 👍 |
Hey @tanmoyAtb, I found an issue that I've demonstrated in the video below. I had two pages of cids but after sorting one of the columns the paging system broke. breaking.paging.mov |
Ahh yes, that makes sense, That's a great catch @asnaith. I'll be looking into it. |
The sort directions should work properly now. @asnaith |
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.
I've had a hard time concentrate to properly understand the logic happening here, I'm particularly confused by the dates, I bet this is what we base our sorting on, rather than any id, also flags like isPreviousPin
, were confusing maybe it's a naming thing.
In any case I made a couple suggestions, but playing with it was flawless 🚀
Agreed, Going to improve the variable names here. So with the dates. There has been a lot of back and forth with this logic to get here and its a bit tricky. |
closes #1325
Some functionality to look into
Move into next pages,
Move into previous pages,
Search Pins,
Add pin,
Unpin
Submission checklist:
Layout
Theme