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

75 Коммитов

Автор SHA1 Сообщение Дата
Shane Tomlinson 3c12abfc6d feature(test): Add a front end code coverage task - `grunt coverage`
* Use blanket as the coverage reporter.
* Install `grunt-blanket-mocha` to handle reporting results to grunt.
* Set up new grunt task, `grunt coverage` for reporting.
* Add more front end tests where coverage was lacking.
* Hook up code coverage results to the intern by running tests in PhantomJS
* Only enable code coverage if explicitly requested
* Only enable front end tests in dev mode.
* Fix code that gave PhantomJS problems (Function.prototype.bind)
2014-02-25 13:29:07 +00:00
Zach Carter d2c5462942 Merge pull request #595 from mozilla/issue-561-real-uid
fix(test) - use a real uid/code when verifying emails in complete_sign_up.js test
2014-02-24 15:41:38 -08:00
Shane Tomlinson cc2a024bfb feat: Add a styled 404 page, rendered on the back end.
* Add consolidate middleware to handle the interface between express and handlebars
* Add a middleware to respond to 404s
* Add a branch to the 't' handlebars helper to deal with 't' when invoked in templates written using res.render
* Update grunt tasks to manage dist mode server rendered templates.

BREAKING CHANGE:
The production configuration script must add a new option to its config :
```
   page_template_subdirectory: 'dist'
```

issue #554

.
2014-02-24 14:45:35 -08:00
Shane Tomlinson fdd6362eca fix(test) - use a real uid/code when verifying emails in complete_sign_up.js test
fixes #561
2014-02-21 13:35:17 +00:00
Shane Tomlinson c47c37c2f0 Merge pull request #584 from mozilla/fix-json-strings-filename
Fix the file names for locale strings

This looks great, thanks @zaach!
2014-02-21 10:29:10 +00:00
Zachary Carter 68476d4a2a remove duplicate config entries 2014-02-20 11:37:44 -08:00
Shane Tomlinson 5ac5887fb6 Add a route for `/legal` 2014-02-20 11:34:05 +00:00
Zach Carter 4ce94cdbca Merge pull request #563 from pdehaan/grunt-todo
Filing all the TODOs as issues
2014-02-18 18:01:48 -08:00
Zach Carter bcd543fef3 Merge pull request #551 from mozilla/issue-322-four-oh-four
Whitelist front end pages that can be viewed
2014-02-18 17:59:34 -08:00
Peter deHaan e07eb15715 Filing all the TODOs as issues 2014-02-18 10:57:46 -08:00
Shane Tomlinson 8741ac04ff Better signin/signup error messages!
* Allow users who sign up with an existing account to sign in. If they type an  incorrect password, show them a link to the /signin page.
* Show users who sign in with a non-existent account a link to the /signup page.

* Clarify & simplify error processing of errors returned by the auth server
* Add a table of human understandable string types->numeric codes returned by the auth server to auth-errors.js
* All access to auth-errors goes through three functions, toMessage, toCode, and is;
* Add displayErrorUnsafe - no conversion on HTML before being displayed.
* Add functional tests for /signin and /signup error cases.
2014-02-18 14:29:52 +00:00
Shane Tomlinson d584e09fb8 Whitelist front end pages that can be viewed
fixes #322
2014-02-18 14:17:41 +00:00
Zachary Carter f93515557b Merge branch 'jsonlint' of github.com:pdehaan/fxa-content-server into pdehaan-jsonlint
Conflicts:
	package.json
