Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(160)

Issue 2775403002: [Payments] Preview available payment options when no option is selected (Closed)

Created:
3 years, 9 months ago by gogerald1
Modified:
3 years, 8 months ago
CC:
chromium-reviews, gogerald+paymentswatch_chromium.org, rouslan+payments_chromium.org, agrieve+watch_chromium.org, mahmadi+paymentswatch_chromium.org, srahim+watch_chromium.org, sebsg+paymentswatch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Preview available payment options when no option is selected The behavior when there is a selected option in a payment section is the same as before. When there is no selected option in a payment section: a) Display a summary of the options in the section. b) The summary is displayed in a single line in grey color with font 14sp. c) If there are more than one options in the section, the string pattern is "<Summary of the first option>... and N more". N+1 is the total number of options in the section. "* and N more" should never be elided. <Summary of the first option> can be shorten to make the entire summary fit the width of the view. Do not elide card summary in the middle of the card number, e.g either display "VISA ....1234" or "VISA". d) If there is only one option in the section, the string is "<Summary of the first option>". Elides at the end of the string if it does not fit the width of the view. e) If there is no option in the section, do not show anything. BUG=703806 Review-Url: https://codereview.chromium.org/2775403002 Cr-Commit-Position: refs/heads/master@{#463488} Committed: https://chromium.googlesource.com/chromium/src/+/67cd4a8011cebc5e1f860aaa05dc772c784e9e3a

Patch Set 1 #

Total comments: 33

Patch Set 2 : fix compile error and comments #

Total comments: 6

Patch Set 3 : address comments #

Patch Set 4 : use plurals and update strings description #

Total comments: 8

Patch Set 5 : update string descriptions #

Total comments: 6

