Closed
Bug 1463547
Opened 7 years ago
Closed 6 years ago
Hide the "edit" link in the pickers when no options are selected
Categories
(Firefox :: WebPayments UI, defect, P1)
Firefox
WebPayments UI
Tracking
()
VERIFIED
FIXED
Firefox 63
Tracking | Status | |
---|---|---|
firefox63 | --- | verified |
People
(Reporter: MattN, Assigned: prathiksha)
References
(Blocks 1 open bug)
Details
(Whiteboard: [webpayments] [user-testing])
Attachments
(1 file)
See the top left of
https://mozilla.invisionapp.com/share/SDFY4PA4EQ7#/screens/292978667
In practice with the FTU this would only happen if the user deletes the address/card from prefs while the dialog is open.
Reporter | ||
Updated•7 years ago
|
Reporter | ||
Updated•7 years ago
|
Priority: P2 → P3
Whiteboard: [webpayments] → [webpayments-reserve]
Reporter | ||
Comment 1•6 years ago
|
||
This case will also happen when there is no onboarding after bug 1443735. Eric said today that we should hide "Edit" (and therefore the separator I assume) when no shipping address is selected by default.
Blocks: 1443735
Reporter | ||
Updated•6 years ago
|
Summary: Show an "add" link and better fallback text inside pickers/<rich-select> when there are no options → Hide the "edit" link and show better fallback text inside pickers/<rich-select> when there are no options
Reporter | ||
Updated•6 years ago
|
Whiteboard: [webpayments-reserve] → [webpayments-reserve] [user-testing]
Updated•6 years ago
|
Priority: P3 → P2
Whiteboard: [webpayments-reserve] [user-testing] → [webpayments] [user-testing]
Assignee | ||
Updated•6 years ago
|
Assignee: nobody → prathikshaprasadsuman
Status: NEW → ASSIGNED
Updated•6 years ago
|
Priority: P2 → P1
Assignee | ||
Comment 2•6 years ago
|
||
Filed Bug 1478822 to keep track of setting the fallback text in pickers when no option is selected.
Summary: Hide the "edit" link and show better fallback text inside pickers/<rich-select> when there are no options → Hide the "edit" link in the pickers when no options are selected
Comment hidden (mozreview-request) |
Reporter | ||
Comment 4•6 years ago
|
||
mozreview-review |
Comment on attachment 8995358 [details]
Bug 1463547 - Hide the edit link in the pickers when no options are selected.
https://reviewboard.mozilla.org/r/259814/#review266828
Please add a check of the visibility for the address picker in test_initialState in test_payment_dialog.html and a more-specific test for a picker in test_empty in test_address_picker.html.
::: browser/components/payments/res/containers/payment-method-picker.js:69
(Diff revision 1)
> if (selectedPaymentCardGUID && selectedPaymentCardGUID !== this.dropdown.value) {
> throw new Error(`The option ${selectedPaymentCardGUID} ` +
> `does not exist in the payment method picker`);
> }
> +
> + super.render(state);
Please add these calls to all of the other subclasses too just so they don't get missed in future `render` improvements.
::: browser/components/payments/res/containers/rich-picker.js:53
(Diff revision 1)
> this.labelElement.textContent = newValue;
> }
> }
> +
> + render(state) {
> + this.editLink.hidden = !this.dropdown.popupBox.value;
Nit: `!this.dropdown.value` (get rid of `popupBox`) since the picker shouldn't rely on the popupBox implementation detail
Attachment #8995358 -
Flags: review?(MattN+bmo)
Comment hidden (mozreview-request) |
Assignee | ||
Comment 6•6 years ago
|
||
mozreview-review-reply |
Comment on attachment 8995358 [details]
Bug 1463547 - Hide the edit link in the pickers when no options are selected.
https://reviewboard.mozilla.org/r/259814/#review266828
> Please add these calls to all of the other subclasses too just so they don't get missed in future `render` improvements.
As we discussed, I did not add this line to the render function of shipping-option-picker.js as it breaks the visibility of the edit link for that picker.
Reporter | ||
Comment 7•6 years ago
|
||
mozreview-review |
Comment on attachment 8995358 [details]
Bug 1463547 - Hide the edit link in the pickers when no options are selected.
https://reviewboard.mozilla.org/r/259814/#review266838
Thanks!
::: browser/components/payments/test/mochitest/test_address_picker.html:36
(Diff revision 2)
> /** Test the address-picker component **/
>
> import "../../res/containers/address-picker.js";
>
> let picker1 = document.getElementById("picker1");
> +let editLink = picker1.querySelector(".edit-link");
Nit: You could do `picker1.editLink` instead.
Attachment #8995358 -
Flags: review?(MattN+bmo) → review+
Comment hidden (mozreview-request) |
Reporter | ||
Updated•6 years ago
|
Flags: qe-verify+
QA Contact: hani.yacoub
Updated•6 years ago
|
Whiteboard: [webpayments] [user-testing] → [webpayments-reserve] [user-testing]
Updated•6 years ago
|
Whiteboard: [webpayments-reserve] [user-testing] → [webpayments] [user-testing]
Reporter | ||
Comment 10•6 years ago
|
||
The try push looked Green so landing now.
Flags: needinfo?(MattN+bmo)
Comment 11•6 years ago
|
||
We're sorry, Autoland could not rebase your commits for you automatically. Please manually rebase your commits and try again.
hg error in cmd: hg rebase -s eff0f0de010c46a461a131421e0b8ad28997fc3a -d 8b2d475dff2c: rebasing 476496:eff0f0de010c "Bug 1463547 - Hide the edit link in the pickers when no options are selected. r=MattN" (tip)
merging browser/components/payments/res/containers/address-picker.js
merging browser/components/payments/res/containers/payment-method-picker.js
merging browser/components/payments/res/containers/rich-picker.js
warning: conflicts while merging browser/components/payments/res/containers/rich-picker.js! (edit, then use 'hg resolve --mark')
unresolved conflicts (see hg resolve, then hg rebase --continue)
Comment 12•6 years ago
|
||
Pushed by mozilla@noorenberghe.ca:
https://hg.mozilla.org/integration/mozilla-inbound/rev/b7893e7f4bb5
Hide the edit link in the pickers when no options are selected. r=MattN
Comment 13•6 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
status-firefox63:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 63
Comment 14•6 years ago
|
||
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:63.0) Gecko/20100101 Firefox/63.0
Verified - Fixed on the latest Nightly 63.0a1 (2018-08-06) on Windows 10 x64, Ubuntu 16.04, Mac OS 10.13, Windows 7 x64.
The "Edit" link is hidden if there is no option selected for the address.
You need to log in
before you can comment on or make changes to this bug.
Description
•