2014-02-13 22:51:00 -08:00
Zachary Carter b1a55df7d4 fix issue with email interpolation in templates 2014-02-13 13:40:58 -08:00
Peter deHaan bb5e6e6702 Adding missing copyright 2014-02-12 17:01:40 -08:00
Zachary Carter bda8e863c5 Move email templates into content server and create a route to serve them - fixes #475 2014-02-11 20:26:06 -08:00
Shane Tomlinson 4becf7d4b7 Fix the failing tests.
* Focus can only be checked for if the window is currently in focus.
* .error is used by mocha to indicate errors. Namespace all checks for .error to the view.
* Up time timeout for mocha to 5seconds and the intern to 120seconds.
* Add a unit test for signing in with a non-existent user (see https://github.com/mozilla/fxa-js-client/issues/74)

fixes #489
2014-02-07 17:05:04 +00:00
Nick Chapman 0c10af07db Disabled "Delete account". 2014-01-31 15:17:32 -08:00
Shane Tomlinson f1215c1079 Require an email address to use the /force_auth screen. 2014-01-30 13:42:05 +00:00
Shane Tomlinson 2e1e23dbfc A /force_auth screen.
* Save forceAuth to the session. If forceAuth is set, only show back button in the reset_password screen.
* Reset the forceAuth flag from sign_in and sign_up
2014-01-30 13:42:05 +00:00
Shane Tomlinson 43752a7cb7 Hookup resend verification email links
* Add reset password resend to the fxa-client wrapper.
* Rename requestPasswordReset to passwordReset - update consumers.
* Add visual feedback when email is resent.
* Add BaseView.preventDefaultThen to reduce event handling boilerplate. BaseView.preventDefault returns a proxy event handler that backbone can use to call event.preventDefault, then another handler.

fixes #272
2014-01-24 15:27:11 -08:00
Nick Chapman 6882983e9d Merge pull request #331 from mozilla/issues-329-330-settings-updates
Issues 329 330 settings updates
2014-01-24 10:02:31 -08:00
Shane Tomlinson fd71f5e9f0 Split the change password screen from the settings screen.
fixes #330
2014-01-24 10:49:54 +00:00
Nick Chapman e07391175e Added "Customize sync" checkbox to Sign up. 2014-01-24 10:08:46 +00:00
Shane Tomlinson 9f1f38bcbb Add a real check for change password success 2014-01-24 00:55:35 +00:00
Shane Tomlinson a3cd956b92 Various cleanup:
* Update the settings test to handle unverified emails.
* After password change, sign the user in again.
* Get rid of unused dependencies.
2014-01-23 20:47:28 +00:00
Shane Tomlinson 95c2f5816b Start on the settings page and delete account screen.
* Update the /settings screen with change password and sign out functionality
* Add /delete_account
* Add new auth-server functions to the fxa-client
* Allow the fxa-client to handle updating the Session state
* When visiting /, redirect to /signup

issue #254
2014-01-23 20:47:27 +00:00
Shane Tomlinson f2d6d7d3f7 Simplify the sign in tests by looking for known ids. Check the email address was written in the confirm screen. 2014-01-23 11:47:22 +00:00
Zachary Carter bdc9ce440d on unverified account login, resend confirmation code and redirect user to confirm screen 2014-01-23 11:22:04 +00:00
Zachary Carter 36736dc701 bump up test timeout 2014-01-21 16:08:18 -08:00
Shane Tomlinson 9524cd83fa Move the call to FxaClient.signUp to the sign_up view.
* Delete the old interstitial screen.
* Simplify!
2014-01-17 22:52:32 +00:00
Shane Tomlinson b3b1e65abc Update COPPA to be done on the sign_up screen.
* Use a session cookie to keep track of whether the user is too young.
* If the user revisits the signup page after being booted out for being too young, ship them back to the "cannot_create_account" page.
* Update the text on the Cannot Create Account screen to go along with @jgruen's new mocks and legal's feedback.

issue #226
2014-01-17 22:52:32 +00:00
Shane Tomlinson 743e60d9c8 Fix up the `this` scope problems. 2014-01-17 17:01:19 +00:00
Zachary Carter 38b122f3d8 Integrate fxa-client into the password reset flows - fixes #235 2014-01-16 13:24:48 -08:00
Nick Chapman d15214eb18 Merge pull request #236 from mozilla/ui-smoothness
UI Improvements
2014-01-15 16:25:05 -08:00
Shane Tomlinson 3fed3b1914 Update robots.txt to disallow bots.
* Add a functional test to test the contents.

fixes #84
2014-01-15 14:06:06 +00:00
Shane Tomlinson 451cb384a0 Merge pull request #226 from pdehaan/jscs-init
initial commit for jscs

@pdehaan - thanks for the updates and the explanation.

r+ - now let's fix the errors!
2014-01-15 04:31:13 -08:00
Nick Chapman fcce78484f Cleaned up settings and age verification failure page. 2014-01-14 17:04:29 -08:00
Shane Tomlinson 166118d787 Password reset_password, confirm_reset_password and complete_reset_password screens.
* Add a placeholders for password reset flow in FxA Client wrapper.
* Add a new file "url.js" which contains "searchParam"
* Move several common functions to base.js (isElementValid, displayError)

issue #121
2014-01-14 10:38:25 +00:00
Peter deHaan b3111500f2 initial commit for jscs 2014-01-13 17:32:51 -08:00
ckarlof 0eddbca784 Merge pull request #224 from mozilla/issue222-change-verify-url
fix email verification url - fixes #222
2014-01-13 15:25:12 -08:00
Zachary Carter 80a3f82964 fix email verification url - fixes #222 2014-01-13 15:18:15 -08:00
Zach Carter feb5a2045e Merge pull request #191 from shane-tomlinson/issue-189-fx-native-glue
fx-desktop glue & start to set up front end unit tests.
2014-01-13 14:53:13 -08:00
Shane Tomlinson c73d8e370e Add the fx-desktop channel & start to set up front end unit tests.
* Add mocha & chai to the bower config.
* Add a functional test shell for the confirm screen.
* Go to the correct page on startup if the browser supports Fx events.
* Mocha tests now run as part of the intern functional tests.
2014-01-13 16:28:45 +00:00
Shane Tomlinson 59e38caac1 Fix the JSHint errors introduced in 11be9bbe39
fixes #219
2014-01-13 11:47:21 +00:00
vladikoff 11be9bbe39 Removing fxa-js-client build step 2014-01-11 02:44:20 -05:00
Shane Tomlinson 1f40811dfc Start the complete_sign_up screen.
* Fetch the code, uid, and service from the URL search string.
* Handle errors
* In the create_account screen, only attempt to create an account if both email and password are available.
* rename tests/functional/signIn.js => sign_in.js and signUp.js => sign_up.js for consistency.
2014-01-09 22:53:28 +00:00
Shane Tomlinson 0b911c94f6 Hook up the new FxA JS client.
* Update bower config to fetch the new FxA JS client.
* In postinstall npm command, install the FxA JS client's dependencies and do a build so the client is available.
* Create a light wrapper around the FxaJSClient to reduce boilerplate code.
* Use the fxa-js-client from the bower install, get rid of picl-gherkin
2014-01-09 18:15:17 +00:00
Shane Tomlinson 7b0ab452ae Add support for COPPA
fixes #83
2014-01-08 11:20:26 +00:00
Nick Chapman 7cc7f3a4d8 Merge pull request #176 from zaach/change-tests
Use waitForElementByCssSelector instead of an arbitrary duration
2013-12-18 15:18:58 -08:00