Skip to content

Add questionmark to display explanation #2783

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

Merged
merged 8 commits into from
Mar 29, 2019

Conversation

silkypriya
Copy link
Contributor

Description
Adding a question mark next to "skip this image" button and Peer Review title which will display an explanation about their usage.

Fixes #2698 Improve peer review feature quality

Tests performed
Tested betaDebug on Realme 2 pro (Android Version 8.1.0) with API level 27.

Screenshots of the result

333

Skip Button Peer Review
222 111

}

private void launchAlert(String title, String message){
new AlertDialog.Builder(ReviewActivity.this)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use DialogUtil:showAlertDialog

Copy link
Member

@domdomegg domdomegg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it might be better to use the info icon given we use it in the rest of the app for the same purpose - we should be consistent. (See #2698 (comment))

@@ -508,6 +508,10 @@ Upload your first media by tapping on the add button.</string>
<string name="review_copyright_no_button_text">SEEMS FINE</string>
<string name="review_thanks_yes_button_text">YES, WHY NOT</string>
<string name="review_thanks_no_button_text">NEXT IMAGE</string>
<string name="skip_this_image">Skip this image</string>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This string is duplicated

@codecov-io
Copy link

codecov-io commented Mar 28, 2019

Codecov Report

Merging #2783 into master will decrease coverage by <.01%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #2783      +/-   ##
=========================================
- Coverage    3.84%   3.83%   -0.01%     
=========================================
  Files         267     267              
  Lines       12523   12535      +12     
  Branches     1082    1082              
=========================================
  Hits          481     481              
- Misses      12009   12021      +12     
  Partials       33      33
Impacted Files Coverage Δ
...ava/fr/free/nrw/commons/review/ReviewActivity.java 0% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5a36392...d00f174. Read the comment docs.

@silkypriya
Copy link
Contributor Author

silkypriya commented Mar 28, 2019

@maskaravivek @neslihanturan @domdomegg
Commit following changes

  1. Used DialogUtil:showAlertDialog
  2. Used info-icon instead of questionmark
  3. Removed duplicate string

Kindly review
Thank you!

@domdomegg domdomegg self-requested a review March 28, 2019 19:48
@@ -508,6 +508,10 @@ Upload your first media by tapping on the add button.</string>
<string name="review_copyright_no_button_text">SEEMS FINE</string>
<string name="review_thanks_yes_button_text">YES, WHY NOT</string>
<string name="review_thanks_no_button_text">NEXT IMAGE</string>
<string name="go_back_button_text">GO BACK</string>
<string name="skip_image_explanation">Clicking this button will give you another recently uploaded image from Wikimedia Commons</string>
<string name="review_image">Peer Review</string>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Duplicate of title_activity_review

DialogUtil.showAlertDialog(ReviewActivity.this,
getString(R.string.review_image),
getString(R.string.review_image_explanation),
getString(R.string.about_translate_proceed),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe better to use android.R.string.ok, 'proceed' seems a bit formal and also sounds like you're about to take action which might confuse users - I feel 'ok' is more that just you're done reading the explanation.

getString(R.string.review_image),
getString(R.string.review_image_explanation),
getString(R.string.about_translate_proceed),
getString(R.string.go_back_button_text),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably no need to have a go back button here

getString(R.string.skip_image_explanation),
getString(R.string.about_translate_proceed),
getString(android.R.string.cancel),
() -> runRandomizer(),null);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it might be easier (based off the behaviour of other information icons in the app - see achievements and nearby tab for examples), just to have an 'okay' button which dismisses it - not to actually skip the image on clicking 'proceed'. In that case we can remove the cancel button, and change the positive text to android.R.string.ok

@silkypriya
Copy link
Contributor Author

Hello @domdomegg,
Committed the required changes. Kindly review.
Thankyou!

Copy link
Member

@domdomegg domdomegg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good now, tested 2.10.1-debug-questionmark~d00f17406. Happy to merge once unused string removed.

@silkypriya
Copy link
Contributor Author

Removed unused string.
Thankyou! @domdomegg

@domdomegg domdomegg merged commit 874e761 into commons-app:master Mar 29, 2019
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.

5 participants