-
Notifications
You must be signed in to change notification settings - Fork 252
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
Add Post Recommendation component #813
Conversation
Updated based on feedback from trello card: https://trello.com/c/9ZM6ctlZ/118-single-post-sidebar-right-component-post-recommendation |
|
Idealy we should use same class for all box title and avoid duplicate code. |
49868a7
to
b0e425d
Compare
@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 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". |
Or "Interesting Posts" ? |
Oh I see what you mean @bonustrack, so instead of the |
Can you add this style to Post title: |
aa2cf6b
to
fd19b7b
Compare
@bonustrack updated styles as you suggested, also added the author in each post recommended, with Link to post author |
|
@bonustrack Post title should now be 16px while all others are at 15px, limited the stories to 4, and added link to comments |
…link to match `by`
* also use steemAPI directly rather than go through actions to avoid going through reducers
776ebed
to
e95a28f
Compare
Not sure if you waiting a review here but i still see 2 requests |
Can you see the 2 request too @Sekhmet ? |
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.
Looking good! The last changes seem to fixed the issue with 2 request been sent.
<h4 className="PostRecommendation__title SidebarBlock__content-title"> | ||
<i className="iconfont icon-headlines PostRecommendation__icon" /> | ||
{' '} | ||
{intl.formatMessage({ id: 'recommended_posts', defaultMessage: 'Recommended Posts' })} |
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.
Can we use FormattedMessage
whenever possible?
@Sekhmet alright made those changes that you suggested |
I think that you missed first point from my review about uneven space around title. In my opinion it looks better with |
You mean this @Sekhmet ? |
@Sekhmet @bonustrack ahh i see what you mean, ill make another PR for it |
@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? |
@bonustrack so only show "Interesting People" component for authenticated users? |
@bonustrack I hide Interesting People section for unathenticated users in my PR here: #857 |
WIP - Add Post Recommendation component