Add User's projects to their profile #152
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
See designs here

Currently, the only thing missing is the bottom section with the list of parts.
You should be able to re-use
web/src/components/Parts/Parts.jsto recreate the list, as this is already used on the homepage and looks almost exactly the same.Hey @Irev-Dev, I am new to this repo and would love to contribute by resolving this issue.
Awesome @YosephKS, thanks for the help.
The instructions in the readme for how to get setup should be up-to-date, I'll be as responsive as I can if you hit any snags.
Just trying to think of any extra details that will be helpful to you for this one.
Are you familiar with GraphQL?
I ask because you'll need to update a GraphQL query to get the data for these
partsThe user profile is in
web/src/components/UserProfile/UserProfile.js@Irev-Dev Thank you very much for the opportunity!
And yes I am familiar with GraphQL, I usually use Apollo GraphQL for my projects.
Awesome, I'll have a check on that file.
Perfect.
So the query is in
web/src/components/UserCell/UserCell.jsand it gets passed down to the userProfile. You can either modify that to get the parts data or you can make a new "cell" that has it's own query and fetches data itself."Cell" is a redwoodjs term, so there would be a bit more to learn (unless you already are familiar with the framework). So probably just modifying the original query is easier. Your choice.
If you did want to make your own cell Redwood will do the heavy lifting for you and generate the start of a cell for you. once you have the project set up running
yarn redwood generate cell userProfilePartswill get you going, but again this is optional.I also just noticed that the exact same query
web/src/components/EditUserCell/EditUserCell.jstoo, so that will need to be updated as well as the UserCell (it's not great that there duplication here, but that's something I should clean up later)So to dump all this info on you, just wouldn't want you getting lost, and I know it can be challenging finding you way around a new repo.
@Irev-Dev btw does this looks good to you? maybe you want me to modify the margin/padding a bit?

@Irev-Dev also yeah for the GraphQL queries and mutations I think it would be better if they could be placed like in a seperate
GraphQLfolder, then it can be exported from there. I think it would look much nicer. If you want I can do that in a different PR later.Yeah that looks great, Thanks @YosephKS. Padding wise if you could match the vertical padding between "parts:" and the cards to be the same as `bio:" and the bio that would be good.
And don't move any of the GraphQL queries. Thanks for the offer but moving them out of the "Cell" components would go against redwoods "cell" philosophy. I'm not too opinionated about it myself, except for the fact that I don't want to break with redwood conventions at this point in time.
@Irev-Dev Oh I see cool, let me fix the padding a bit real quick then I'll make a PR.
Ah I see, I just know that about redwoods, maybe I can read more about it later because I haven't fully familiarized with the framework yet, but good to know.