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

Issue 2170693002: [Payments] Select and add buttons for incomplete sections (Closed)

Created:
4 years, 5 months ago by gone
Modified:
4 years, 5 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Payments] Select and add buttons for incomplete sections * Replaces the previous "Select shipping address" or "Select shipping option" prompts with gigantic [SELECT] and [ADD] buttons on the right of each incomplete section. * Caches a copy of the SectionInformation in the relevant PaymentRequestSection instances so that we can determine if we need to prompt the user to SELECT or ADD new PaymentOptions. * Buttons are enabled from top to bottom, with only one button enabled at a time. This encourages users to move downward while filling out the form. When a button is visible for a section, the only way to interact with the section is via the button (no more clicking on incomplete sections to expand them). * The shipping summary section, which combines both the shipping address and shipping option fields, can now display a button that shows either the button for the incomplete shipping address section or the incomplete shipping option section (prioritized in taht order). * Get rid of and generalizes a bunch of unneeded strings. * Because the logic is so complicated now, we consolidate most layout updates and view visibility checks to updateControlLayout(). * Updates the PaymentRequestDynamicShippingSingleAddressTest to account for the lack of summary text for incomplete sections. * Edits the "select shipping address" string to add "and requirements" to the end. Videos: https://drive.google.com/open?id=0B7c8ZkXVwskDZDZWUkhDXzdvLUE https://drive.google.com/open?id=0B7c8ZkXVwskDRm53UUhHUHZmeW8 BUG=603635 Committed: https://crrev.com/cdb475af0865b21209833f6a2f5a6e675efbc845 Cr-Commit-Position: refs/heads/master@{#407289}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Comments #

Patch Set 3 : Fix adding behavior #

Patch Set 4 : Tracking another branch #

Total comments: 10

Patch Set 5 : Comments, rebasing #

Patch Set 6 : Compile fix, string change #

Patch Set 7 : Remove polish to make tests happy #

Messages

Total messages: 36 (21 generated)
gone
Rouslan: General Payments things, including the test changes. Ian: UI changes (pretty much all of ...
4 years, 5 months ago (2016-07-21 01:01:55 UTC) #10
gone
On 2016/07/21 01:01:55, dfalcantara wrote: > Rouslan: General Payments things, including the test changes. > ...
4 years, 5 months ago (2016-07-21 01:11:41 UTC) #11
gone
Fixed the address and fixed the video links. PTAL when you've got a few.
4 years, 5 months ago (2016-07-21 18:24:16 UTC) #14
gone
Trying to figure out how to add tests for the new behavior, but haven't come ...
4 years, 5 months ago (2016-07-21 18:24:59 UTC) #15
please use gerrit instead
On 2016/07/21 18:24:59, dfalcantara wrote: > Trying to figure out how to add tests for ...
4 years, 5 months ago (2016-07-21 20:23:59 UTC) #16
please use gerrit instead
lgtm % comments. Also please make sure that "Shipping option" button cannot be [ADD], because ...
4 years, 5 months ago (2016-07-21 21:32:25 UTC) #17
Ian Wen
rs lgtm. I only found some optional nit. https://chromiumcodereview.appspot.com/2170693002/diff/60001/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://chromiumcodereview.appspot.com/2170693002/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentRequestSection.java#newcode100 chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentRequestSection.java:100: public ...
4 years, 5 months ago (2016-07-22 17:11:00 UTC) #18
gone
https://chromiumcodereview.appspot.com/2170693002/diff/60001/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://chromiumcodereview.appspot.com/2170693002/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentRequestSection.java#newcode100 chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentRequestSection.java:100: public static final int EDIT_BUTTON_GONE = 0; On 2016/07/22 ...
4 years, 5 months ago (2016-07-22 19:00:35 UTC) #19
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/2170693002/80001
4 years, 5 months ago (2016-07-22 19:01:55 UTC) #22
gone
(Also added a line in the spreadsheet to test this whole thing. Tests seem to ...
4 years, 5 months ago (2016-07-22 19:05:54 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: android_compile_dbg on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_compile_dbg/builds/100867)
4 years, 5 months ago (2016-07-22 19:28:24 UTC) #25
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/2170693002/100001
4 years, 5 months ago (2016-07-22 21:07:40 UTC) #29
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/2170693002/120001
4 years, 5 months ago (2016-07-22 21:45:57 UTC) #32
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 5 months ago (2016-07-22 22:54:55 UTC) #34
commit-bot: I haz the power
4 years, 5 months ago (2016-07-22 22:56:48 UTC) #36
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/cdb475af0865b21209833f6a2f5a6e675efbc845
Cr-Commit-Position: refs/heads/master@{#407289}

Powered by Google App Engine
This is Rietveld 408576698