Skip to content
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

Add Post Recommendation component #813

Merged
merged 18 commits into from
Oct 25, 2017

Conversation

jm90m
Copy link
Contributor

@jm90m jm90m commented Oct 16, 2017

WIP - Add Post Recommendation component

screen shot 2017-10-16 at 10 15 50 am

@jm90m jm90m added the PR: WIP label Oct 16, 2017
@bonustrack bonustrack temporarily deployed to busy-dev-pr-813 October 16, 2017 14:57 Inactive
@bonustrack bonustrack temporarily deployed to busy-dev-pr-813 October 17, 2017 01:18 Inactive
@jm90m jm90m added feature and removed PR: WIP labels Oct 17, 2017
@jm90m jm90m requested a review from bonustrack October 17, 2017 01:19
@jm90m jm90m removed the feature label Oct 17, 2017
@jm90m
Copy link
Contributor Author

jm90m commented Oct 17, 2017

Updated based on feedback from trello card: https://trello.com/c/9ZM6ctlZ/118-single-post-sidebar-right-component-post-recommendation

@mynameisek
Copy link
Member

  • When user clicks on a link from the component, he should land on the Top of the page. In the current situation it keeps the scroll position.

@bonustrack
Copy link
Contributor

bonustrack commented Oct 17, 2017

  • Post recommendation should also appear for unlogged users
  • I can see that 2 request are being sent when opening a post see:
    image
    There should be only 1 request and the limit should be 6 (For showing 5 lastest post without current post)
  • This border should not appear in last post recommended:
    image
  • More from username should not be centered
  • There should be an icon near title, similar than "Interesting People", you can use the icon headlines
  • The title "More from username" should have same style than "Interesting People" title.
  • We should see username in post recommendation too

@bonustrack
Copy link
Contributor

bonustrack commented Oct 17, 2017

Idealy we should use same class for all box title and avoid duplicate code.

@jm90m jm90m force-pushed the nd/add-single-post-recommendation-component branch from 49868a7 to b0e425d Compare October 17, 2017 18:23
@bonustrack bonustrack temporarily deployed to busy-dev-pr-813 October 17, 2017 18:24 Inactive
@bonustrack bonustrack temporarily deployed to busy-dev-pr-813 October 17, 2017 19:00 Inactive
@jm90m
Copy link
Contributor Author

jm90m commented Oct 17, 2017

@bonustrack made adjustments based on your feedback, also added the scroll to top on click of post navigation as @mynameisek requested.

So for the limit in the request, I had it set to 20 since posts that are 'resteemed/reblogged' get sent back in the request, is there any way just to get the post authored by user not the resteemed one?

@jm90m
Copy link
Contributor Author

jm90m commented Oct 17, 2017

Also added icon, and use same classname / removed duplicate styling on header title for both sidebar blocks, Interesting People and Post Recommendation titles
screen shot 2017-10-17 at 4 05 58 pm

@bonustrack
Copy link
Contributor

@jm90m we need only 6 result because we want also the resteemed ones. There is no way to get only post from author with the blockchain API, for some account like my account, you would need to paginate too much to get 5 post from me. You can change the title to "Recommended Posts".

@bonustrack
Copy link
Contributor

Or "Interesting Posts" ?

@jm90m
Copy link
Contributor Author

jm90m commented Oct 17, 2017

Oh I see what you mean @bonustrack, so instead of the More from <username>, it will be either "Recommended Posts" or "Interesting Posts", then we should also display the author maybe in between title and number of comments. I think "Recommended Posts" makes more sense here, since the PostRecommendation components get posts that are authored/resteemed by the current author of the post that you are viewing.

@bonustrack
Copy link
Contributor

Can you align Title and comment in red line?
image

@bonustrack
Copy link
Contributor

Can you add this style to Post title:
font-size: 15px; and font-weight: bold;
And font-size: 15px; for the "100 comments"