Patch Set 6 : update comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+394 lines, -141 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillPaymentInstrument.java View 1 2 1 chunk +14 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentInformation.java View 2 chunks +0 lines, -40 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentOption.java View 1 2 2 chunks +30 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentRequestSection.java View 1 2 17 chunks +96 lines, -38 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentRequestUI.java View 6 chunks +13 lines, -52 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/payments/ui/SectionInformation.java View 1 2 3 1 chunk +21 lines, -0 lines 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/payments/ui/SectionUiUtils.java View 1 2 3 4 5 1 chunk +108 lines, -0 lines 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/payments/ui/ShippingSummaryInformation.java View 1 2 1 chunk +73 lines, -0 lines 0 comments Download
M chrome/android/java/strings/android_chrome_strings.grd View 1 2 3 4 2 chunks +26 lines, -0 lines 0 comments Download
M chrome/android/java_sources.gni View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestDynamicShippingSingleAddressTest.java View 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestIncompleteContactDetailsTest.java View 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestIncompleteEmailTest.java View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestIncompletePhoneTest.java View 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 63 (44 generated)
gogerald1
Hi rouslan@ and dfalcantara@, ptal,
3 years, 9 months ago (2017-03-27 20:01:48 UTC) #8
please use gerrit instead
Thank you for working on this! It's quite complex. https://codereview.chromium.org/2775403002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentRequestSection.java File chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentRequestSection.java (right): https://codereview.chromium.org/2775403002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentRequestSection.java#newcode1576 chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentRequestSection.java:1576: ...
3 years, 9 months ago (2017-03-27 20:28:31 UTC) #9
please use gerrit instead
https://codereview.chromium.org/2775403002/diff/20001/components/payments_strings.grdp File components/payments_strings.grdp (right): https://codereview.chromium.org/2775403002/diff/20001/components/payments_strings.grdp#newcode188 components/payments_strings.grdp:188: <message name="IDS_PAYMENT_REQUEST_PAYMENT_METHODS_PREVIEW" desc="The summary of the available payment methods ...
3 years, 9 months ago (2017-03-27 20:34:03 UTC) #10
gone
Can you fill out the description to something more useful for reviewing? It's a big ...
3 years, 9 months ago (2017-03-27 21:37:18 UTC) #11
gogerald1
please take another look, add more CL description, you can also check the screenshots in ...
3 years, 9 months ago (2017-03-27 23:26:48 UTC) #29
gone
https://codereview.chromium.org/2775403002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentRequestSection.java File chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentRequestSection.java (right): https://codereview.chromium.org/2775403002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentRequestSection.java#newcode1341 chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentRequestSection.java:1341: null /* rightTruncate */, false /* rightIsSingleLine */); this ...
3 years, 9 months ago (2017-03-28 00:20:39 UTC) #30
gone
Screenshots are great (thanks!) but you can't expect going through git logs to dig up ...
3 years, 9 months ago (2017-03-28 00:21:27 UTC) #31
please use gerrit instead
LGTM % comments https://codereview.chromium.org/2775403002/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillPaymentInstrument.java File chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillPaymentInstrument.java (right): https://codereview.chromium.org/2775403002/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillPaymentInstrument.java#newcode339 chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillPaymentInstrument.java:339: String obfuscatedCardNumber = getLabel(); Can we ...
3 years, 8 months ago (2017-03-28 14:42:49 UTC) #34
gogerald1
Thanks, addressed all comments, ptal, https://codereview.chromium.org/2775403002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentRequestSection.java File chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentRequestSection.java (right): https://codereview.chromium.org/2775403002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentRequestSection.java#newcode1341 chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentRequestSection.java:1341: null /* rightTruncate */, ...
3 years, 8 months ago (2017-03-28 18:46:24 UTC) #37
gone
https://codereview.chromium.org/2775403002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentRequestSection.java File chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentRequestSection.java (right): https://codereview.chromium.org/2775403002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentRequestSection.java#newcode1568 chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentRequestSection.java:1568: // Append string to indicate how many more options ...
3 years, 8 months ago (2017-03-28 18:47:22 UTC) #38
gogerald1
Hi srahim@, please review strings in chrome/android/java/strings/android_chrome_strings.grd as discussed offline. You can find the screenshots ...
3 years, 8 months ago (2017-04-07 00:07:48 UTC) #47
gogerald1
friendly ping srahim@, could you review strings in android_chrome_strings.grd. M59 branch point (Thursday) is very ...
3 years, 8 months ago (2017-04-10 14:15:42 UTC) #52
srahim
Recommendation to update a message desc for additional clarity for translators. https://codereview.chromium.org/2775403002/diff/160001/chrome/android/java/strings/android_chrome_strings.grd File chrome/android/java/strings/android_chrome_strings.grd (right): ...
3 years, 8 months ago (2017-04-10 15:53:35 UTC) #53
srahim
Some additional nits in the message descriptions. https://codereview.chromium.org/2775403002/diff/160001/chrome/android/java/strings/android_chrome_strings.grd File chrome/android/java/strings/android_chrome_strings.grd (right): https://codereview.chromium.org/2775403002/diff/160001/chrome/android/java/strings/android_chrome_strings.grd#newcode348 chrome/android/java/strings/android_chrome_strings.grd:348: <message name="IDS_PAYMENT_REQUEST_PAYMENT_METHODS_PREVIEW" ...
3 years, 8 months ago (2017-04-10 15:58:51 UTC) #54
gogerald1
Thanks srahim@. Hi dfalcantara@, I think we are unlocked from the format of the new ...
3 years, 8 months ago (2017-04-10 17:04:32 UTC) #55
gone
lgtm https://codereview.chromium.org/2775403002/diff/180001/chrome/android/java/src/org/chromium/chrome/browser/payments/ui/SectionUiUtils.java File chrome/android/java/src/org/chromium/chrome/browser/payments/ui/SectionUiUtils.java (right): https://codereview.chromium.org/2775403002/diff/180001/chrome/android/java/src/org/chromium/chrome/browser/payments/ui/SectionUiUtils.java#newcode75 chrome/android/java/src/org/chromium/chrome/browser/payments/ui/SectionUiUtils.java:75: // If there are more than one options ...
3 years, 8 months ago (2017-04-10 23:19:03 UTC) #56
gogerald1
Thanks, sending to CQ https://codereview.chromium.org/2775403002/diff/180001/chrome/android/java/src/org/chromium/chrome/browser/payments/ui/SectionUiUtils.java File chrome/android/java/src/org/chromium/chrome/browser/payments/ui/SectionUiUtils.java (right): https://codereview.chromium.org/2775403002/diff/180001/chrome/android/java/src/org/chromium/chrome/browser/payments/ui/SectionUiUtils.java#newcode75 chrome/android/java/src/org/chromium/chrome/browser/payments/ui/SectionUiUtils.java:75: // If there are more ...
3 years, 8 months ago (2017-04-11 00:20:28 UTC) #57
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2775403002/200001
3 years, 8 months ago (2017-04-11 00:21:35 UTC) #60
commit-bot: I haz the power
3 years, 8 months ago (2017-04-11 01:32:02 UTC) #63
Message was sent while issue was closed.
Committed patchset #6 (id:200001) as
https://chromium.googlesource.com/chromium/src/+/67cd4a8011cebc5e1f860aaa05dc...

Powered by Google App Engine
This is Rietveld 408576698