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

283 Коммитов

Автор SHA1 Сообщение Дата
Shane Tomlinson eb46334698 Save account data to the Session when signing in.
* This allows account data to be saved to the session in a single location and fixes the problem of the email address not being displayed on confirm.
2014-01-23 11:37:47 +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
Shane Tomlinson 3d04390368 Merge pull request #316 from mozilla/issue-262-retina-firefox-logo
Fixed oversized Firefox logo on retina displays

This is a CSS only fix. Travis is having issues. I am comfortable with travis error on this.

Nice fix @nchapman.

r+
2014-01-23 03:20:04 -08:00
Nick Chapman 4a6f8410a3 Force wrapping long email addresses on confirm and reset screens. 2014-01-22 21:08:25 -08:00
Nick Chapman c4edd74832 Fixed oversized Firefox logo on retina displays. 2014-01-22 20:56:42 -08:00
Nick Chapman 86556e7a5f Fancy select tag styles. 2014-01-22 20:51:50 -08:00
Zach Carter 5e04f9df9f Merge pull request #296 from mozilla/issue-239-desktop-channel
Only start the FxA Desktop channel if started in the appropriate context...
2014-01-22 12:54:59 -08:00
Nick Chapman 4505d7137a Shortened description text to make linter happy. 2014-01-21 17:41:12 -08:00
Shane Tomlinson 96b0775960 Last bit of jscs cleanup
* Allow single line if/else statements
* Clean up last few offenders.
* Add meta grunt task for linting.
* Replace `grunt jshint` with `grunt lint` in the travis build.
2014-01-21 17:38:11 -08:00
Shane Tomlinson 44c0fc1eb0 Remove the intro screen.
* If the user lands on `/`, automatically redirect to `/signup`

fixes #290
2014-01-21 16:47:08 -08:00
Nick Chapman 2388c69010 Added displayError to sign in. 2014-01-21 16:36:51 -08:00
Shane Tomlinson 46e093be55 Ensure error strings from the server are translated before display
fixes #218
2014-01-21 11:45:52 -08:00
Nick Chapman baa790f5b5 Merge pull request #295 from mozilla/issue-273-untranslated-strings
Ensure all strings are translated. TOS/PP styling.
2014-01-21 10:24:03 -08:00
Shane Tomlinson b6699cd4bd Add TOS/PP links to the /signin page
fixes #255
2014-01-21 10:12:18 -08:00
Shane Tomlinson 3a06202e2c Only start the FxA Desktop channel if started in the appropriate context. Start a web channel.
fixes #239
2014-01-21 13:34:03 +00:00
Shane Tomlinson b0fbe249f7 Ensure all strings are translated. TOS/PP styling.
fixes #273
issue #197
2014-01-21 13:02:32 +00:00
Shane Tomlinson 02d8a9e5a0 Prevent users from selecting text in the password show/hide field. 2014-01-17 23:33:20 +00:00
Shane Tomlinson 39c34dc1d1 Add "Must be at least 8 characters" to password fields.
fixes #264
2014-01-17 23:28:43 +00:00
Shane Tomlinson 8d0442417f Show/hide passwords on sign_up, sign_in, and complete_reset_password
* Add a styled checkbox to each password field that toggles the show and hide.
* To show a password, change the input field type to "text"
* Add unit tests for the affected views

fixes #253
2014-01-17 23:28:43 +00:00
Shane Tomlinson 909c9dd889 Update the unit tests to handle the asynchronous sign up. 2014-01-17 22:55:32 +00: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
ckarlof 0624ae871f Merge pull request #288 from mozilla/fix-promises
fix regression with sign in/up - fixes #284
2014-01-17 14:47:24 -08:00
Shane Tomlinson 938518b6f8 Fix the syntax errors. 2014-01-17 22:38:19 +00:00
Zachary Carter 9bb5be63c8 fix fxa-client tests 2014-01-17 14:24:51 -08:00
Zachary Carter 7287bc55f9 fix regression with sign in/up - fixes #284 2014-01-17 14:00:51 -08:00
Nick Chapman f7ce1d8d0b Merge pull request #281 from mozilla/issue-266-service-name-on-confirmation
Make sure the service name shows up on confirmation.
2014-01-17 13:54:02 -08:00
Shane Tomlinson 940094a829 Autofocus sensible elements when using a browser that does not have touch events.
* Add a base.js unit test to test for focus events.

