-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Include author info in the Thanks toast #5211
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
base: main
Are you sure you want to change the base?
Conversation
The thank would be sent to a particular user in the context of their contribution. So, the user's name is also an important information to be shown. Highlight the same in the toast.
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.
It is working fine.
Question: Why did you mark this as a draft?
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.
Ah, that's probably why:
fr.free.nrw.commons.review.ReviewControllerTest > testSendThanks FAILED
java.util.MissingFormatArgumentException at ReviewControllerTest.kt:143
fr.free.nrw.commons.review.ReviewControllerTest > testSendThanksCaseNull FAILED
java.util.MissingFormatArgumentException at ReviewControllerTest.kt:170
I've detailed it in the description. Here it is:
Do share your thoughts. |
Feedback :
|
Sure. Thank you for the suggestion. Let me change this when I get around to it. 🙂 |
Description (required)
The toast shown when thanking an author during review did not include the author's name in it. It is important to show the same since the thank is explicitly sent to the author.
What changes did you make and why?
Included the author info in the thank related toasts.
Tests performed (required)
OnePlus Nord running Android 12
Screenshots (for UI changes only)
Successful thank toast

Draft status reason
I'm not really sure what to do about the corresponding strings in other languages. I suppose the app would be handling them incorrectly since they only take one parameter. Do let me know your thoughts about the same.
Update: I just checked and it seems to be showing the author name in place of the media file name. So, the meaning of the text seems to change unexpectedly. We could shuffle the params around to fix this like
Sending thanks for $filename to $authorname
but the sentence does not seem to read well to me.I could think of another alternative too. Anyways, let me hear other's thoughts before that.
Note: Please ensure that you have read CONTRIBUTING.md if this is your first pull request.