When a user reaches the end of the library, more media will loaded from the REST API be displayed.
_Do not alter or remove anything below. The following sections will be managed by moderators only._
We could possibly use react-infinite-scroller or react-infinite-scroll-component.
Let us know if any of these libraries appeal to you for any specific reason. IMHO, the infinite scroll is a not a very complicated story for us. A critical piece for us is to know the visibility of the items, given that we may have to heavily use image/video loading. And, quickly scanning through this libraries, I'm not seeing anything related to visibility there. LMK if you see something relevant for that.
@pbakaus @samitron7
RE: Drag to add media to the Media Panel
Any media that is dragged into the Media Panel should show up instantly in the panel. If the media is not uploaded immediately, show the uploading UI. Do not show any actions of the item on hover until it is fully uploaded.
Question: Media is shown most recently uploaded first. If a user has scrolled down in the media library and they drag to upload, should they be scrolled back up to the top to show them the in-progress upload?
@pbakaus @samitron7
RE: Drag to add media to the Media PanelAny media that is dragged into the Media Panel should show up instantly in the panel. If the media is not uploaded immediately, show the uploading UI. Do not show any actions of the item on hover until it is fully uploaded.
Question: Media is shown most recently uploaded first. If a user has scrolled down in the media library and they drag to upload, should they be scrolled back up to the top to show them the in-progress upload?
Yes, exactly. That's. defined in the product spec as well.
@samitron7 Jason's comment from Slack: "Please see unknown for AC4, UX for when user reaches the end of scroll.
Please see AC2, UX required for loading animation."
Before working on this ticket, we should tackle #435 .
flagging @samitron7 for loading animation when reaching the bottom
Hey @samitron7
I was looking at the link provided in your Standup Alice post. I see the P0 version in figma. I don't see:
CC: @merapi
When the user scrolls to the bottom, a "loading" animation is displayed (UX needed). @spacedmonkey is this for when the user is scrolling too fast and it's taking a while to load so we need an animation?
At the moment, we do not, which is why we wanted UX feedback. It currently just shows white text of Loading.... Which is basically unstyled ATM. I don't love this, but for alpha, I could live with it. As long as we loop around on it later.
Looping in @pbakaus RE:
For Alpha we will have:
Loading... @pbakaus @jauyong In regards to Jason't question:
1) Media is shown most recently uploaded first. If a user has scrolled down in the media library and they drag to upload, should they be scrolled back up to the top to show them the in-progress upload?
I do not think they they be scrolled back to the top. I think a better way to do this is to display a uploading message in the media library panel (Figma). You never want to change the location for the users. It's terribly jarring.
2) When the user scrolls to the bottom, a "loading" animation is displayed (UX needed). @spacedmonkey is this for when the user is scrolling too fast and it's taking a while to load so we need an animation?
@spacedmonkey Can you confirm that its just a static loading message that is needed and not a button that they user needs to hit to trigger loading of the next set of media. If it's just a message, that is already in Figma
3) When the user reaches the bottom of the library, ??. I would say for Alpha it just ends without any cute message or anything like that, do you agree? There are already notes in Figma about the scroll bar behvaiour.
Correct, the scroll is enough indication that you're at the bottom. So this behavior is the same for P0 and after.
I have created a follow up #662 to add the styling that was missing by the time this ticket was closed.
@pbakaus @samitron7 There seems to be discrepancy on the behaviour between Paul's confirmation above and Sam's response directly above this comment.
@jauyong good catch. Sam and I are discussing as we speak. We'll give an update on this soon.