-
Notifications
You must be signed in to change notification settings - Fork 16
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
Implementation of User Profile Dashboard #39
Implementation of User Profile Dashboard #39
Conversation
@@ -0,0 +1,1028 @@ | |||
{ |
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.
Only use yarn remove this
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.
How do I get rid of this?
@@ -7,6 +7,7 @@ | |||
"axios": "^0.18.0", | |||
"express": "^4.16.3", | |||
"express-http-to-https": "^1.1.4", | |||
"fecha": "^2.3.3", |
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.
Where did you use this dependency
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.
Hi. I plan to use fecha to parse date on the Profile page. It's really lightweight and at 3kb gzipped it's a better alternative to Moment.js
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.
If you have a better/more efficient way of parsing dates, please let me know.
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.
Actually I saw this PR so i judged it that way it would be better if you introduced it just as you used it otherwise for this PR it looks like a unused dependency 🙂
You can keep it if you are going to use it
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'm currently using it for the next pull.
@@ -0,0 +1,3 @@ | |||
import ProfileCategoriesBar from './ProfileCategoriesBar'; |
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 file just imports and exports another module we can simply import the module as it is just one module
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 use the Component Folder Pattern. It helps make code more searchable. However if the convention is against this, I will revert.
@@ -0,0 +1,3 @@ | |||
import ProfileHero from './ProfileHero'; |
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.
Same here
@@ -0,0 +1,3 @@ | |||
import ProfileInfoBar from './ProfileInfoBar'; |
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.
Same here
@@ -0,0 +1,3 @@ | |||
import ProfileMetaBar from './ProfileMetaBar'; |
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.
⬆️
@@ -0,0 +1,3 @@ | |||
import Profile from './Profile'; |
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.
⬆️
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 have done the code review
I would do functional review in a while can you do the required changes 🙂
This pull adds the user profile dashboard.
To have this feature fully implemented, moderation (make mod/remove mod) and account access (ban/unban) functionality must be integrated. This will be included in the next pull.
Also more comprehensive empty states should be added. Currently, only posts on the database are displayed. Maybe have them fetch from the blockchain perhaps?
References issue #35