fixes #205
2014-01-17 21:39:09 +00:00
Nick Chapman a59e873f1f Merge pull request #249 from mozilla/issue-166-keyboard-nav-buttons
Ensure keyboard accessibility
2014-01-17 13:36:06 -08:00
Zach Carter 8024efd7b6 Merge pull request #279 from mozilla/issue-232-done-not-a-function
Fix the "Done not a function" error.
2014-01-17 12:48:29 -08:00
Zachary Carter 9fb38977ad refactor promises 2014-01-17 10:55:19 -08:00
Shane Tomlinson 7074c7c9a4 add the missing return 2014-01-17 18:32:52 +00:00
Shane Tomlinson a2866490f6 This is how I though promises should work, everything in a waterfall. 2014-01-17 18:27:03 +00:00
Shane Tomlinson fb43f13d29 Simplify consumers of the FxaClientWrapper by depending on promises.
* Clients no longer have to call getAsync() to get a client. We do that for them.
2014-01-17 18:04:56 +00:00
Shane Tomlinson 743e60d9c8 Fix up the `this` scope problems. 2014-01-17 17:01:19 +00:00
Zachary Carter 40d45e8940 load client configuration async 2014-01-17 16:42:02 +00:00
Shane Tomlinson 504400ecff Merge pull request #238 from zaach/real-password-reset
Password reset with fxa-client #235

Travis is finally green. r+. Thanks for the explanations @zaach!
2014-01-17 04:54:20 -08:00
Shane Tomlinson d1825814af Fix the "Done not a function" error.
* In init, if `done` was not passed, we called `noOp()` instead of setting a reference to it.
* Added a unit test to check for the problem

fixes #232
2014-01-17 12:16:39 +00:00
Shane Tomlinson 1a3ce8c4ad Merge pull request #257 from pdehaan/jscslint1
Fixing a few style warnings from jscs

r+ - thanks @pdehaan! Always appreciate stuff like this.
2014-01-17 02:20:00 -08:00
Shane Tomlinson d8e36fe928 Make sure the service name shows up on confirmation.
* Rename "siteName" to "service"

fixes #266
2014-01-16 21:27:19 +00:00
Zachary Carter 38b122f3d8 Integrate fxa-client into the password reset flows - fixes #235 2014-01-16 13:24:48 -08:00
Shane Tomlinson 9f409dfc78 Ensure keyboard accessibility
* Add tabindex to links without hrefs
* Hook up the back buttons to the enter key
* Add :hover and :focus states to buttons.

fixes #166
2014-01-16 10:50:26 +00:00
Zach Carter fb7f424216 Merge pull request #247 from mozilla/issue-128-noscript
Add a noscript tag inside the main content area that is shown if the user has JS disabled.
2014-01-15 18:16:32 -08:00
Zachary Carter 76870f6b59 fix typo in decktop channel code 2014-01-15 17:09:40 -08:00
Nick Chapman d15214eb18 Merge pull request #236 from mozilla/ui-smoothness
UI Improvements
2014-01-15 16:25:05 -08:00
Nick Chapman 0ec5e7ed07 Fixed responsive stage. 2014-01-15 15:56:52 -08:00
Nick Chapman dea4b37f4c Replaced animated GIF spinner with CSS animated PNG. 2014-01-15 15:26:55 -08:00
Nick Chapman ed6843a01e Reworked empty stage handling. 2014-01-15 15:14:44 -08:00
Nick Chapman bf0436073f Added change event for inputs to enable form. 2014-01-15 15:02:31 -08:00
Nick Chapman bfeb8b2ce0 Fixed issue with images in dist.
- Moved images into CSS as background images.
- Now delivering different images for retina.
2014-01-15 14:59:02 -08:00
Zach Carter c1a7f6dc62 Merge pull request #246 from mozilla/issue-84-robots-txt
Update robots.txt to disallow bots.
2014-01-15 13:05:41 -08:00
Peter deHaan c37d4e8bc7 Fixing a few style warnings from jscs 2014-01-15 11:17:30 -08:00
Shane Tomlinson 17b7e64fc5 Add a noscript tag inside the main content area that is shown if the user has JS disabled.
fixes #128
2014-01-15 14:31:49 +00: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 6e51e7d6ae Fix JSHint errors and cleanup of fx-desktop
* Only one of `done` or `handler` was needed when saving outstanding requests

