Skip to content
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

Include author info in the Thanks toast #5211

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sivaraam
Copy link
Member

@sivaraam sivaraam commented Apr 16, 2023

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
Screenshot_2023-04-16-22-54-19-16_d5db3f3edc380047609fe9c266f7c566

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.

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.
@sivaraam sivaraam marked this pull request as draft April 16, 2023 17:36
Copy link
Member

@nicolas-raoul nicolas-raoul left a 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?

Copy link
Member

@nicolas-raoul nicolas-raoul left a 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

@sivaraam
Copy link
Member Author

Question: Why did you mark this as a draft?

I've detailed it in the description. Here it is:

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.

Do share your thoughts.

@neeldoshii
Copy link
Contributor

@sivaraam

Feedback :
Can we replace toast to snackbar in this?
What if Sending thanks for $filename(bigger filename) to $authorname(bigger author name) if this toast text is greater than two line toast won't support it.

In Android 12, the toast view has been redesigned. Toasts are now limited to two lines of text and show the application icon next to the text.

Android Toast

@sivaraam
Copy link
Member Author

Feedback : Can we replace toast to snackbar in this? What if Sending thanks for $filename(bigger filename) to $authorname(bigger author name) if this toast text is greater than two line toast won't support it.

Sure. Thank you for the suggestion. Let me change this when I get around to it. 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants