Expose who has liked the parts #192 #199
Reference in New Issue
Block a user
Delete Branch "main"
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?
192
@Irev-Dev check how it looks.
Thanks @yencolon, This looks really good.
I've had quick look at the code and I'm impressed. Looks like I've definitely got Redwood figured out.
I'm a little tired atm, but I hope to have a proper look tomorrow and hopefully merge.
I left a couple of comments for tiny changes.
One other thing I noticed is that if you look at the reactions then add a reaction, then look at the reactions again the new reaction doesn't appear. Here's a vid.
https://user-images.githubusercontent.com/29681384/105225513-cdccf600-5bb2-11eb-8fea-c49e0538fbe2.mov
Basically we need to tell apollo to update one of the queries.
Here's some documentation about it https://www.apollographql.com/blog/when-to-use-refetch-queries-in-apollo-client/
There's also an example of where I've used it in
web/src/components/IdePartCell/IdePartCell.jsSo I'm pretty sure you would want to put the same thing in
web/src/components/PartCell/PartCell.jsforTOGGLE_REACTION_MUTATIONand reference the query you made in this PR.Basically, its telling apollo that when a user adds a reaction with
TOGGLE_REACTION_MUTATIONthan update this other query so that everything stays up-to-date?Does that make sense?
I've rarely just straight black text in the app, so lets add
className="text-gray-700"for consistency.@@ -0,0 +17,4 @@export const Loading = () => <div>Loading...</div>export const Empty = () => <div>Empty</div>Let's make the empty state look a little nicer, even just
Should be good
Oh, understandable. Thanks for the corrections. I will fix it :)
@yencolon I appreciate you putting up this PR. Since it's been a few days I thought maybe you ran out of steam, which is fair enough, so I've got another PR to make the few weeks I suggested.
You can see the changes here. https://github.com/Irev-Dev/cadhub/pull/201
Thanks again :)
@Irev-Dev Oh, sorry, I was expecting to do this on Sunday (today 😅), I was busy with work. But, it's ok, thanks for finishing it up!