Initiated by looking at issue #232
2014-01-15 13:26:22 +00:00
Nick Chapman fcce78484f Cleaned up settings and age verification failure page. 2014-01-14 17:04:29 -08:00
Nick Chapman 7371a707ff Updated password reset views. 2014-01-14 16:52:28 -08:00
Nick Chapman 51d59c0fbd Merge remote-tracking branch 'origin/master' into ui-smoothness
Conflicts:
	app/scripts/templates/sign_in.mustache
	app/scripts/views/base.js
	app/scripts/views/complete_sign_up.js
2014-01-14 16:34:17 -08:00
Nick Chapman 0c47e32543 Lots of UI clean up.
This gets us closer to the mocks. Still not 100%.
2014-01-14 16:22:29 -08:00
Nick Chapman 3fd453ac8d Added a temporary spinner to account creation. 2014-01-14 16:22:29 -08:00
Nick Chapman fa1ba023db Really basic error styling. 2014-01-14 16:22:29 -08:00
Nick Chapman 7c5f3c016e Removed unused footer tag. 2014-01-14 16:22:29 -08:00
Nick Chapman c9bc187bee Moved stage style onto child div for a better empty state. 2014-01-14 16:22:29 -08:00
Nick Chapman 0ba23555d6 Enabling button when valid on sign in and sign up. 2014-01-14 16:22:29 -08:00
Nick Chapman 60293dfe62 Root now loads sign up. 2014-01-14 16:22:29 -08:00
Nick Chapman 65d12d65e3 Removed animation for now. 2014-01-14 16:22:29 -08:00
Zachary Carter 45963b8e6d Merge branch 'issue-121-password-reset-screens' of github.com:mozilla/fxa-content-server into shane-pwreset 2014-01-14 15:46:50 -08:00
Zachary Carter 4c2060277a remove "verified" from data passed to browser 2014-01-14 14:14:15 -08:00
Zachary Carter 91efb8dfca support login with keys flag and fix format of account data sent to browser 2014-01-14 13:08:24 -08:00
Shane Tomlinson fe36cf63ad add a footer 2014-01-14 12:52:51 +00:00
Shane Tomlinson b7c33b0c62 Add XSS protection for redirectTo
* Add unit tests for Url
2014-01-14 12:47:03 +00: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
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
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
Nick Chapman b77ccb1cfd Reformatted linear gradient definitions. 2014-01-13 07:20:07 -08:00
Nick Chapman 5f5e03aa2c Merge branch 'develop' into issue-197-gettin-visual-visual 2014-01-12 22:19:38 -08:00
vladikoff 11be9bbe39 Removing fxa-js-client build step 2014-01-11 02:44:20 -05:00
Nick Chapman e8fa7c2824 Updated intro screen to better match mocks. 2014-01-10 16:32:23 -08:00
Nick Chapman 44f3406c51 Styled placeholder text. 2014-01-10 15:03:54 -08:00
Nick Chapman db37e08059 Added Firefox logo. 2014-01-10 14:56:25 -08:00
Nick Chapman 5739a3eb32 Changed breakpoint to 500px to cover landscape orientation. 2014-01-10 13:40:52 -08:00
Nick Chapman 46b4898b86 Added vendor prefixes for maximum compatibility. 2014-01-10 13:17:14 -08:00
Nick Chapman 4cf948bc13 Added basic responsiveness. 2014-01-09 21:08:15 -08:00
Nick Chapman b35bc8a045 Beginning visual styles. 2014-01-09 21:05:58 -08: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 3754f56c13 Updates with @zaach's suggestions.
* Rename gherkin to fxaClient
* Use the special xmlhttprequest that supports .onerror
* Rename the FxaClient wrapper to FxaClientWrapper internally
2014-01-09 22:29:40 +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
Nick Chapman 2fd61166bd Temporarily removed reference to polyfills to fix issue in dist. 2014-01-09 09:46:08 -08:00
Shane Tomlinson 1ebddded08 Web Fonts FTW!
* Use Clear Sans for body text, Fira Sans for headings.
* Add the font middleware and font sets

