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

24 user profile #60

Merged
merged 12 commits into from
Oct 24, 2023
Merged

24 user profile #60

merged 12 commits into from
Oct 24, 2023

Conversation

Boredalien248
Copy link
Contributor

  • implemented simple frontend design for profile page.
  • on clicking view opens up a modal popup where you can view the content
  • displays first 100 words of the content in the post in card
  • added button on home-page to navigate to profile-page
  • clicking on project name takes you back to home page
React.App.-.Google.Chrome.2023-10-24.14-43-02.mp4

@Boredalien248
Copy link
Contributor Author

  • using hardcoded john doe id for now

FOR TESTING :

  • for testing please add data from fixtured to local db and check
  • you can add some posts using the code on main and come back to my branch and it should be updated with the new posts on the profile page

Copy link
Contributor

@kaynzhel kaynzhel left a comment

Choose a reason for hiding this comment

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

Have a few comments on future todos but don't have to do it now.

However, on the dev console, I see a warning/error:
Screenshot 2023-10-24 at 3 25 43 PM

Can we resolve it? Other than that, I think it's good to be merged

Comment on lines +104 to +112
<AppBar position="relative">
<Toolbar>
<Link to="/home-page">
<Typography variant="h6" className={classes.customLink} style={{ textDecoration: 'none' }}>
SocialDistribution
</Typography>
</Link>
</Toolbar>
</AppBar>
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't need to do for this PR: I see that home page and profile page have different app bars, I'll add an issue to create a header component to have them be consistent.

Comment on lines +21 to +26
def get(self, request, author_id):
# get the author data whose id is AUTHOR_ID
author = Author.objects.get(id=author_id)
serializer = AuthorSerializer(author)
return Response(serializer.data, status=status.HTTP_200_OK)

Copy link
Contributor

Choose a reason for hiding this comment

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

Can be done later on but the api needs to have an updated serializer. On the project reqs, a call to a single author has "type", has an id url for the id field instead of the uuid, etc..

I don't think it's needed for this profile page, so this can be updated as we work more on these api calls.

@Boredalien248 Boredalien248 merged commit b2315b4 into main Oct 24, 2023
1 check passed
@Boredalien248 Boredalien248 deleted the 24-user-profile branch October 24, 2023 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants