-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Layout: Replace LayoutLoggedOut
and LayoutLoggedOutOAuth
with Layout
#2964
Conversation
9b8cb63
to
d60439b
Compare
Layout
on all routesLayoutLoggedOut
and LayoutLoggedOutOAuth
with Layout
d60439b
to
7eb3646
Compare
} | ||
.is-section-login { | ||
background: $blue-wordpress; | ||
height: 100%; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This block obviates most of these styles. They should be removed once this is merged.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This block obviates most of these styles. They should be removed once this is merged.
I created an issue for that here: https://github.com/Automattic/wp-desktop/issues/67
7eb3646
to
ab288b7
Compare
@@ -81,7 +82,23 @@ Layout = React.createClass( { | |||
return sortBy( this.props.sites.get(), property( 'ID' ) ).pop(); | |||
}, | |||
|
|||
renderMasterbar() { | |||
renderEmailVerificationNotice: function() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't seem to be called anywhere anymore.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added it in eb1059e22ce0c16682238e8ea22ab282541297fc
Code looks good. @drewblaisdell I added a couple of tiny commits. |
eb1059e
to
713ea77
Compare
<Welcome isVisible={ showWelcome } closeAction={ this.closeWelcome } additionalClassName="NuxWelcome"> | ||
<WelcomeMessage welcomeSite={ newestSite } /> | ||
</Welcome> | ||
<TranslatorInvitation isVisible={ showInvitation } /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
showInvitation
is undefined
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed. Thanks for catching that, @stephanethomas.
c27183d
to
28ca330
Compare
28ca330
to
30d2be3
Compare
30d2be3
to
363579a
Compare
Tested again on desktop, logged in and logged out. LGTM. |
363579a
to
0993a24
Compare
Layout: Replace `LayoutLoggedOut` and `LayoutLoggedOutOAuth` with `Layout`
I did this in #3112. |
Fixes #2960. The layout changes based on the current section and presence of a
user
prop.LayoutLoggedOutDesign
hasn't been removed yet because it is also rendered on the server and has dependencies (likeabtest
) that assume a browser environment. I started working on this, but updatingLayout
to run on the server is a rather large task, and will be handled separately - I'll open an issue for this once this is merged.Testing
There are no visual changes. We need to assert that the layout doesn't break when the user is logged out, logged in, using the desktop app, and on
/design
.Logged out
/start
while logged out, and assert that the page isn't broken.Logged in
Using the desktop app
calypso/
directory in the desktop app (cd calypso && git checkout update/one-layout
).make run
fromwp-desktop/
and assert that the login page isn't broken./design
/design
while logged out and assert that the page isn't broken.