Additional work to be done:
* The font set needs updated to serve more minimized locale specific fonts.
* The grunt build step needs to be updated to include fonts.css for each locale to minimize the number of requests.

fixes #196
2014-01-08 20:55:04 +00:00
Shane Tomlinson 7b0ab452ae Add support for COPPA
fixes #83
2014-01-08 11:20:26 +00:00
Nick Chapman c7fc7a8bdf Merge pull request #184 from mozilla/issue-183-navigator-language
Assume 'en' as the default language.
2014-01-07 23:02:04 -08:00
Nick Chapman bc1ee7fab9 Merge pull request #181 from mozilla/issue-179-switch-reserved
Rename `switch` to `showView`
2014-01-07 23:00:06 -08:00
Nick Chapman 4b939967bc Merge pull request #180 from mozilla/issue-108-shim-bind
Add a polyfills.js file. Add Function.prototype.bind
2014-01-07 22:59:29 -08:00
Shane Tomlinson 1e136343ae Assume 'en' as the default language.
* window.navigator.language is unsupported by IE8. This is a workaround until we do some server side work.

fixes #183.
2014-01-06 15:56:56 +00:00
Shane Tomlinson 21153911d8 Rename `switch` to `showView`
* `switch` is a reserved word that causes IE8 to blow its lid.

fixes #179
2014-01-06 14:38:11 +00:00
Shane Tomlinson 8882969e63 Add a polyfills.js file. Add Function.prototype.bind
fixes #108
2014-01-06 14:34:06 +00:00
Nick Chapman f92af1aa8b Replaced Hogan.js with Mustache.js. Fixes issue with translated strings. 2013-12-18 16:55:21 -08:00
Shane Tomlinson 1ff32d7285 Fix the JSHint errors. 2013-12-18 13:50:34 +00:00
Shane Tomlinson c1370c8259 Start TOS/PP pages.
fixes #122
fixes #123
2013-12-18 13:47:11 +00:00
Nick Chapman e7d8d803c3 Merge pull request #169 from zaach/jshint-fix
fix jshint errors
2013-12-17 14:28:58 -08:00
Zachary Carter 2b23271a0a fix jshint errors 2013-12-17 12:10:11 -08:00
Shane Tomlinson aeccc35c92 Fix JS errors on load with production resources.
* Copy all bower components to prod so gherkin is available in prod mode.
* load gherkin asynchronously
2013-12-17 12:16:12 +00:00
Nick Chapman 285d26db96 Merge pull request #161 from mozilla/stablize-tests
Wait for explicit elements when starting each test.
2013-12-16 15:13:35 -08:00
Nick Chapman dbb8606b69 Merge pull request #153 from mozilla/issue-152-missing-en-locale
Add a symlink from en_US to en
2013-12-16 15:11:12 -08:00
Shane Tomlinson 8d18026812 Wait for explicit elements when starting each test. 2013-12-16 21:17:02 +00:00
Shane Tomlinson 69cf9748b5 Add a preprocess-config task to create constants.js
* Use grunt-preprocess to do the pre-processing.
* Add a selectconfig task which will select the appropriate config file to use.
** if process.env.CONFIG_FILES is specified, use that.
** use production.json when building dist resources.
** local.json by default
2013-12-16 19:35:55 +00:00
Zachary Carter 8fb8e4c372 use standalone fxa client 2013-12-16 08:45:40 -08:00
Shane Tomlinson f82832f6a2 Add a symlink from en_US to en
fixes #152
2013-12-16 11:52:16 +00:00
Zachary Carter 30422261c8 functional tests using phantomjs locally and saucelabs on travis-ci 2013-12-12 11:22:03 +00:00
Shane Tomlinson f53acffba5 Merge pull request #143 from pdehaan/develop-jshint
Cleaning up some JSHint errors