@jm90m jm90m force-pushed the nd/add-single-post-recommendation-component branch from aa2cf6b to fd19b7b Compare October 17, 2017 20:37
@bonustrack bonustrack temporarily deployed to busy-dev-pr-813 October 17, 2017 20:37 Inactive
@jm90m
Copy link
Contributor Author

jm90m commented Oct 17, 2017

@bonustrack updated styles as you suggested, also added the author in each post recommended, with Link to post author

screen shot 2017-10-17 at 4 35 38 pm

@jm90m
Copy link
Contributor Author

jm90m commented Oct 17, 2017

alignment should be correct now too:
screen shot 2017-10-17 at 4 40 13 pm

@bonustrack
Copy link
Contributor

  • Sorry can you set size of title back to 16px (keep other text to 15px).
  • And show only 3 stories (request with limit 4)
  • Also link comment to post url /tag/@author/permlink#comments

@bonustrack bonustrack temporarily deployed to busy-dev-pr-813 October 17, 2017 20:57 Inactive
@bonustrack bonustrack temporarily deployed to busy-dev-pr-813 October 17, 2017 21:00 Inactive
@jm90m
Copy link
Contributor Author

jm90m commented Oct 17, 2017

@bonustrack Post title should now be 16px while all others are at 15px, limited the stories to 4, and added link to comments

@jm90m jm90m force-pushed the nd/add-single-post-recommendation-component branch from 776ebed to e95a28f Compare October 19, 2017 22:08
@bonustrack bonustrack temporarily deployed to busy-dev-pr-813 October 19, 2017 22:08 Inactive
@bonustrack
Copy link
Contributor

Not sure if you waiting a review here but i still see 2 requests

@bonustrack
Copy link
Contributor

Can you see the 2 request too @Sekhmet ?

@bonustrack bonustrack temporarily deployed to busy-dev-pr-813 October 25, 2017 14:09 Inactive
Copy link
Contributor

@bonustrack bonustrack left a comment

Choose a reason for hiding this comment

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

Looking good! The last changes seem to fixed the issue with 2 request been sent.

@Sekhmet Sekhmet self-requested a review October 25, 2017 16:25
@Sekhmet
Copy link
Contributor

Sekhmet commented Oct 25, 2017

I think that it would look better with even space above and below heading (now it has 8 pixels at top and 12 pixels at bottom.
image

I think that this padding is too big now:
image
I think that we should use padding-bottom: 0px for .PostRecommendation__link:last-of-type.

<h4 className="PostRecommendation__title SidebarBlock__content-title">
<i className="iconfont icon-headlines PostRecommendation__icon" />
{' '}
{intl.formatMessage({ id: 'recommended_posts', defaultMessage: 'Recommended Posts' })}
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we use FormattedMessage whenever possible?

@jm90m
Copy link
Contributor Author

jm90m commented Oct 25, 2017

@Sekhmet alright made those changes that you suggested

@jm90m jm90m merged commit 528fa8c into new-design Oct 25, 2017
@jm90m jm90m deleted the nd/add-single-post-recommendation-component branch October 25, 2017 18:46
@Sekhmet
Copy link
Contributor

Sekhmet commented Oct 25, 2017

I think that you missed first point from my review about uneven space around title. In my opinion it looks better with 8/8 pixels margins instead of 8/12. Could we change that? What do you think @bonustrack?

image

@bonustrack
Copy link
Contributor

You mean this @Sekhmet ?
image

@jm90m
Copy link
Contributor Author

jm90m commented Oct 25, 2017

@Sekhmet @bonustrack ahh i see what you mean, ill make another PR for it

@bonustrack
Copy link
Contributor

@jm90m just found something. Now the component "Interesting People" appear also when unlogged. It's supposed to appear only to logged users, can you revert that too?

@jm90m
Copy link
Contributor Author

jm90m commented Oct 25, 2017

@bonustrack so only show "Interesting People" component for authenticated users?

@jm90m
Copy link
Contributor Author

jm90m commented Oct 26, 2017

@bonustrack I hide Interesting People section for unathenticated users in my PR here: #857

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants