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 User Activity Page to current user and all users profiles #1006

Merged
merged 39 commits into from
Nov 20, 2017

Conversation

jm90m
Copy link
Contributor

@jm90m jm90m commented Nov 4, 2017

Currently WIP, just opening PR so I can get feedback on design / layout as I make progress on this.

Fixes #995

Changes:

  • Add Activity page to both current user page and users pages
  • Updated Wallet page & Activity Page to get the userHasMoreActions from reducers rather than its own component state
  • Change default limit on account history to 500
  • Optimize activity page, to only display first 100 actions, until user scrolls down for more (Loading over 1000+ actions is slow)

@bonustrack bonustrack temporarily deployed to busy-nd-pr-1006 November 4, 2017 03:32 Inactive
@bonustrack bonustrack temporarily deployed to busy-nd-pr-1006 November 4, 2017 03:38 Inactive
@bonustrack bonustrack temporarily deployed to busy-nd-pr-1006 November 4, 2017 15:24 Inactive
@bonustrack bonustrack temporarily deployed to busy-nd-pr-1006 November 6, 2017 13:54 Inactive
@bonustrack bonustrack temporarily deployed to busy-nd-pr-1006 November 6, 2017 13:56 Inactive
@bonustrack bonustrack temporarily deployed to busy-nd-pr-1006 November 6, 2017 14:15 Inactive
@bonustrack bonustrack temporarily deployed to busy-nd-pr-1006 November 6, 2017 23:15 Inactive
@bonustrack bonustrack temporarily deployed to busy-nd-pr-1006 November 6, 2017 23:28 Inactive
@jm90m jm90m changed the title WIP Initial commit for User Activity Page Add User Activity Page to current user and all users profiles Nov 7, 2017
@jm90m jm90m removed the PR: WIP label Nov 7, 2017
* only display 100 actions at a time
@bonustrack bonustrack temporarily deployed to busy-nd-pr-1006 November 7, 2017 21:10 Inactive
@bonustrack bonustrack temporarily deployed to busy-nd-pr-1006 November 7, 2017 21:11 Inactive
@bonustrack bonustrack temporarily deployed to busy-nd-pr-1006 November 7, 2017 21:16 Inactive
@bonustrack
Copy link
Contributor

Great work!

  • Can we see the % on upvote / downvotes ?
  • Can you remove this margin? image
  • Can you create a placeholder for witness approve/unapprove operations? Similar than steemd:
    image

…ActivityActions, add % upvotes/downvotes with tooltip, refactor out some messages to components
@bonustrack bonustrack temporarily deployed to busy-nd-pr-1006 November 11, 2017 18:53 Inactive
@jm90m
Copy link
Contributor Author

jm90m commented Nov 12, 2017

@Sekhmet I kinda like the bold with the text, i feel like it looks aesthetically nicer

screen shot 2017-11-11 at 9 19 21 pm

VS

screen shot 2017-11-11 at 9 19 09 pm

@bonustrack what do you think? We should get Paresh's opinion also

@bonustrack bonustrack temporarily deployed to busy-nd-pr-1006 November 12, 2017 02:24 Inactive
@bonustrack bonustrack temporarily deployed to busy-nd-pr-1006 November 17, 2017 08:10 Inactive
@bonustrack bonustrack temporarily deployed to busy-nd-pr-1006 November 17, 2017 10:38 Inactive
@bonustrack bonustrack temporarily deployed to busy-nd-pr-1006 November 17, 2017 13:56 Inactive
@bonustrack bonustrack temporarily deployed to busy-nd-pr-1006 November 17, 2017 15:04 Inactive
* 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
@bonustrack bonustrack temporarily deployed to busy-nd-pr-1006 November 20, 2017 16:18 Inactive
@bonustrack bonustrack temporarily deployed to busy-nd-pr-1006 November 20, 2017 16:32 Inactive
@bonustrack bonustrack temporarily deployed to busy-nd-pr-1006 November 20, 2017 16:43 Inactive
@bonustrack bonustrack temporarily deployed to busy-nd-pr-1006 November 20, 2017 16:54 Inactive
/>
);
} else if (customActionType === accountHistoryConstants.REBLOG) {
if (currentUsername === customActionDetails.account) {
Copy link
Contributor

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.

Copy link
Contributor Author

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

@@ -55,7 +55,7 @@ class ClaimRewardsBlock extends Component {
rewardClaimed: true,
});
this.props.getUserAccountHistory(name);
this.props.updateAuthUser(name);
setTimeout(() => this.props.updateAuthUser(name), 2000);
Copy link
Contributor

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(...);

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good idea will update

@@ -118,6 +124,12 @@ export default function walletReducer(state = initialState, action) {
...state,
loadingEstAccountValue: false,
};

Copy link
Contributor

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 cases.

@jm90m
Copy link
Contributor Author

jm90m commented Nov 20, 2017

@Sekhmet made updates just now based on your feedback

@jm90m jm90m merged commit 91af264 into new-design Nov 20, 2017
@jm90m jm90m deleted the nd/add-activity-page branch November 20, 2017 20:36
@bonustrack bonustrack added this to the v2.1 milestone Dec 1, 2017
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.

None yet

3 participants