Thanks @pdehaan! This looks good to me. I am working on another PR to fix up the `assertion_service.js`, but I wanna get @zaach's branch to fix up testing in general merged before submitting the code for that.
2013-12-12 03:17:53 -08:00
Peter deHaan 2e2b591d3e Cleaning up some JSHint errors 2013-12-11 17:46:12 -08:00
Peter deHaan 392f4f0ea4 Adding missing copyright headers 2013-12-11 17:30:06 -08:00
Shane Tomlinson 4ebb1c1736 Allow the server to be started via grunt.
* run_locally.js only runs its initialization if run from the command line.
* Add a production.json file which switches the static root dir to "dist".
* Ditch the "mocha" task, it is not yet used.
* update README with commands.
2013-12-11 13:16:47 +00:00
Shane Tomlinson 90170ea0d3 Start a constants.js file to put constants in.
* e.g. the hard coded FxA Account server URI.

fixes #119
2013-12-10 10:54:02 +00:00
Shane Tomlinson c8c1cd1869 Start to add input validation.
* Passwords must be at least 8 characters long.
* Add placeholder functions to do validation in the JS.
2013-12-09 15:27:43 +00:00
Nick Chapman 247ee893ee Replaced Yeoman favicon. 2013-12-06 09:29:33 -08:00
Nick Chapman 8f52f38f1b Added example transition animation to intro. 2013-12-06 09:25:57 -08:00
Nick Chapman b6af50eb3b Fixed up longer translation strings. 2013-12-05 16:44:08 -08:00
Nick Chapman 131348a7b5 Added translation tags to templates. 2013-12-05 16:33:05 -08:00
Nick Chapman aac3f03aca Translations proof of concept. 2013-12-05 15:57:13 -08:00
Nick Chapman aeacaace23 Now using pushState on the front end. 2013-12-05 11:38:20 -08:00
Nick Chapman 8730f0b3c7 Formatting fixes to make jshint happy. 2013-12-05 10:13:56 -08:00
Nick Chapman eedb27fb45 Fixed a bug in sign up. Made the router globally accessible. 2013-12-05 09:31:44 -08:00
Nick Chapman 1a9974eaa4 Simple responsiveness. 2013-12-04 17:12:28 -08:00
Nick Chapman 7457be2d4a Working sign in. 2013-12-04 16:48:51 -08:00
Nick Chapman 2522abca7f Visual clean up. 2013-12-04 16:35:55 -08:00
Nick Chapman 4ab8e12d18 Merge remote-tracking branch 'origin/develop' into develop 2013-12-04 16:13:13 -08:00
Nick Chapman 3c3c7e3ac3 Working account creation. 2013-12-04 16:12:38 -08:00
Nick Chapman aab70c6fb8 Really basic styling. 2013-12-04 15:13:46 -08:00
Zachary Carter ae914da861 add vendored jwcrypto script 2013-12-04 15:09:11 -08:00
Nick Chapman b2590a4a79 Backbone is now serving up views with mustache templates. 2013-12-04 14:07:11 -08:00
Nick Chapman 5c49dfa1cd Generated basic Yeoman project. 2013-12-04 11:55:48 -08:00