Commit Graph

31 Commits

Author SHA1 Message Date
Diego Pino Garcia
ec9628f8c0 Bug 1446158 - Create a handleEvent custom element mixin to forward events from handleEvent to on* methods. r=MattN 2018-12-20 03:28:00 +02:00
Coroiu Cristina
de8ec49948 Backed out changeset 7ca43b63f0e9 (bug 1446158) for ESlint failure at browser/components/payments/res/containers/address-form.js 2018-12-18 22:08:03 +02:00
Diego Pino Garcia
88565ceda9 Bug 1446158 - Create a handleEvent custom element mixin to forward events from handleEvent to on* methods. r=MattN 2018-12-18 06:56:00 +02:00
Sam Foster
7328d3a035 Bug 1481481 - Create separate forms for shipping, payer and billing address r=MattN
* New AddressForm instances for each address type
* Move selected-state-key out of state for the address forms, and into an attribute
* Remove passing form title via state, just use data-title-edit and data-title-add on the element
* Remove shippingOption form title logic from address picker, just set the right attribute values from PaymentDialog
* Move setting the extraRequiredFields data attribute the payer form needs out to the payment-dialog's render.
* Amend onboarding logic to direct to billing address form when necessary
* Fix-up tests

Differential Revision: https://phabricator.services.mozilla.com/D11545
2018-11-21 19:23:27 +00:00
Sam Foster
d756aa22ef Bug 1482689 - Use AddressPicker for the card billing address UI. r=MattN
* New BillingAddressPicker subclass of AddressPicker which just overrides some of the state-related behavior that
* Allow the RichSelect's popupBox (<select>) to be assigned after the constructor
* A couple new mochitests for the new/different behavior
* Update the test to expect 'edit' to be hidden when the empty option is selected

Differential Revision: https://phabricator.services.mozilla.com/D9321
2018-11-06 00:28:46 +00:00
Brindusan Cristian
074281f389 Backed out changeset ea5d6df24de0 (bug 1482689) as requested by sfoster. 2018-11-06 02:20:51 +02:00
Sam Foster
3e6f95011e Bug 1482689 - Use AddressPicker for the card billing address UI. r=MattN
* New BillingAddressPicker subclass of AddressPicker which just overrides some of the state-related behavior that
* Allow the RichSelect's popupBox (<select>) to be assigned after the constructor
* A couple new mochitests for the new/different behavior
* Update the test to expect 'edit' to be hidden when the empty option is selected

Differential Revision: https://phabricator.services.mozilla.com/D9321
2018-11-06 00:04:42 +00:00
Cosmin Sabou
a752eeafc6 Backed out 2 changesets (bug 1482689) for browser chrome failures on browser_address_edit.js
Backed out changeset 61b49da4b9cb (bug 1482689)
Backed out changeset c810cab5dbdb (bug 1482689)
2018-11-05 18:28:15 +02:00
Sam Foster
f2be145084 Bug 1482689 - Use AddressPicker for the card billing address UI. r=MattN
* New BillingAddressPicker subclass of AddressPicker which just overrides some of the state-related behavior that isn't applicable to billing addresses.
* A couple new mochitests for the new/different behavior

Differential Revision: https://phabricator.services.mozilla.com/D9321
2018-11-05 15:16:02 +00:00
Matthew Noorenberghe
b20e0893c9 Bug 1435163 - Show merchant address errors on the summary screen. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D7160
2018-09-29 00:17:52 +00:00
Matthew Noorenberghe
538c456013 Bug 1463545 - Replace grid layout of <address-option> with a new two line design. r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D5186
2018-09-20 21:07:20 +00:00
prathiksha
5b411643f7 Bug 1475760 - Take address-fields into account for payer/contact picker dropdown labels. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D2831
2018-08-20 13:23:43 -07:00
Matthew Noorenberghe
740d3ceb28 Bug 1476345 - Only enable relevant fields in address forms and update tests. r=jaws
MozReview-Commit-ID: KuPMHrF6jaM
2018-08-15 12:19:55 -07:00
Jared Wein
46b7ce906e Bug 1476348 - Show missing field validation errors on the summary page. r=MattN
MozReview-Commit-ID: 5dOzxWH0pWp
2018-08-03 18:51:31 -04:00
prathiksha
a46aaa0259 Bug 1463547 - Hide the edit link in the pickers when no options are selected. r=MattN
MozReview-Commit-ID: DcTcmV2v6N1
2018-08-02 17:21:44 -04:00
Matthew Noorenberghe
ef8f325b1c Bug 1476204 - Handle autofill record update state changes in the unpriv. PR forms. r=jaws
This is easier to understand as we don't have to round-trip the whole success and error states to the privileged wrapper which could potentially lead to stale state changes.
This is also much simpler for the basic-card-form as it doesn't need a lot of the complexity of the previous implementation.

