-
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
Move reader-main to reader/components #28272
Conversation
@@ -113,6 +113,10 @@ export class FullPostView extends React.Component { | |||
this.attemptToSendPageView(); | |||
} | |||
|
|||
if ( this.props.shouldShowComments && ! prevProps.shouldShowComments ) { |
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 is an unrelated change - the linter picked up on usage of componentWillReceiveProps
in Reader full post.
To test, make sure that a full post URL with #comments
suffix still takes you to the comments section of a full post, e.g.:
http://calypso.localhost:3000/read/blogs/140522955/posts/2773#comments
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.
A suggestion for the future: Lazy loading images can push the scroll of the page further down, moving the comments section off-screen. I'd imagine this could be solved if we had the height information of the images.
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.
Code changes look good and reader seems to work as expected. Needs a rebase to proceed, though.
4e930db
to
1429673
Compare
@@ -113,6 +113,10 @@ export class FullPostView extends React.Component { | |||
this.attemptToSendPageView(); | |||
} | |||
|
|||
if ( this.props.shouldShowComments && ! prevProps.shouldShowComments ) { |
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.
A suggestion for the future: Lazy loading images can push the scroll of the page further down, moving the comments section off-screen. I'd imagine this could be solved if we had the height information of the images.
Changes proposed in this Pull Request
A number of Reader-specific components and blocks currently live in the main components and blocks directories, even though they are not used elsewhere in Calypso. I feel that these components and blocks should live inside client/reader if they are not likely to be reused outside Reader. See also: #28161.
What's reader-main anyway?
Testing instructions
Load the Reader at http://calypso.localhost:3000 and ensure that all Reader streams have a white background.