Граф коммитов

2662 Коммитов

Автор SHA1 Сообщение Дата
Shane Tomlinson cc8bd896e9
refactor(experiment): Extract a common `isTestEmail` function for all experiments. (#6294) r=@philbooth
mozilla.com, mozilla.org, softvision.ro and softvision.com are test emails.
We had tests for those emails in several locations and more will add more.

Extraction from #6273
2018-06-21 19:51:55 +01:00
Shane Tomlinson f75a60a4e9
Merge pull request #6293 from mozilla/issue-6290-fix-signup-test r=@philbooth
fix(test): Fix the sign_up->afterVisible test
2018-06-21 11:57:23 +01:00
Shane Tomlinson feb9510b15
chore(test): Make the `wrapAssertion` method easier to read.
Move the `done` inside the try block, remove teh `return` from the catch block.
2018-06-21 11:23:28 +01:00
Shane Tomlinson e64af669f5
fix(timers): Ensure listeners are bound even if an invalid timer is passed to clearTimeout 2018-06-21 11:18:50 +01:00
Shane Tomlinson 5d10672976
fix(timers): Always destroy timers created in view.setTimeout.
clearTimeout did not check whether `timeout` was defined
before trying to clear the timer and update the list of timers.

The fix is to check for a `timeout` reference in clearTimeout
before updating `this._timers`

fixes #6291
2018-06-21 10:50:46 +01:00
Shane Tomlinson c9f4a65e23
fix(test): Fix the sign_up->afterVisible test
There were two problems, the first is that the assertion needed to be wrapped to ensure
failures were always surfaced. The second problem was TestHelpers.wrapAssertion would
call `done` twice if a test failed.

fixes #6290
2018-06-21 10:19:04 +01:00
Shane Tomlinson fe9c262404 refactor(module): Remove AMD wrapper from SignUpPasswordView (#6287) r=@vladikoff
Extraction from #6273
2018-06-20 00:29:56 -04:00
Ryan Feeley 1fd05d2110 fix(typo): Moved the period outside of link
https://github.com/mozilla/fxa-content-server/pull/6285
r=philbooth
2018-06-19 07:13:40 +01:00
Shane Tomlinson 1c66a227b2
Merge pull request #6274 from mozilla/fix-ios-zoom r=@vbudhram
fix(style): Fix input element zoom issues on iOS.
2018-06-12 17:39:09 -07:00
Shane Tomlinson 6f7a48d90e fix(style): Fix input element zoom issues on iOS.
Set input element font-size to 16px.
2018-06-12 06:06:22 -07:00
Vlad Filippov 054b3920c6
fix(oauth): translate oauth permissions (#6271) r=@vbudhram
Fixes #4758
2018-06-11 17:50:28 -07:00
Vijay Budhram 66d5278481
fix(codes): use number pad when entering totp code (#6269), r=@vladikoff 2018-06-08 14:29:18 -04:00
Vlad Filippov b4d82d97a9
feat(websessions): reenable websessions (#6270) r=@vbudhram 2018-06-08 09:51:28 -07:00
Vijay Budhram 53da50aa0b
fix(codes): adds more support for assistive technologies (#6239), r=@shane-tomlinson 2018-06-07 16:50:20 -04:00
Vijay Budhram 32d9d6812d
fix(refresh): adds `Last checked:` as tooltip, updates `Refresh` to `Refresh Status` (#6238), r=@shane-tomlinson 2018-06-06 14:56:18 -04:00
Vijay Budhram 7e3ddfd61a chore(totp): enable totp for 100% of users (#6256), r=@shane-tomlinson 2018-06-06 09:53:13 -04:00
Vijay Budhram a99c286a4d
fix(codes): append email to recovery code download file (#6237), r=@shane-tomlinson 2018-06-06 09:26:08 -04:00
Beatriz Rizental 7354d478d4 fix(css): make "show password" button background white on blur (#6260) r=@vladikoff
Fixes #6196

Fix explained what I did here on #6196 (comment)


Tested in Chrome, iOS and Firefox
2018-06-05 22:07:17 -04:00
Vlad Filippov 28ad88fb6f Train 113 uplift (#6253) r=@shane-tomlinson
* fix(authorization): Minor updates for /authorization endpoint (#6252) r=@vladikoff

The test to see whether /authorization correctly redirects the user
to /signup did not pass an email address and looked for the wrong
selector. The test was fixed by specifying an email address and
updating the selector.

Calling /authorization w/o an `action` query parameter should
default to send users to `/oauth` and allowing the content
server to decide the next step based on whether a user is signed in.

fixes #6250

* Release v1.113.2
2018-06-05 12:08:25 +01:00
Shane Tomlinson 82e30b55fc fix(email-first): Handle email-first refresh on /signup, /signin (#6245) r=@vladikoff,@philbooth
If users are in the email-first flow via `action=email` instead
of being in the experiment and they refreshed on /signin or
/signup, the legacy /signin or /signup pages would be displayed.

In beforeRender, if `action=email`, redirect back to `/`

fixes #6243
2018-05-31 23:30:04 -04:00
Deepti 7a17f4895b Host oauth authorization URL on content server (#6214) r=@vladikoff,@shane-tomlinson
Fixes #6113

Co-authored-by: deeptibaghel <deeptibaghel@gmail.com>
2018-05-30 14:50:52 -04:00
Vlad Filippov 0921bc53e9
feat(metrics): metrics flow for iframeless flow (#6227) r=@philbooth
Fixes #5882
2018-05-29 20:29:14 -04:00
Vijay Budhram 59b344db25
fix(recovery): support copying recovery codes in ios (#6232), r=@vladikoff 2018-05-29 10:40:21 -04:00
Vijay Budhram cd2718d1c0 fix(css): make sign-in confirm button blue (#6233) 2018-05-24 22:31:22 -04:00
Shane Tomlinson 35f88faee1
fix(style): Fix the link focusring style. (#6215) r=@philbooth
`.links` uses flexbox to center elements by default, and a margin
to push right links to the far side of the content.

The focusrings are more consistent now, they always show.

Also removes the list item bullets on /confirm_reset_password

fxies #6204
2018-05-21 14:50:57 +01:00
Shane Tomlinson 07967b58f1
fix(style): Fix the error message/heading styles in settings (#6216) r=@philbooth
* Remove the bottom-margin of the headings in settings-panels.
* Ensure the error message clears the heading floated content.
* Remove the padding on the error content, that's handled universally.

fixes #6206
2018-05-21 14:50:41 +01:00
Vijay Budhram 2a0b52d6f3
feat(totp): enable totp for 10% of all users (#6212), r=@shane-tomlinson 2018-05-18 11:38:21 -04:00
Vlad Filippov b180d1dc04
fix(tests): adjust mozilla.org link to have www (#6199) 2018-05-15 14:45:47 -04:00
Shane Tomlinson fe3706ccda
fix(tooltip): Show tooltips above the input on mobile (#6195) r=@vladikoff
Tooltips can be obscured by a phone's virtual keyboard.
To avoid hidden tooltips, show tooltips above the
input element on mobile phones.

The check for mobile is rudimentary, the screen
size is checked. If it's width or height is smaller
than the breakpoints used in the CSS, consider
the user on a mobile device.

fixes #6188
2018-05-15 17:09:14 +01:00
Shane Tomlinson cffe58bb9b
feat(signin): Show a user "card" for the email-first signin flow. (#6187) r=@vbudhram, @vladikoff
I only added this to the email-first flow because it was tricky
to get this to work for the legacy signin flow and I want to
get this merged before the train cut.

I'll open a follow-on PR to add this behavior to the legacy flow.

issue #6083 
fixes #6052
fixes #6126
2018-05-15 17:08:42 +01:00
Shane Tomlinson 0eab619612
fix(settings): Fix the position of the rotate button. (#6192) r=@philbooth
The button needed a width to fix the core problem.

While I was in there, I changed all 3 controls
to buttons to be more semantic, and added some mouse
states.

fixes #6166
2018-05-15 13:07:26 +01:00
Shane Tomlinson ba27a39624 feat(sms): Fully roll out SMS in BE, DK, NL (#6190), r=@vbudhram
All 3 countries have a good conversion rate,
time to open up SMS to everyone in those countries!

fixes #6189
2018-05-14 17:33:54 -04:00
Shane Tomlinson 1d0933bb5c
refactor(style): General photon style updates (#6185) r=@vbudhram
This is a general update to more closely align
FxA's styles to the Photon styles specified
in https://app.zeplin.io/project/5ad79b0f8964ebca1c06cab8/dashboard

* Email opt-in text on email-first sign up page uses the same text as the legacy sign up page.
* Firefox logo is 56x56px on mobile
* Show the user's email address in bold and on its own line in the confirm page.
* Simplify the .graphic CSS, styling
* Headers follow Photon guidelines
* Spacing around bottom links follow Ryan Gaddis' guidelines
* Simplify tos-pp CSS, styling.

issue #6083
2018-05-14 22:06:48 +01:00
Vijay Budhram c83bd01fac
feat(recovery): update view when low on recovery codes (#6181), r=@shane-tomlinson 2018-05-14 12:29:39 -04:00
Shane Tomlinson 8c46222e63
feat(show-password): replace show password with eye icon (#6184) r=@vbudhram, @shane-tomlinson
This work was mostly done by @divyabiyani, I only helped push the feature across the line.
fixes #6023
2018-05-14 09:30:33 +01:00
Shane Tomlinson 1580118295
refactor(style): Apply Photon styles to message boxes (#6183) r=@vbudhram
Extraction from #6116
issue #6083
2018-05-11 10:32:43 +01:00
Shane Tomlinson 5242beb7d4
refactor(styles): Apply Photon styles to input fields. (#6175) r=@philbooth
Part of the styling update is to remove the floating placeholders.

Extraction from #6116
issue #6083
2018-05-09 17:09:51 +01:00
Phil Booth 9ce21db39b
fix(client): improve messaging before delete account (#6178)
As a first step to GDPR compliance, this change improves the messaging
around account deletion so that the user knows to separately delete
their pocket/AMO/whatever account first.

https://github.com/mozilla/fxa-content-server/pull/6178
r=shane-tomlinson
2018-05-09 13:42:40 +01:00
Vijay Budhram fbc0c63289
fix(strings): escape totp sumo string (#6176), r=@philbooth 2018-05-08 21:00:13 -04:00
Shane Tomlinson 85cc444970
refactor(style): Update anchors to use photon colors. (#6167) r=@philbooth
Also attempt to make base anchor colors as generic as possible.

extraction from #6116
issue #6083
2018-05-08 21:35:52 +01:00
Shane Tomlinson 22d1c644ff refactor(experiment): Remove the q3FormChanges experiment. (#6164) r=@vladikoff,@irrationalagent
The experiment has been marked `deprecated`. The experiment
grouping rule is left in tree for a train so that metrics
with the q3FormChanges experiment still pass. This handles
users that loaded FxA before the train was updated but
report metrics after the update.

fixes #5872
2018-05-04 11:25:59 -04:00
Shane Tomlinson 3dd7b778dc
feat(style): Apply Photon styles to the buttons (#6155) r=@vbudhram
* feat(style): Apply Photon styles to the buttons

Extraction from #6116
issue #6083
2018-05-04 14:48:05 +01:00
Vijay Budhram bf4051159e
fix(totp): send service name when verifing totp token (#6153), r=@shane-tomlinson 2018-05-04 08:49:44 -04:00
Shane Tomlinson c5f4fc2df9
fix(basket): Match the expected basket subscribe & lookup-user API (#6160) r=@rfk, @vladikoff
* fix(basket): Match the expected basket subscribe & lookup-user API

* POST to `/subscribe/`
  * Set `content-type: application/x-www-form-urlencoded' header
  * Send `X-Requested-With: XMLHttpRequest` header
* GET /lookup-user with a new query parameter, email

fixes #6076
2018-05-04 10:01:36 +01:00
Shane Tomlinson d45ea18d82 Merge branch 'train-111' 2018-05-04 09:14:24 +01:00
Vijay Budhram d721e0fce0
fix(totp): add sumo link for totp (#6159), r=@shane-tomlinson 2018-05-03 16:32:39 -04:00
Shane Tomlinson 2a55dd5bc2
feat(style): Remove "card" view in mobile layout. (#6158) r=@vbudhram
Instead show a solid grey background.

issue #6083
2018-05-03 20:23:48 +01:00
Shane Tomlinson 1d091506dc feat(style): Use system fonts instead of Fira Sans (#6146) r=@vladikoff
Extraction from #6116
issue #6083
fixes #6145
2018-05-02 22:01:10 -04:00
Vijay Budhram 8dd33fe93a feat(totp): add totp as an experiment and enable for mozilla/softvision (#6141) r=@shane-tomlinson 2018-05-02 12:56:40 +02:00
Vlad Filippov f38b20a740
fix(strings): remove extra spaces from session (#6148) 2018-05-01 16:55:47 -04:00
Vijay Budhram 6862a63ced
fix(session): add session token to account delete (#6099), r=@shane-tomlinson 2018-05-01 14:11:48 -04:00
Ryan Kelly f93c112a87
feat(keys): Allow fetching scoped keys for use with Firefox Sync. (#6017); r=stomlinson,vladikoff 2018-05-01 07:32:19 +10:00
Shane Tomlinson 8f884aa200 refactor(oauth): Remove support for AMO migration text (#6131) r=@vladikoff
`migration=amo` will not cause an error, but no special
help text is displayed either. The value is dropped on
the ground.

fixes #6123
2018-04-30 11:53:55 -04:00
Vijay Budhram 2e0b193c5b
feat(session): update upgrade session panel (#5922), r=@shane-tomlinson 2018-04-27 14:05:20 -04:00
Shane Tomlinson d6d336a250
fix(ios): iOS only shows numbers in the keyboard for the age input (#6133) r=@vbudhram
For whatever reason, iOS will display the entire keyboard on an
`<input type="number" />` element. Adding `pattern="\d*"` fixes
the problem.

fixes #6132
2018-04-27 19:19:24 +02:00
Shane Tomlinson f20822c9bf
refactor(sync): Remove support for migration=sync11 (#6130) r=@philbooth
This feature has not been used by Firefox release for quite
some time.

The query parameter value is still considered valid because
there are a few dozen people that go through the flow every
month, but the value is dropped on the ground.

fixes #6122
2018-04-27 13:17:19 +02:00
Vijay Budhram f9d5a6eb7d
fix(css): Update recovery code placeholder text, and recovery code css size (#6100), r=@shane-tomlinson 2018-04-26 11:05:42 -04:00
Vlad Filippov f5831d4c16
Merge pull request #6112 from mozilla/train-110
Uplift train-110 to master
2018-04-24 21:45:57 -04:00
Ryan Kelly 5b259ad2c3 fix(permissions): Allow untrusted reliers to request 'openid' scope. (#6111) r=@vladikoff
Fixes https://github.com/mozilla/fxa-content-server/issues/6106
2018-04-24 20:59:42 -04:00
Vijay Budhram 73184383ce fix(code): disable token code experiment for 123done (#6103) r=@rfk,@vladikoff
Fixes #6102

Disables token code experiment for 123done and updated experiment to use an override-able config.
2018-04-23 22:15:17 -04:00
Vlad Filippov bd87d97a74 Merge branch 'train-109' into 'master'
# Conflicts:
#	CHANGELOG.md
#	package.json
2018-04-23 10:26:32 -04:00
Shane Tomlinson aa19e3bf94 refactor(oauth): Simplify the Chrome for Android handling.
Add a new broker, oauth-redirect-chrome-android to take care
of the messy bits.
2018-04-20 16:13:19 -04:00
vladikoff 69e9ffcdac fix(oauth): make Chrome for Android able to sign up and sign in via button confirmation
Fixes #6089
2018-04-20 16:13:19 -04:00
Shane Tomlinson 0751c01e7c
feat(metrics): Generate a node.js compatible experiment name list (#6087) r=@philbooth
A node.js script can access an always up-to-date experiment list
using:

```js
const experimentNames = require('app/scripts/lib/experiment/grouping-rules').EXPERIMENT_NAMES;
```

Do do this, all grouping-rules modules needed to have their AMD
wrappers removed and instead use normal CommonJS syntax.

issue mozilla/fxa-amplitude-send#61
2018-04-19 14:48:21 +02:00
Vijay Budhram c18bdf3cb3
fix(tests): update tests for recovery code updates (#6075), r=@philbooth 2018-04-17 11:12:20 -04:00
Shane Tomlinson 71a20af500
feat(email-first): Enable the email-first flow for OAuth reliers. (#6034) r=@philbooth
Reliers must specify the `action=email` query parameter when
calling the /authorization endpoint on the OAuth server.

fixes #6009
2018-04-17 11:42:03 +02:00
Shane Tomlinson 47545b6b97 fix(totp): Fix the "can add TOTP to account and confirm web signin" test (#6069) r=@vladikoff
The selector `.totp-confirm-code` was not added to the submit button as a class.

fixes #6068
2018-04-16 09:38:14 -04:00
Shane Tomlinson 8a9a772f19
fix(email-first): Ensure "Mistyped email" links work as expected. (#6067) r=@philbooth
If a relier specified an email for the email-first flow, users
that clicked on "Mistyped email" saw no visible change in the
screen.

In reality, there was a subtle change, the user was redirected
to `/`, but the redirected back to `/signin` or `/signup`.

This happened because on the 2nd render, the index page saw
that the relier model contained an email address and redirected
back to where the user just was.

To get around this, before checking the email and redirecting,
clear the email from the relier model. The email is saved
into the formPrefill model and that will be used to
prefill the email when the user comes back.

A small change to the router was needed to. In the "email-first"
flow, ensure the user can go back.

fixes #6033
2018-04-16 11:55:12 +02:00
Vijay Budhram e31e97afba
fix(email): send correct email when using unblock code (#6064), r=@philbooth, @shane-tomlinson 2018-04-13 10:56:32 -04:00
Vijay Budhram c2ac36d5d1
fix(css): make qr code padding consistent (#6048), r=@shane-tomlinson 2018-04-13 09:39:47 -04:00
Shane Tomlinson e052e1ebaa
feat(SMS): Roll out Denmark(DK) to 50%. (#6065) r=@philbooth
We have had testers confirm the flow is in good shape.
2018-04-13 15:10:28 +02:00
Shane Tomlinson 0816af5924
chore(deps): Update sinon to @4.5.0 (#6038) r=@vbudhram
This version includes a function I've always wanted, `calledOnceWith`.
2018-04-11 11:33:33 +02:00
Phil Booth c3669ba954 Merge branch 'private/train-109' 2018-04-11 07:04:56 +01:00
Vlad Filippov 203858b923
fix(experiment): Disable A/B experiment interface for navigator.webdriver r=@rfk
Fixes #6026
2018-04-10 15:04:24 -04:00
Vlad Filippov f19eddf964
fix(style): disable 'clear' button for default avatar (#6037) r=@vladikoff
Fixes #5935 

Co-authored-by: DGRamya <ramyshreedg@gmail.com>
2018-04-09 17:11:52 -04:00
Hritvi Bhandari 0bdf73d2c6 fix(style): drag-off state for buttons r=@vladikoff
fixes #5255
2018-04-09 16:52:15 -04:00
Shane Tomlinson e00b6ade43
feat(signup): Add verification password to email-first signup. (#6028) r=@vbudhram
Also adds the new helper text as mentioned in
https://github.com/mozilla/fxa-content-server/pull/5940#issuecomment-369958442

fixes #5947
2018-04-09 20:21:31 +02:00
Shane Tomlinson 193ca259dc feat(sms): Partial SMS rollout in BE and NL. (#6032)
Both countries have been tested by local testers
and are given the thumbs up!

fixes #6031
2018-04-09 09:50:08 -04:00
Vijay Budhram c3732cdba5 feat(recovery): add initial recovery codes 2018-04-06 10:04:17 -04:00
Phil Booth c4f2232412
chore(emails): use popular email domain list from fxa-shared
https://github.com/mozilla/fxa-content-server/pull/6019
r=vbudhram
2018-04-05 18:42:22 +01:00
Vlad Filippov a777ecfc73
fix(oauth): fix password reset for scoped reliers verifying in same browser (#6010) r=@rfk
Fixes #5934
2018-03-29 18:29:29 -04:00
Phil Booth ec082c1a33
feat(metrics): add an email_domain property to amplitude click events
Fixes mozilla/fxa-amplitude-send#25.

For privacy reasons, if the user's email address is not from one of the
20 most popular email domains, the property will be set to 'other'.

https://github.com/mozilla/fxa-content-server/pull/6012
r=vbudhram
2018-03-29 20:21:38 +01:00
Phil Booth 730c27f466 Merge branch 'train-108' 2018-03-29 13:54:40 +01:00
Vijay Budhram df1c4f288d fix(token): disable token code experiment for sync users (#6007) r=@vladikoff 2018-03-28 13:44:10 -04:00
Vlad Filippov f93cbd26ec
fix(signin): Handle deleted account and new email login afterwards (#5997) r=@vbudhram
Fixes #4316
2018-03-22 15:09:20 -04:00
Ryan Kelly 4fb90daae5 feat(password): Check old password using sessionReauth if possible. (#5946), r=@vbudhram 2018-03-20 19:28:07 +00:00
Vlad Filippov eacab12203
feat(webpack): load imports from CDN (#5989) r=@philbooth
Fixes #5989
2018-03-20 10:12:32 -04:00
Hritvi Bhandari 7d679200ab style(settings): Disabled the done button on secondary email(#5981), r=@vbudhram 2018-03-19 18:22:04 +00:00
Vijay Budhram 340cb54091 Merge branch 'train-107' 2018-03-13 14:19:00 -04:00
Vijay Budhram 8a3b610c93
feat(totp): initial totp implementation (#5962), r=@vladikoff 2018-03-13 15:09:58 +00:00
Phil Booth 749531631f Merge branch 'train-107' 2018-03-12 12:48:52 +00:00
Vlad Filippov 498c392686
fix(account): fix [object Object] errors in Sentry (#5971) r=@philbooth
Fixes #5364
2018-03-09 10:55:22 -05:00
Vlad Filippov bac94415c0
feat(styles): make SVG hearts beat (#5960) r=@ryanfeeley,@vbudhram
Fixes #5662
2018-03-08 19:09:33 -05:00
Vlad Filippov 13dffa3c66
feat(token): enable tokenCode experiment in desktopV3 (#5964) r=@vbudhram,@vladikoff 2018-03-08 13:15:04 -05:00
Ryan Kelly 8505c34573 Merge branch 'train-106' into train-107 2018-03-08 10:22:12 +11:00
Vlad Filippov a3ac6447fd feat(clients): Add Lockbox icon, fix Pontoon icon (#5959), r=@vbudhram 2018-03-07 18:46:16 +00:00
Vlad Filippov 339ed9acb3
feat(oauth): force validate provided redirect uri (#5948) r=@rfk
BREAKING CHANGE: OAuth redirect uris must be updated in the database

Fixes #5827
2018-03-06 20:36:54 -05:00
Vlad Filippov abe053605a
refactor(js): remove require.js remains (#5953) r=@vbudhram 2018-03-06 19:05:09 -05:00
Vijay Budhram 1197a33017 fix(token): use the correct service (#5955) r=@vladikoff 2018-03-06 18:53:37 -05:00
Vlad Filippov 449ee739f0
chore(typo): fix test typo in fxa-client (#5954) 2018-03-06 15:54:08 -05:00
Ryan Kelly dffe305e3d feat(signin): Re-authenticate an existing session if possible. (#5899) r=@vladikoff,@vbudhram
Fixes #5703
2018-03-06 14:10:22 -05:00
Vlad Filippov 96ca4c0903
fix(sign_up): changes to l10n string and style based on feedback (#5952) 2018-03-06 12:25:09 -05:00
Vlad Filippov bac0c07c69
feat(forms): replace our password advice with responsive message (#5940) r=@vbudhram,@ryanfeeley
Fixes #5750
2018-03-02 20:41:37 -05:00
Vijay Budhram 20863f876f fix(css): fixes button misalignment when refreshing clients (#5945) r=@vladikoff
Fixes mozilla/fxa-bugzilla-mirror#456
2018-03-01 16:37:40 -05:00
Vlad Filippov a336fba0e8
fix(styles): add position fixed to success messages if user scrolls too far (#5943) r=@vbudhram
Fixes #5552
2018-03-01 16:26:56 -05:00
Vlad Filippov 3fa0254252
fix(styles): fix unlock button for email settings unlock (#5944) 2018-03-01 14:50:46 -05:00
Vlad Filippov be30740e08
fix(strings): change 'confirm email' design to let users know that they should FxA to the address book (#5941) r=@vbudhram
Fixes https://github.com/mozilla/fxa-auth-server/issues/2255
2018-02-28 22:10:27 -05:00
Vlad Filippov 24eddb8a28
feat(avatars): support new default avatar API (#5942)
Unblocks the functional tests on the content server due to profile server API changes
2018-02-28 21:34:03 -05:00
Vlad Filippov d78c038988
Merge pull request #5929 from mozilla/train-106
Uplift v1.106.3 into master
2018-02-23 10:19:06 -05:00
Vlad Filippov a151f7c9bb
fix(tests): fixes for oauth tests and reset password (#5928) r=@philbooth
Fixes #5927
2018-02-23 09:15:25 -05:00
Vijay Budhram 2ad238a04e
fix(basket): Show service unavaible when no basket account prefs set (#5867), r=@philbooth 2018-02-22 15:00:32 +00:00
Phil Booth fb2729593d Merge branch 'train-106' 2018-02-22 07:24:08 +00:00
Princi Vershwal 4eda3b60c7 fix(settingView): All panels will be closed while navigating from a child-view to settings. (#5803) r=@vladikoff 2018-02-21 14:47:33 -05:00
Vijay Budhram c99b5ca042 feat(code): enable token code experiment sync users for 1.8% each cohort (#5926) r=@vladikoff 2018-02-21 14:34:09 -05:00
Phil Booth d04620efd2
fix(errors): ensure that toError always behaves sanely
https://github.com/mozilla/fxa-content-server/pull/5905
r=vbudhram
2018-02-17 07:49:46 +00:00
Vijay Budhram d1f878b0d4
chore(password): graduate confirm password experiment (#5917), r=@philbooth, @vladikoff 2018-02-16 18:31:20 +00:00
Vijay Budhram 60e9164bb2 fix(experiment): fix the token code experiment (#5918) r=@vladikoff 2018-02-16 12:13:41 -05:00
Ryan Feeley 0c1e614c41 fix(copy): Show email section to view status (#5908), r=@vbudhram 2018-02-16 15:35:25 +00:00
Vlad Filippov a6d7a94550
refactor(deps): remove bower (#5915) r=@vbudhram 2018-02-15 15:52:17 -05:00
Vlad Filippov b5f42686df fix(styles): fix icon overlap in CWTS on iOS (#5909), r=@vbudhram 2018-02-15 15:32:43 +00:00
Vlad Filippov a98d7a359d fix(strings): update communication pref strings (#5910), r=@vbudhram 2018-02-15 14:53:51 +00:00
Vlad Filippov 771c4cb54b
revert(tokencode): revert isSync detection (#5913) r=@rfk
See https://github.com/mozilla/fxa-content-server/issues/5912
2018-02-14 18:14:57 -05:00
vladikoff a1a1715e1b Merge branch 'train-105' 2018-02-12 16:53:22 -05:00
Vlad Filippov de3d61e2db
refactor(strings): remove "cloud services" (#5904) r=@vbudhram,@ryanfeeley 2018-02-12 16:40:50 -05:00
Vlad Filippov 1514796b2b
fix(style): swap reset links per feedback (#5903) r=@ryanfeeley 2018-02-12 15:29:25 -05:00
Vlad Filippov 6e05ab9e7e
feat(styles): improve reset password for reliers (#5896) r=@ryanfeeley,@vbudhram
Fixes #5776
Fixes https://github.com/mozilla/fxa-bugzilla-mirror/issues/458
2018-02-09 20:10:25 -05:00
Vijay Budhram 5f714def11 fix(tokenCode): Add support for tokenCode sync experiment (#5894) r=@vladikoff
Fixes #5886

This PR adds support to perform tokenCode experiment on sync users. WIP Until mozilla/fxa-auth-db-mysql#303 and mozilla/fxa-auth-server#2287 are merged.
2018-02-08 13:53:03 -05:00
Vlad Filippov 08e931e848
feat(eslint): bring back indent rule (#5887) r=@vbudhram
Fixes #5875
2018-02-08 09:35:23 -05:00
Vlad Filippov 6bd8b5cd44
fix(avatar): add spinner to avatar loading (#5888) r=@vladikoff
Fixes #5006

Co-authored-by: Soumya Himanish Mohapatra <shmiitian@gmail.com>
2018-02-07 20:14:13 -05:00
Phil Booth 5cbac34512 fix(cad): hide the success message after direct navigation (#5881) r=@vladikoff
Fixes #5852
2018-02-07 11:11:33 -05:00
Vlad Filippov e0bd497f91
feat(build): migrate to webpack (#5868) r=@philbooth,@vbudhram
Fixes https://github.com/mozilla/fxa-content-server/issues/5831

Co-authored-by: Shane Tomlinson <stomlinson@mozilla.com>
2018-02-07 10:46:46 -05:00
Anwesh Nayak d481849335 fix(style) : Setting section success messages border color (#5884) r=@vladikoff
fixes mozilla/fxa#272
2018-02-07 09:39:19 -05:00
Vlad Filippov 936faf8dc7
feat(sms): deploy SMS in Australia to 100% (#5885) r=@rfk
Fixes #5883
2018-02-06 21:09:21 -05:00
Phil Booth e5db03ad22
fix(metrics): emit amplitude click events earlier
Previously, amplitude click events were being triggered from the
verification.success front-end events. As the name suggests, those
events don't occur until after verification has succeeded. This change
ensures they happen as early as possible after the user has clicked.

https://github.com/mozilla/fxa-content-server/pull/5880
r=vbudhram
2018-02-02 22:46:21 +00:00
Vijay Budhram 6174a5c8b5
fix(market): Show marketing when opening on FxiOS (#5871), r=@philbooth 2018-02-02 15:26:41 +00:00
Vijay Budhram 4d6f048eea fix(test): Fix sign-in code test (#5877) r=@vladikoff
Fixes #5874
2018-02-01 23:04:53 -05:00
Anwesh Nayak 35441fc081 fix(notification_align): make notification button align better (#5861) r=@vladikoff,@vbudhram
fixes #5860
2018-01-30 18:21:20 -05:00
Anwesh Nayak a66fa84495 fix(input_capitalize): make input field capitalize (#5862), r=@vbudhram, @vladikoff 2018-01-30 21:53:24 +00:00
Vijay Budhram df6efe5a00
fix(experiment): Add the `treatment-link` to token code experiment (#5849), r=@philbooth 2018-01-25 15:46:45 +00:00
Vijay Budhram bdb690bd6d
fix(emails): enable change email for users (#5851), r=@philbooth 2018-01-25 14:54:15 +00:00
Soumya Himanish Mohapatra c34800aaa8 fix(style): add padding over save settings button (#5841), r=@vbudhram 2018-01-22 20:45:29 +00:00
Soumya Himanish Mohapatra f86889b2e9 refactor(icon): replace firefox-notes icon (#5833), r=@vbudhram 2018-01-19 11:34:17 -05:00
Vlad Filippov bf4d9adb31 feat(sms): enable sms 100% for PT, ES, FR, IT. 50% for AU (#5829); r=rfk 2018-01-17 16:49:58 +11:00
Vijay Budhram 4fb8208ba4
feat(signin): Add token codes experiment (#5706), r=@pb, @vladikoff 2018-01-16 12:25:46 -05:00
vladikoff d71916ffc3 revert(settings): #4982 clear inputs on Esc keyup (#5821) r=@vladikoff
This reverts commit bdd3915

Reason: https://github.com/mozilla/fxa-content-server/pull/5821#issuecomment-357100379
2018-01-11 18:58:08 -05:00
Vlad Filippov 1982475cf3
refactor(ios): remove old timer hack for Firefox iOS6, remove old tests (#5823) r=@vbudhram
Fixes #5820
2018-01-11 17:39:48 -05:00
Vlad Filippov 18228ec4c3
fix(typo): typo in test name and fxa-client (#5828) 2018-01-11 17:39:03 -05:00
Mutasem Aldmour bdd39157b4 fix(settings): #4982 clear inputs on Esc keyup (#5821) r=@vladikoff
Fixes #4982 clear inputs on Esc keyup event
2018-01-11 16:36:25 -05:00
vladikoff 592d0e0018 refactor(sms): clean up 2018-01-04 22:03:39 -05:00
shikhar-scs 98373a06ad perf(fxa-client): removed sms-errors.js
perf(fxa-client): removed sms-errors.js

perf(fxa-client): removed sms-errors.js

perf(fxa-client): removed sms-errors.js

perf(fxa-client): removed sms-errors.js

perf(fxa-client): removed sms-errors.js
2018-01-04 22:03:39 -05:00
Vlad Filippov 1a18855ba5
revert(sms): "Remove sms errors.js" (#5811)
* Revert "feat(client): update to fxa-js-client 0.1.70 (#5809)"

This reverts commit 8ecd8873c4.

* Revert "refactor(sms): remove sms errors.js"

This reverts commit fd3399f84a.
2018-01-04 20:53:14 -05:00
Vlad Filippov fd3399f84a
refactor(sms): remove sms errors.js
Fixes #5708

From https://github.com/mozilla/fxa-content-server/pull/5808
2018-01-04 19:29:57 -05:00
Shane Tomlinson cb3acb2336 feat(SMS): Set France (FR) to 50% (#5800) r=@vladikoff 2018-01-04 15:15:09 -05:00
Shane Tomlinson 9dd4e4a4e1 refactor(l10n): Make translation fetch Webpack compatible. (#5785) r=@vladikoff
Using `require('/i18n/clients.json');` works perfectly
in RequireJS because it makes a network request for the
resource, but not in Webpack where the bundler
attempts to read that file from disk.

Instead of leaning on RequireJS to fetch the resource
using an XHR request, use an XHR request directly.

Note: this only affects dev mode, translations
are still built into the final bundle in prod mode.
2017-12-21 11:53:43 -06:00
Shane Tomlinson d29140e57e feat(CAD): /connect_another_device redirects to /sms for eligible users. (#5766) r=@vladikoff
fixes #5737
2017-12-20 14:00:28 -06:00
Shane Tomlinson b66a317723 feat(SMS): Set Italy (IT) to 50% (#5799), r=@vbudhram 2017-12-20 14:36:02 -05:00
Shane Tomlinson 5a37b5d183
feat(CAD): Enable CAD on signin for everyone. (#5794) r=@vbudhram
With the caveat that we still show the old screen
for users who are ineligible for CAD - meaning
if another user is currently signed in.

fixes #5793
2017-12-20 16:03:49 +00:00
Mutasem Aldmour 166d63a547 fix(settings): #5680 dismiss tooltips on cancel in settings (#5791) r=@shane-tomlinson
fixes #5680
2017-12-19 15:35:34 +00:00
Princi Vershwal c1977b59be fix(delete_account): Made 'Incorrect Password' error field specific (#5792) r=@shane-tomlinson 2017-12-19 15:22:56 +00:00
Shane Tomlinson 9dff9ab799 feat(sms): Rollout rate of 0.5 for ES, PT, 1 for RO (#5783) r=@vladikoff
fixes #5782
2017-12-18 10:40:52 -06:00
Shane Tomlinson c8f8c93a9f
feat(sms): Add Australia (AU) (#5781) r=@rfk
Goes with https://github.com/mozilla/fxa-auth-server/pull/2248
2017-12-15 17:56:15 +00:00
Shane Tomlinson e977be433c Merge branch 'train-101' 2017-12-07 14:47:50 +00:00
Shane Tomlinson 4563a61d1f
feat(sms): Fully roll out Germany (DE) and Austria (AT) (#5775) 2017-12-07 14:45:10 +00:00
Ryan Feeley 2f29c7a5c0 fix(image):Descaled icons for snappier rendering (#5770) r=@shane-tomlinson
Noticed that on a low-resolution screen that these images were being scaled and were not pixel snapped (a + should render with no anti-aliasing on right angles). I hope this fixes it, give it a try before accepting please.
2017-12-06 15:08:32 +00:00
Ryan Kelly 4dc0a9883a
Merge pull request #5773 from mozilla/train-101
Merge train-101 point release to master
2017-12-06 12:04:15 +11:00
Shane Tomlinson 5d7366bb26 fix(email-first): Fix FxA resizing in the firstrun page for email-first (#5765); r=rfk
The min-height forced the iframe to be too large on the firstrun page
in the email-first flow. In chromeless, it doesn't really matter
how big the #main-content is, there's no shadow, etc, to display.

Remove the min-height: 300 declaration for chromeless
2017-12-06 10:52:56 +11:00
Vlad Filippov a6429eda17 fix(apps): Update Notes icon (#5768) r=@shane-tomlinson
Fixes #5767
2017-12-04 16:24:31 +00:00
MeridelW c8c8afe07a fix(copy): update sync-engines.js (#5769) r=@vladikoff,@ryanfeeley
Replace"Passwords" with "Logins" to be consistent with Firefox client.
2017-12-01 16:24:55 -05:00
Shane Tomlinson 27c189d3d0
refactor(client): Replace p-promise with native promises (#5543) r=@vbudhram
Replace the p-promise library with native promises. The es6-promise polyfill
is used for browsers that do not support native promises.

BAM!
2017-11-29 19:22:48 +00:00
Shane Tomlinson e191b19402
feat(sms): Enable SMS in Denmark (DK) and the Netherlands (NL) (#5749) r=@vbudhram
fixes #5746
2017-11-29 16:02:37 +00:00
Phil Booth ddd11a2b6a fix(metrics): ensure metrics always has a uid (#5764) r=@vladikoff 2017-11-29 09:55:55 -05:00
Shane Tomlinson 0c585ab1bd fix(test): Fix the StaleElementReference error in the SMS resent test. (#5747)
fixes #5745
2017-11-27 12:21:06 -05:00
Vlad Filippov 302e84f9de
fix(config): switch to .com scopes (#5754) r=@rfk 2017-11-23 22:37:23 -05:00
Shane Tomlinson 924588b68d fix(CWTS): Fix CWTS columns when firstrun is 420px. (#5738) r=@vladikoff,@ryanfeeley,@vbudhram
Set the column width to 150px in the "small" UI.

fixes #5710
2017-11-23 14:39:57 -05:00
Shane Tomlinson 79ef689533
feat(cwts): Move the back button below the submit button. (#5739) r=@ryanfeeley, @vbudhram
fixes #5711
fixes #5724
2017-11-21 20:37:50 +00:00
Ryan Feeley c4422ec8d4 Removed Sync from Sync devices (#5741) r=@shane-tomlinson
We are syncing with other things like password manager and Test Pilot, so I think "devices" is sufficient
2017-11-21 20:37:01 +00:00
Vlad Filippov 13a7525e1c
feat(keys): add HKDF uid salt to scoped keys (#5736) r=@rfk
Add HKDF uid salt to scoped keys
2017-11-20 18:05:26 -05:00
Shane Tomlinson 08ba4de419 fix(modules): Use Webpack compatible module define statements. (#5733) r=@vladikoff
Webpack chockes on `define((require, exports, module) => {`.
Instead, it needs `define(function(require, exports, module) {`

Part of the drive to replace RequireJS with Webpack.
2017-11-17 12:16:06 -05:00
Shane Tomlinson e35b847cac
fix(deps): Forbid use of $ w/o requiring jquery. (#5732) r=@vbudhram
This is in preparation for Webpack. Webpack cannot
use the global `$` reference, the reference must
be made explicit.
2017-11-17 17:07:48 +00:00
Shane Tomlinson 58ddff7c7a
fix(test): A signup test mixed `done` and promises. (#5734) r=@philbooth
Stop returning the promise, only use `done` for this test.

Part of the webpack work.
2017-11-17 17:07:25 +00:00
Shane Tomlinson 48d37cabc9
feat(sms): Enable SMS in Spain (ES), Italy (IT), Portugal (PT) (#5726)
fixes #5574
2017-11-17 17:07:02 +00:00
Shane Tomlinson 20e9aa9898
refactor(l10n): Remove the global `Translator` object. (#5731) r=@philbooth
Not part of any issue.
2017-11-17 17:06:21 +00:00
Shane Tomlinson a4e0fb1d1e
chore(fx-57): Use Fx 57 logo for everyone. (#5729) r=@philbooth
Remove all gating logic and just use the new logo.

fixes #5719
2017-11-17 14:09:06 +00:00
Vlad Filippov dd53307ecf
feat(keys): add support for deriving scoped keys in the oauth flow (#5675) r=@rfk,@shane-tomlinson
Fixes #5494
Fixes #5701
2017-11-17 00:37:08 -05:00
Shane Tomlinson 759e976301 fix(SMS): soft-launch LU. Change default rolloutRate to 0. (#5728) r=@vbudhram
I forgot to add a `rolloutRate` to Luxembourg (LU) which meant
it was being shipped fully rolled out. This is an easy mistake
to make. Instead of setting the default rolloutRate to 1, this
PR changes that to be 0 to avoid this problem. If a country is
fully rolled out, it's rolloutRate must be set to 1.

fixes #5727
2017-11-16 20:56:07 +00:00
Shane Tomlinson 8bee8b7e53
feat(CAD): Enable CAD on signin for 50% of people. (#5722) r=@philbooth
We did all the groundwork to release CAD on signin
but forgot to pull the trigger!

fixes #5721
2017-11-16 13:23:44 +00:00
Shane Tomlinson ac57c33956
feat(sms): Enable SMS to 50% of Germany (DE) (#5723) r=@philbooth 2017-11-16 13:22:23 +00:00
Phil Booth 2c06f6eb51 fix(ui): move device manager buttons to new row on mobile (#5714) r=@shane-tomlinson,@vladikoff,@ryanfeeley
Fixes #5712. Includes and supercedes #5713.
2017-11-14 15:10:24 -05:00
Shane Tomlinson 1d3644e4f6 feat(sms): Bump Austria (AT) to 50% (#5718) r=@vladikoff
An Austria based Mozillian was gracious enough
to test for us and gave us a thumbs up.

Does not have a feature.
2017-11-14 14:56:26 -05:00
Shane Tomlinson a5c28820a8 fix(style): Fix styling for 2nd password experiment. (#5704) r=@vladikoff,@ryanfeeley
fixes #5580
fixes #5581
2017-11-14 14:38:23 -05:00
Shane Tomlinson 9677ec1eac fix(errors): Ensure all server returned errors have entries. r=vladikoff,philbooth (#5707)
This does not fix #4906, but should reduce the number of
errors reported as invalid.

issue #4906
2017-11-14 06:51:53 -05:00
Shane Tomlinson 83dc5ed9af
feat(sms): Enable SMS in Belgium, France, Luxembourg (#5698) r=@philbooth
Monaco is not yet enabled, I have not found a phone
number that validates.

I was being too clever with the phone number validation and
was looking for mobile prefixes. At the same time, I had
the validation logic wrong. For many European countries
a trunk line prefix of `0` can be specified IFF the
country code prefix is not specified. For BE,
FR, and GB, I erroneously allowed the user to delete
the country code prefix, but did not force the trunk
prefix. This is fixed.

@philbooth also noticed that the unit tests for the module
were exploding as more countries are added. He suggested
that I convert the tests to be table driven, which condenses
the tests quite a bit.

issue #5573
2017-11-13 14:24:39 +00:00
Shane Tomlinson 38688e0940 feat(sass): SASS lint warnings are now errors. (#5700) r=@vladikoff
Also fix the errors that remain.

fixes #5699
2017-11-10 10:20:01 -05:00
Shane Tomlinson 455f2ce2fd fix(sms): SMS exp metrics are not reported for fully rolled out countries. (#5683), @vbudhram 2017-11-09 14:32:45 -05:00
Vijay Budhram 04cff4e99f
feat(session): Upgrade user session (#5626), r=@shane-tomlinson, @vladikoff 2017-11-09 11:33:18 -05:00
Vijay Budhram b01a496145 fix(restmail): Fix open restmail links (#5696) r=@vladikoff
Fixes #5666
2017-11-08 17:56:35 -05:00
Edouard Oger 2b403d6621
feat(broker): redirect to Choose What to Sync on newer versions of Firefox for iOS (#5640) r=shane-tomlinson 2017-11-08 14:52:58 -05:00
Shane Tomlinson 4a77b2f468 fix(back-mixin): Fix the "New broker method needed for click" error. (#5695) r=@vladikoff
The back-mixin erroneously passed the back button click event
as `nextViewData` when it invoked the `back` method.

The fix is to use a delegate method that invoked `back`
without the event.

fixes #5515
2017-11-08 13:18:52 -05:00
Phil Booth 3c25d9e850 fix(ui): ensure that long lines wrap in device manager (#5693), r=@vbudhram 2017-11-08 09:15:04 -05:00
Phil Booth d911bcfbcc fix(devices): use initial capital letter on strings (#5692), r=@vbudhram 2017-11-08 09:03:48 -05:00
Shane Tomlinson c982e6ab7b Merge branch 'train-99' 2017-11-08 11:10:07 +00:00
Shane Tomlinson 6b1617bd6a
fix(sms): If SMS is enabled, always send a signinCode. (#5688) r=@vbudhram
We know that SMS with signinCodes perform better than SMS w/o signinCodes.
Always use a signinCode if SMS is enabled.

The second half of the fix for #5685

issue #5685
2017-11-07 22:25:52 +00:00
Shane Tomlinson beb319045b Merge branch 'train-99' 2017-11-07 18:28:07 +00:00
Mutasem Aldmour 4ccff91a03 fix(signin): autofocus on sign in button when password is not required (#5657) r=@vladikoff
Fixes #5636.

(Circle CI fail due to old Git SHA)
2017-11-07 13:07:03 -05:00
Shane Tomlinson a9886f605f fix(sms): Allow SMS sending again. (#5687) r=@vladikoff
In `_areSmsRequirementsMet`, `isInExperiment` was called
w/o a `country`. The experiment itself requires a country,
so it returned that the user was not a member of the experiment.
Because of this, all users were sent to /connect_another_device,
even if in a country where SMS is was supported.

This fixes that by *not* calling `isInExperiment` in
`_areSmsRequirementsMet` and instead depends on the
call to `getExperimentGroup` in
`navigateToConnectAnotherDeviceScreen` to determine whether
the user is in an experiment group. The user's country is
known at this point and the correct answer will be returned.
If the user is not a member of the experiment, log
it there instead of in `_areSmsRequirementsMet`

Note, there are no functional test updates for this. We
are in a bit of a pickle here because the user is not
enrolled in any experiments within the functional tests
unless the `forceExperiment` query parameter is specified.

fixes #5685
2017-11-07 12:36:14 -05:00
Phil Booth eee6e92632 feat(devices): include location in the last sync/active string (#5682) r=@vladikoff
Fixes #5597
2017-11-07 11:34:00 -05:00
Vijay Budhram b0d2b24d7d fix(css): correctly wrap button for emails (#5681) r=vladikoff
Fixes #5508
2017-11-03 10:54:43 -04:00
Ryan Feeley 68767376c2 fix(copy): Added a hyphen to Sign-in confirmed (#5679) r=vladikoff
When a verb we say "sign in" and when a noun we say "sign-in".
2017-11-03 10:50:57 -04:00
Vlad Filippov 78cccaae2e fix(CAD): remove Maybe Later (#5674), r=@vbudhram
Fixes #5610

* fix(links): remove left class for link
2017-11-02 09:05:26 -04:00
Vlad Filippov f4d27c24af Train 98 uplift (#5667) 2017-10-31 11:41:15 -04:00
Vlad Filippov 3996b69048 Revert "fix(styles): fix logo styling"
This reverts commit dbf2425ddd.
2017-10-30 19:25:38 -04:00
Vlad Filippov dbf2425ddd fix(styles): fix logo styling 2017-10-30 19:24:55 -04:00
Phil Booth 1bbf1a9d1e
feat(metrics): emit timing flow events for settings activity
https://github.com/mozilla/fxa-content-server/pull/5654
r=shane-tomlinson
2017-10-30 12:04:17 +00:00
Shane Tomlinson 040f26cd35
fix(metrics): Fix the "working" error being reported in cwts. (#5656) r=@philbooth
Spotted by @ryanfeeley, starting with train-97.

The problem is the submit handler of CWTS finishes by calling `onSubmitComplete` and
propagating that functions return value. `this.onSubmitComplete` is set in the SignupMixin.
`onSignUpSuccess` will delegate to the `afterSignUp` method in the broker, which returns a
`NavigateBehavior` to `/confirm`. A `NavigateBehavior` returns a promise which never resolves,
causing `working` to be logged.

`signup`, `choose_what_to_sync`, and `signup_permissions` should all have the same
increase in "working" errors.

fixes #5655
2017-10-27 17:30:48 +01:00
Shane Tomlinson b3b9d520a4 feat(sms): Add support for Austria, Germany (#5624) r=@philbooth
Both countries have a rolloutRate of 0 so they can be soft-launched
and tested by visiting the /sms link directly.

fixes #5572
2017-10-26 15:18:22 +01:00
Shane Tomlinson ea199fe50e fix(sms): Fully rolled out countries all use `signinCodes` (#5647) r=@philbooth
fixes #5632
2017-10-25 17:09:45 +01:00
Shane Tomlinson f6054ff32e fix(style): Remove the duplicate border declaration. 2017-10-25 14:05:21 +01:00
Shane Tomlinson ed47618694 Merge branch 'train-98' 2017-10-25 14:04:23 +01:00
Shane Tomlinson 5d0bf08be3 fix(style): Fix sasslint warnings. 2017-10-25 13:00:05 +01:00
Shane Tomlinson e5e3f9968b fix(sms): Use the same graphic on /sms/sent as /sms (#5601) r=@ryanfeeley
Removed the sms-sent* images, they are no longer used.

fixes #5589
2017-10-25 12:56:34 +01:00
Tommasina bc03d2bc68 fix(style): Account for emoji shifting line height of device information (#5630) r=@ryanfeeley, @shane-tomlinson
Restrict line height to 1.2 to account for emoji in device names.
Previously, the device information line height got out of alignment
with emoji in device names.

Closes #5516
2017-10-25 12:56:11 +01:00
Erika Jonell e222543fcc fix(css): Show password border radius problem (#5628) r=@vbudhram, @ryanfeeley, @shane-tomlinson
fixes #5233 

Thank you so much for this @xevrem, this looks much nicer than what I came up with previously!
2017-10-25 12:53:59 +01:00
Shane Tomlinson 46921fbaee fix(logo): Use the new Firefox logo in Fx Desktop/Android >= 57, iOS >= 10. (#5643) r=@vbudhram, @ryanfeeley
Do some UA sniffing on startup to add the "fx-57" class
to the HTML element. If "fx-57" exists, display the
new logo.

fixes #5588
2017-10-25 12:49:47 +01:00
Erika Jonell f0d1fca161 fix(css): Show password border radius problem (#5628) r=@vbudhram, @ryanfeeley, @shane-tomlinson
fixes #5233 

Thank you so much for this @xevrem, this looks much nicer than what I came up with previously!
2017-10-25 12:04:11 +01:00
Ryan Feeley df00da53c9 fix(emails): Remove question mark (#5645) r=@shane-tomlinson
Noticed that this had a trailing question mark, and should instead follow the example set in other places, and not
2017-10-25 11:43:36 +01:00
Tommasina 726b033cb9 fix(style): Account for emoji shifting line height of device information (#5630) r=@ryanfeeley, @shane-tomlinson
Restrict line height to 1.2 to account for emoji in device names.
Previously, the device information line height got out of alignment
with emoji in device names.

Closes #5516
2017-10-24 11:10:29 +01:00
Phil Booth 7074dda73c feat(clients): display approximate last active times for old clients
https://github.com/mozilla/fxa-content-server/pull/5627
r=shane-tomlinson
2017-10-23 13:13:52 +01:00
Shane Tomlinson 46fe49eb90 feat(sms): Open SMS up to 50% of RO users. (#5623) r=@vbudhram
Simplify the SMS experiment logic by consolidating into a single
experiment, send-sms-install-link. send-sms-enabled-for-country
is removed.

This also consolidates logic to enable/roll out new countries. New
countries only need to be defined in `lib/country-telephone-info.js`.
If a country's entry contains `rolloutRate`, the experiment will
be rolled out at that rate. If a country is in the process of being
rolled out, it uses the `control` group so we can better compare
against CAD phase 1. Countries that are fully rolled out
use only `treatment` and `signinCodes`.

The plus side of this work is that the tests are far simpler
and a lot of code was able to be removed!

fixes #5611
2017-10-23 12:58:55 +01:00
Shane Tomlinson 2f5c83adc0 revert(style): Replaced active with hover active (#5631)
This reverts commit b0a6f8270c.

The "delete account" button turns blue with this change.

Reverts #5609
2017-10-23 12:58:16 +01:00
Vijay Budhram 16259d03ac fix(css): Fix secondary email margin (#5620), r=@philbooth 2017-10-20 14:47:49 -04:00
Shane Tomlinson 6597224d69 refactor(sms): Use formatted phone number returned from auth-server. (#5621) r=@philbooth 2017-10-20 14:55:52 +01:00
Shane Tomlinson f52e33649c chore(sms): Fix spacing in country-telephone-info.js and test (#5622) r=@shane-tomlinson
There was one extra space on every line.

With `?w=1`, GitHub says "Whitespace only changes". Self merge.
2017-10-20 09:47:59 +01:00
Ryan Feeley b0a6f8270c feat(metrics): Replaced active with hover active (#5609), r=@vbudhram 2017-10-19 20:08:27 -04:00
Shane Tomlinson 8439e85ea2 fix(avatar): Use the Photon icons for avatar change. (#5602) r=@ryanfeeley
fixes #5530
2017-10-19 21:03:35 +01:00
Shane Tomlinson a9d217dfc3 fix(style): Update the color of the devices "open panel" spinner. (#5604) r=@ryanfeeley
Add an opacity of 0.5 so that it matches the "Refresh" spinner.

fixes #5568
2017-10-19 20:51:38 +01:00
Shane Tomlinson 1b32c22351 fix(sms): Use the same graphic on /sms/sent as /sms (#5601) r=@ryanfeeley
Removed the sms-sent* images, they are no longer used.

fixes #5589
2017-10-19 20:51:09 +01:00
Phil Booth 85799de28e Merge branch 'train-98' 2017-10-19 15:24:32 +01:00
Shane Tomlinson ecab8bb0f3 fix(style): Ensure the content box-shadow is not visibile in the firstrun flow. (#5614), r=@vbudhram 2017-10-19 09:40:40 -04:00
Shane Tomlinson 15e20a7362 chore(sms): Fix the spacing in the sms_send test. (#5618) r=@shane-tomlinson
There was one too many spaces at the beginning of each line.

`?w=1` says `Whitespace-only changes.`. Self merge.
2017-10-19 14:22:36 +01:00
Shane Tomlinson 8805aa6cd7 chore(test): Fix the spacing in sms_sent.js (#5616) r=@shane-tomlinson
There was one too many (or too few) spaces at the beginning of each line.

?w=1 says: `Whitespace-only changes.` Self-merge
2017-10-19 14:21:53 +01:00
Vlad Filippov 2722bba3c8 feat(settings): remove Unsubcribe, link out to email prefs (#5551) r=@philbooth
The settings pane within Fx for iOS cannot open external links,
so users would be unable to manage their communication preferences.

Instead of showing a bad experience, disable the feature for
Fx for iOS until we have a better solution.

The `opt-in from settings after signin` is more or less
equivalent to `opt-in from settings after signup`. Only
one tests is needed.

Fixes #5465
2017-10-17 15:56:27 +01:00
Vijay Budhram 86dc936fa2 fix(css): Add photon shadow style and easing (#5550) r=@shane-tomlinson
fixes #5531
2017-10-17 11:22:12 +01:00
Shane Tomlinson 122f930a99 fix(email-first): Show a readonly on the signin/signup pages. (#5591) r=@vbudhram
We believe the editible email fields may be causing user dropoff.
The editible looking email fields are replaced with readonly
fields like /force_auth's.

fixes #5582
2017-10-17 10:27:00 +01:00
Vlad Filippov 7b9ab94133 refactor(form): remove disabled form state (#5437) r=@vbudhram
A combined effort of @vladikoff and @shane-tomlinson.

This removed the "disabled form state" from all
forms except /settings/display_name.

Things that are removed:
* Experiment code.
* Notifications to the firstrun iframe parent.
* Code that disables/enables forms in form.js.

A small mixin was created to allow individual
forms to re-add "disabled" state if needed.
2017-10-16 16:18:22 +01:00
Shane Tomlinson 848cef10cb feat(sms): Remove the `control` group from the `sendSms` experiment. (#5590) r=@philbooth
`control` performs worse than either `treatment` or `sendSms`. We
are continuing with the experiment pushing all users through
`treatment` and `sendSms`. This should boost the # of users in
each of the remaining groups.

fixes #5561
2017-10-16 16:15:47 +01:00
Shane Tomlinson 61d03d355b fix(sync): Firefox 58 transitions after email verification, not 57. r=@philbooth
The patch to let FxA transition after email-verification
from within about:accounts landed in Firefox 58, not 57.
This updates the check/tests to use 58 instead.

fixes #5556
2017-10-12 15:05:06 +01:00
Shane Tomlinson 7c33ed65f9 fix(signup): Show signup bounced errors in about:accounts from /confirm
Fx Desktop <= 58 takes control of about:accounts to redirect the user
to about:preferences#sync once it detects a user has verified their email.

We originally used this to reduce polling load on the server. Since
the browser was polling and would redirect once it detected the user
had verified their email, FxA did not poll. The problem is that
we added bounce detection, and we cannot detect bounces within
FxA w/o polling.

This change has FxA poll within about:accounts, but lets the browser
perform the screen transition once verification has been detected.

fixes #5566
2017-10-11 17:06:57 +01:00
Shane Tomlinson 6448c3880b Merge pull request #5564 from mozilla/train-97
merge(train-97): Merge train-97.2 into master
2017-10-09 16:20:55 +01:00
Phil Booth ba39aeb80f feat(metrics): add uid to metrics payload
https://github.com/mozilla/fxa-content-server/pull/5560
r=vbudhram
2017-10-06 17:57:27 +01:00
Shane Tomlinson 110a3adc7b fix(CAD): Do not show the "sign in" button if the user is at CWTS. (#5557) r=vladikoff
If a user verifies at CWTS, no verification data has been
written to localStorage, nor has the browser been informed
of the user's intent to signup/in. When the verification page
is opened, it looks like no user is signed in, so the user
was being asked to sign in again.

This PR fixes the problem by writing the "SameBrowserVerificationInfo"
to localStorage when the user first views CWTS. When the user verifies,
we look for the SameBrowserVerificationInfo, if it's available and
the user has made it as far as CAD, we know the account has been verified
in the same browser and the user will be fully signed in momentarily.

fixes #5554
2017-10-05 15:56:49 -04:00