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
Fixes #3389 - Show User profiles #4678
Conversation
6ba8180
to
bf94ab8
Compare
bf94ab8
to
540dac7
Compare
540dac7
to
ab6de22
Compare
Some tests fails with this PR @ashishkumar468 :( |
Hey @neslihanturan , if you mean the integration tests, yes I am working on the fix, meanwhile would be great to have the code reviewed |
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.
Hey @ashishkumar468 , the PR works great in general and I loved this new feature. Thanks for the great job! The only problem that I recignized is that previous user's numbers are being shown while the numbers (num of uploads, percentage of undeleted uploads etc.) are being fetched for selected user. This can make user think that numbers of the selected user are numbers of previously checked user. There should be a progressbar or at least they should be empty during this time. For example for level, we have progresbar and this prevents ambiguity.
Hey @neslihanturan , thanks for the quick review. Totally makes sense, what I am planning to do is probably keep them empty while the data is being fetched, would not make sense to show individual (and multiple progress bars) as the API calls are more than one. |
I think empty fields are better than having multiple progressbars |
2d217af
to
e6af452
Compare
Hi @neslihanturan , I have made the suggested changes and the PR is up for review again |
e6af452
to
f0dc195
Compare
Codecov Report
@@ Coverage Diff @@
## master #4678 +/- ##
============================================
- Coverage 38.76% 38.58% -0.19%
- Complexity 1666 1671 +5
============================================
Files 353 354 +1
Lines 14728 14845 +117
Branches 1296 1308 +12
============================================
+ Hits 5710 5728 +18
- Misses 8619 8712 +93
- Partials 399 405 +6
Continue to review full report at Codecov.
|
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.
Thanks a lot @ashishkumar468 :)
@@ -527,7 +527,8 @@ Upload your first media by tapping on the add button.</string> | |||
<string name="coordinates_picking_unsuccessful">Unable to get coordinates.</string> | |||
|
|||
<string name="share_image_via">Share image via</string> | |||
<string name="no_achievements_yet">You haven\'t made any contributions yet</string> | |||
<string name="you_have_no_achievements_yet">You haven\'t made any contributions yet</string> |
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.
This is far from ideal, as this this shows up as change of content + new message instead of rename + new message. You will be getting build failures since the translations will not contain %s until updated.
Ref: https://translatewiki.net/wiki/Special:ManageMessageGroups/non-mediawiki
I strongly recommend to use a different key when the contents are not compatible.
**Description (required)
Fixes #3389
**What changes did you make and why?
Profile Activity, AchievementsFragment, ContributionsFragment & LeaderboardFragment accept username instead of using the default account.
Added RemoteDataSource for contributions that do not persist contributions.
On Clicks on AuthorNames in MediaDetails, Menu-Options in MediaDetails & Leaderboard list takes to the profile of that user with the corresponding Achievements, Leaderboard and ContributionsList.
Tests performed (required)
Tested betaDebug/prodDebug on API 29
Screenshots (for UI changes only)
---
- - -