Skip to content

Account page redesign (LG-3296)#4169

Merged
mitchellhenke merged 30 commits intomasterfrom
mitchellhenke/account-page-lg-3296
Sep 11, 2020
Merged

Account page redesign (LG-3296)#4169
mitchellhenke merged 30 commits intomasterfrom
mitchellhenke/account-page-lg-3296

Conversation

@mitchellhenke
Copy link
Contributor

@mitchellhenke mitchellhenke commented Sep 4, 2020

My personal sandbox is deployed with the IDP on this branch as of 3a07ef8

@mitchellhenke mitchellhenke force-pushed the mitchellhenke/account-page-lg-3296 branch from 3ce18ce to 94c3298 Compare September 4, 2020 21:23
Copy link
Contributor

@aduth aduth left a comment

Choose a reason for hiding this comment

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

Just a few comments in passing.

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! I ran out of things to nitpick on. Thanks for this, it's epic!

Copy link
Contributor

@jmhooper jmhooper left a comment

Choose a reason for hiding this comment

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

Nicely done

@mitchellhenke mitchellhenke force-pushed the mitchellhenke/account-page-lg-3296 branch from 6261c88 to 5c706f3 Compare September 10, 2020 18:15
Copy link

@bpdesigns bpdesigns left a comment

Choose a reason for hiding this comment

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

Looks good so long as we can update the third circle in the illustration in the next round to tuck the bottom corners of the screen into it.

@mitchellhenke mitchellhenke force-pushed the mitchellhenke/account-page-lg-3296 branch from 5c706f3 to f4a926d Compare September 11, 2020 14:20
@mitchellhenke mitchellhenke merged commit f6d7245 into master Sep 11, 2020
@mitchellhenke mitchellhenke deleted the mitchellhenke/account-page-lg-3296 branch September 11, 2020 20:24
Comment on lines +32 to +33
<%= render 'accounts/mobile_nav' %>
<%= render template: 'layouts/base', locals: { disable_card: true } %>
Copy link
Contributor

Choose a reason for hiding this comment

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

I was observing some strange issues with the session timeout "Need more time?" modal not appearing correctly on the account dashboard (screenshot). After some debugging, I noticed that with the arrangement of this markup, the source code of the page will output the mobile navigation markup outside (before) the <html> (screenshot). I think the problem the issues with the modal are due to the fact that the doctype isn't being interpreted correctly by the browser.

I'm not sure what's the simplest way to achieve it, but I'd expect the markup of accounts/mobile_nav to be rendered within the body tag.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

😱 looking into this

@@ -0,0 +1,33 @@
<h1 class="mt0">
Copy link
Contributor

Choose a reason for hiding this comment

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

I've noticed that a few of these new pages lack a distinct page title describing its purpose ("Two-factor authentication", "History", maybe others).

Related: https://www.w3.org/WAI/WCAG21/Understanding/page-titled.html

Should be relatively straight-forward to include here, using the same labels as in the navigation:

Suggested change
<h1 class="mt0">
<% title t('account.navigation.two_factor_authentication') %>
<h1 class="mt0">

Copy link
Contributor

Choose a reason for hiding this comment

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

For context, I'd stumbled on this in discovering some other, preexisting issues with page titles.

See LG-3502 for full details.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good catch, thank you. I added a title to all of the new account pages in 5006dce

Comment on lines +11 to +13
<% @view_model.connected_apps.each do |identity| %>
<%= render identity.connected_app_partial, identity: identity %>
<% end %>
Copy link
Contributor

Choose a reason for hiding this comment

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

From what I can tell, it was this way as well previously, but I think in the case that the user has no connected accounts, we could be doing better to indicate this on the page:

no connected accounts

I can create a ticket if you think it makes sense.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah, it was

I think it would be easier enough to do a lot better. I'm hesitant to put any language at this point, but is it worth not showing the white box at least?

@bpdesigns
Copy link

bpdesigns commented Sep 17, 2020 via email

@aduth
Copy link
Contributor

aduth commented Sep 17, 2020

@bpdesigns Yeah, even just a simple text "There are currently no connected accounts to show" would suffice, I think. Though I do like the idea of being even more helpful in what you suggest as an addendum of "...they would be shown here if there were any".

I created a ticket at LG-3504 to track this.

@bpdesigns
Copy link

bpdesigns commented Sep 17, 2020 via email

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.

5 participants