-
Notifications
You must be signed in to change notification settings - Fork 253
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 User Activity Page to current user and all users profiles #1006
Conversation
* only display 100 actions at a time
…ActivityActions, add % upvotes/downvotes with tooltip, refactor out some messages to components
@Sekhmet I kinda like the bold with the text, i feel like it looks aesthetically nicer VS@bonustrack what do you think? We should get Paresh's opinion also |
* fix right side bar blocks from overflowing * create another filter group -> Reward, -> author reward, claim reward- curation reward * use + and - circles for filter activities * titles moves on open and close
src/activity/CustomJSONMessage.js
Outdated
/> | ||
); | ||
} else if (customActionType === accountHistoryConstants.REBLOG) { | ||
if (currentUsername === customActionDetails.account) { |
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.
Looks like this if is not necessary. We can add this condition to else if.
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 see what you mean, looks like when you get account history of a user, the reblog actions that you get are only for that current user
src/wallet/ClaimRewardsBlock.js
Outdated
@@ -55,7 +55,7 @@ class ClaimRewardsBlock extends Component { | |||
rewardClaimed: true, | |||
}); | |||
this.props.getUserAccountHistory(name); | |||
this.props.updateAuthUser(name); | |||
setTimeout(() => this.props.updateAuthUser(name), 2000); |
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.
Shouldn't we just chain this after getUserAccountHistory
succeeded instead of timeouts?
this.props.getUserAccountHistory(name).then(...);
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.
good idea will update
src/wallet/walletReducer.js
Outdated
@@ -118,6 +124,12 @@ export default function walletReducer(state = initialState, action) { | |||
...state, | |||
loadingEstAccountValue: false, | |||
}; | |||
|
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.
We usually don't have blank lines between case
s.
…og logic, remove spaces in cases in reducer
@Sekhmet made updates just now based on your feedback |
Currently WIP, just opening PR so I can get feedback on design / layout as I make progress on this.
Fixes #995
Changes:
userHasMoreActions
from reducers rather than its own component state