* Move selectedStateKey from page to address-page since it doesn't apply to basic-card-page

MozReview-Commit-ID: B4kiZNWElGI
2018-07-25 12:37:51 -07:00
Cosmin Sabou
4d1b71eee6 Backed out 5 changesets (bug 1476204) for browser chrome failures on browser_editCreditCardDialog. CLOSED TREE
Backed out changeset 10f3d1014592 (bug 1476204)
Backed out changeset a88879ea32e8 (bug 1476204)
Backed out changeset 001f13f2dd21 (bug 1476204)
Backed out changeset f0f464e3c27c (bug 1476204)
Backed out changeset ed92000eca20 (bug 1476204)
2018-07-26 04:12:56 +03:00
Matthew Noorenberghe
9e3276d213 Bug 1476204 - Handle autofill record update state changes in the unpriv. PR forms. r=jaws
This is easier to understand as we don't have to round-trip the whole success and error states to the privileged wrapper which could potentially lead to stale state changes.
This is also much simpler for the basic-card-form as it doesn't need a lot of the complexity of the previous implementation.

* Move selectedStateKey from page to address-page since it doesn't apply to basic-card-page

MozReview-Commit-ID: B4kiZNWElGI
2018-07-25 12:37:51 -07:00
Matthew Noorenberghe
1405f1081f Bug 1463538 - Fix previously uncaught errors in PaymentReqest UI tests. r=jaws
MozReview-Commit-ID: JUu3ljLLDLO
2018-07-23 11:38:47 -07:00
Gurzau Raul
7bbe193f73 Backed out 4 changesets (bug 1463538) for failing on /payments/test/browser/browser_payments_onboarding_wizard.js
Backed out changeset 1c945ede0071 (bug 1463538)
Backed out changeset 8ccd9f4b230d (bug 1463538)
Backed out changeset e078fb39875e (bug 1463538)
Backed out changeset 798bf0d7928c (bug 1463538)
2018-07-24 11:16:21 +03:00
Matthew Noorenberghe
d06f3079e4 Bug 1463538 - Fix previously uncaught errors in PaymentReqest UI tests. r=jaws
MozReview-Commit-ID: JUu3ljLLDLO
2018-07-23 11:38:47 -07:00
prathiksha
109c049ded Bug 1475080 - Clean up the pickers on the payment summary page to match the spec. r=MattN
MozReview-Commit-ID: FOyD7DkwjHk
2018-07-20 11:13:43 -07:00
prathiksha
654d27cfc6 Bug 1463554 - Fix auto-selection errors in pickers on the payment summary page.r=MattN
MozReview-Commit-ID: Hlj7RHXnpWi
2018-06-21 15:03:36 -07:00
prathiksha
eeeee70c4d Bug 1463554 - Use native <option> UI with <rich-select> in the open state. r=MattN
MozReview-Commit-ID: KwuLdb6bz9L
2018-05-31 12:19:54 -07:00
Jared Wein
33bb7942c7 Bug 1429180 - Option to use a new billing address when adding a new payment method. r=MattN
MozReview-Commit-ID: 5LrpUw1LdT3
2018-05-10 15:12:01 -04:00
Sam Foster
f37f93e022 Bug 1427960 - Add temporary addresses to state, add toggle to enable saving/not new addresses. r=MattN
* Implement store in paymentDialogWrapper for temporary addresses & creditCards
* Add the persist checkbox to the add/edit address form. Defaults to unchecked when adding an address in a private session.
* The union of saved and temporary addresses can be retrieved from paymentRequest.getAddresses(). References to state.savedAddresses updated to use this when appropriate
* New tests for adding and editing addresses from a private window


MozReview-Commit-ID: KyD2BPNFYtZ
2018-04-26 15:05:10 -07:00
prathiksha
4a45c9737d Bug 1461455 - Show the total header in FTU wizard pages. r=MattN
MozReview-Commit-ID: 3EMT3nZ2sYe
2018-05-15 11:08:19 -07:00
Jared Wein
b4334c5dfc Bug 1440504 - Restrict fields on the payer contact page to those requested by the PaymentOptions object. r=MattN
MozReview-Commit-ID: 1aW0eTo6HYM
2018-05-03 11:36:44 -04:00
Jared Wein
3aa015608e Bug 1457317 - Show a title for the add/edit pages. r=MattN
MozReview-Commit-ID: 9B8aA6lPpJX
2018-04-26 15:43:31 -07:00
Jared Wein
68ad8c43c2 Bug 1446203 - Basic Payment Request Shipping Address Add/Edit page. r=MattN
MozReview-Commit-ID: 9f0vPciw65V
2018-04-10 11:53:16 -04:00
Matthew Noorenberghe
0c8c81240e Bug 1457287 - Move Payment Request UI code to browser/. r=jaws
MozReview-Commit-ID: LjrRXr1thc8
2018-04-27 07:20:32 -07:00