Skip to content

LG-4448 Implement rules of use for new users#4968

Merged
stevegsa merged 43 commits intomainfrom
stevegsa-new-users-rules-of-use
May 21, 2021
Merged

LG-4448 Implement rules of use for new users#4968
stevegsa merged 43 commits intomainfrom
stevegsa-new-users-rules-of-use

Conversation

@stevegsa
Copy link
Contributor

@stevegsa stevegsa commented Apr 23, 2021

Todo: need to add more specs and break this up into two deploys since agreement to terms will not work with old and new servers

Before

before

After

Screen Shot 2021-05-20 at 10 02 18 PM

Screen Shot 2021-05-20 at 10 03 08 PM

@stevegsa
Copy link
Contributor Author

stevegsa commented Apr 23, 2021

cc @juliaelman @anniehirshman-gsa The before and after for your review

Copy link
Contributor

@anniehirshman-gsa anniehirshman-gsa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@stevegsa per our conversation on Slack, thanks for your willingness to incorporate a few design changes here. Wanted to suggest these visual adjustments for consistency with the USWDS and the login.gov design system:

  1. Remove horizontal rule below h1 for consistency with other pages in the IdP flow
  2. Remove blue box around checkbox and use simple checkbox from the login design system, including the error state on the checkbox if the user clicks the "Submit" button without checking the box.
  3. The USWDS recommends using dropdown inputs only for 7+ options (see guidance), so I would recommend reverting back to the original design of the language selection (radio button group) to align with that guidance.

Let me know if you have any questions, and thanks so much in advance!

@stevegsa stevegsa force-pushed the stevegsa-new-users-rules-of-use branch from 4d3017c to 90d4b15 Compare April 29, 2021 03:28
@stevegsa stevegsa marked this pull request as ready for review April 29, 2021 04:01
@stevegsa
Copy link
Contributor Author

@anniehirshman-gsa new screenshot attached

Copy link
Contributor

@zachmargolis zachmargolis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM... but would really love for the deploy feature flag issue to be addressed before merging

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was there consensus on whether we're calling this "Rules of Use" or "Terms of Use" ? We use "Terms" here, and "Rules" in #5040.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I posted the discrepancy in slack and they said roll with it

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In #5040, we embed a link to the rules in the text. Should we be doing that here? Otherwise, it kinda feels like we're asking the user to agree to something without giving them a chance to read what they're agreeing to. Or will we update the text "Security Practices and Privacy Act Statement" to also include "Rules of Use" ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was part of the discrepancies I posted in slack. It appears they want the link "Security Practices and Privacy Act Statement" to go to the new "Rules of Use". There are other tabs there for the security practices and privacy act statement. It does seem odd.

@stevegsa stevegsa force-pushed the stevegsa-new-users-rules-of-use branch from 63f4e61 to 2e130ba Compare May 11, 2021 04:47
@zachmargolis
Copy link
Contributor

Thanks for adding the feature flag 👍

@aduth
Copy link
Contributor

aduth commented May 18, 2021

FYI #5066 changed how locale YAML files are normalized, so you might want to rebase / merge to check for any local changes.

# git fetch origin
# git rebase origin/main
yarn install
make normalize_yaml

@stevegsa stevegsa force-pushed the stevegsa-new-users-rules-of-use branch from 7d16c7b to 83dab68 Compare May 20, 2021 04:36
@stevegsa stevegsa merged commit d930786 into main May 21, 2021
@stevegsa stevegsa deleted the stevegsa-new-users-rules-of-use branch May 21, 2021 18:29
This was referenced May 22, 2021
Comment on lines +43 to +53
<div class="margin-bottom-3">
<%= f.check_box :terms_accepted, { class: 'usa-checkbox__input',
required: true, aria: { invalid: false } }, true, false %>
<label for="user_terms_accepted" class="usa-checkbox__label">
<%= t('sign_up.terms') %>
<%= new_window_link_to(t('titles.rules_of_use'), MarketingSite.rules_of_use_url) %>
</label>
<div class="usa-error-message usa-error-message--with-icon display-if-invalid" role="alert">
<%= t('sign_up.agree_to_rules_of_use_and_continue') %>
</div>
</div>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we only be showing this if rules_of_use_enabled config is 'true'? (I expect we might also need to not add the corresponding JavaScript if disabled)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants