Skip to content
This repository has been archived by the owner. It is now read-only.

refactor(permissions): change the style and copy of the permissions screen #2442

Merged
merged 1 commit into from May 20, 2015

Conversation

@zaach
Copy link
Contributor

@zaach zaach commented May 19, 2015

@ryanfeeley How's this:
screen shot 2015-05-19 at 4 51 06 pm

@vladikoff r?

Fixes #2423.

@vladikoff
Copy link
Contributor

@vladikoff vladikoff commented May 19, 2015

Should "info" be "information" ? ("info" is a bit _info_rmal")
other ideas: "data", "account details" cc @ryanfeeley

@vladikoff
Copy link
Contributor

@vladikoff vladikoff commented May 20, 2015

The email input text colour, seems to be different from the design:



Might need to make the text bit more light grey so the users understand that they cannot edit the input.

@@ -22,6 +22,7 @@ function () {
// it's already being translated and may be used in the future.
t('By proceeding, I agree to the <a id="service-tos" href="%(termsUri)s">Terms of Service</a> and' +
'<a id="service-pp" href="%(privacyUri)s">Privacy Notice</a> of %(serviceName)s (%(serviceUri)s).');
t('Proceed');

This comment has been minimized.

@vladikoff

vladikoff May 20, 2015
Contributor

Do we need to Proceed here or have other strings?

We merged proceed here:

<a class="button" href="{{ redirectUri }}" id="proceedButton" >{{#t}}Proceed{{/t}}</a>

This comment has been minimized.

@zaach

zaach May 20, 2015
Author Contributor

Ah, wanted to make sure 👍

@zaach zaach force-pushed the issue-2423-update-permissions branch from 4653670 to ad8aee0 May 20, 2015
@zaach
Copy link
Contributor Author

@zaach zaach commented May 20, 2015

Fixed styles, etc. Still need input on "info" and whether we want to link the relier name... seems like that could lead users astray/disrupt the flow.


<form id="permissions" novalidate>
<div class="input-row">
<label class="label-helper visible">{{#t}}Email{{/t}}</label>

This comment has been minimized.

@shane-tomlinson

shane-tomlinson May 20, 2015
Member

label-helper is meant to enable placeholders to slide up when an input element is focused. Since the input element is disabled, that doesn't really make sense.

Instead of overloading label-helper's usage for styling, what about just removing the classes and updating the label's style directly.

This comment has been minimized.

@zaach

zaach May 20, 2015
Author Contributor

Hm, yeah. We should probably separate classes for behaviors and for styles, so we can easily share styles even when behavior differs.

@@ -122,10 +122,10 @@ function (chai, $, sinon, p, View, AuthErrors, Metrics, FxaClient,
it('renders relier info', function () {
return initView('sign_up')
.then(function () {
assert(!! view.$('#fxa-permissions-header').text().match(SERVICE_NAME),
'service name shows in header');
assert(!! view.$('p').text().match(SERVICE_NAME),

This comment has been minimized.

@shane-tomlinson

shane-tomlinson May 20, 2015
Member

using p as a selector is pretty brittle to random passers-by like me who may try to add more to the template some day. Maybe use a class name.

This comment has been minimized.

@shane-tomlinson

shane-tomlinson May 20, 2015
Member

Another thing - you can use assert.notInclude here - http://chaijs.com/api/assert/#notInclude

@ryanfeeley
Copy link
Contributor

@ryanfeeley ryanfeeley commented May 20, 2015

How about:

Rocket wants the following information from your account:

@vladikoff
Copy link
Contributor

@vladikoff vladikoff commented May 20, 2015

@zaach https://github.com/mozilla/fxa-content-server/blob/issue-2423-update-permissions/app/scripts/views/permissions.js#L58

 submit: function () {
      var self = this;
      var account = self.getAccount();   

      self.logScreenEvent('proceed');  // <---------------- Should that say 'accepted'

      return p().then(function () {
        account.saveGrantedPermissions(self.relier.get('clientId'), self.relier.get('permissions'));
        self.user.setAccount(account);
@zaach zaach force-pushed the issue-2423-update-permissions branch from ad8aee0 to 9fb6d35 May 20, 2015
@zaach zaach force-pushed the issue-2423-update-permissions branch from 9fb6d35 to ae0eb1f May 20, 2015
@zaach
Copy link
Contributor Author

@zaach zaach commented May 20, 2015

Latest:
screen shot 2015-05-20 at 11 58 16 am

@ryanfeeley
Copy link
Contributor

@ryanfeeley ryanfeeley commented May 20, 2015

@coveralls
Copy link

@coveralls coveralls commented May 20, 2015

Coverage Status

Coverage increased (+0.11%) to 98.34% when pulling ae0eb1f on issue-2423-update-permissions into ee6ba21 on master.

vladikoff added a commit that referenced this pull request May 20, 2015
refactor(permissions): change the style and copy of the permissions screen
@vladikoff vladikoff merged commit 26bc587 into master May 20, 2015
3 checks passed
3 checks passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details
coverage/coveralls Coverage increased (+0.11%) to 98.34%
Details
@vladikoff vladikoff deleted the issue-2423-update-permissions branch May 20, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

5 participants