commons-app / apps-android-commons

The Wikimedia Commons Android app allows users to upload pictures from their Android phone/tablet to Wikimedia Commons
https://commons-app.github.io/
Apache License 2.0
1.03k stars 1.24k forks source link

Make the Contributions activity load only a dozen elements, then load more if the user scrolls down #5926

Open nicolas-raoul opened 1 week ago

nicolas-raoul commented 1 week ago

Currently the Contributions activity, just upon opening the app, shows like 5000 thumbnails (it might be 1000 or 10000 I didn't count nor check, if someone finds more info please comment).

It probably takes more memory than if we just loaded a dozen. I suspect it might be generating a lot of unnecessary network traffic to get thumbnails. Another problem is that once I have scrolled down the 5000, I can't scroll down more, even though I have 25000+ contributions so I should be able to scroll much more.

The task here would be to replace this behavior with a list that shows a dozen elements at first. If the user scrolls down, then the app would load more thumbnails.

https://github.com/user-attachments/assets/f315732b-9f21-4c9d-8968-454062b13fda

^ I know I have uploaded 20000+ pictures before that Venezia picture.

kanahia1 commented 1 week ago

Hello @nicolas-raoul, can you please assign me this issue. But there can be a delay of 2 weeks because of university exams. Incase, I get time during them I will try to complete this one :-)

nicolas-raoul commented 1 week ago

No worries, it is not urgent at all. :-)