feat: AuthorsList Component with Github Profile Photos#215
feat: AuthorsList Component with Github Profile Photos#215ahmadawais merged 15 commits intomasterfrom
Conversation
LaRuaNa
left a comment
There was a problem hiding this comment.
Cool, LGTM. Just one thing I mentioned above :]
|
/gcbrun Fixed that yarn lock file. cc: @LaRuaNa would need another review now 👍 |
|
@ahmadawais Emotion is already available see #172 Can you please do it in the same way as in the PR so we'd have the styles also in snapshots. And revert another changes? Everything else still LGTM 👍 |
|
@LaRuaNa I really like the |
|
Actually I'm not fussed styled or inline we just started making snapshots with inline CSS and I'd like to keep it consistent. I'm not familiar enough with both methods but if you say styled way is better maybe write a RFC so we can talk about it in the next meeting. But by then I think we better keep it consistent :] |
There was a problem hiding this comment.
Fantastic work @ahmadawais! ❤️
I noticed that the default exports in the new component files are not named. This is probably not a good idea — unnamed functions show up as anonymous in a stack trace. This is not very helpful when debugging.
Request you to revert to the established pattern of naming the exports.
Also, this may necessitate renaming the styled components that conflict with the exported component name. This is where I feel using the css approach is more elegant over styled (not sure if it adds any weight, but noticed that most of the examples in the official emotion docs use css).
|
From @LaRuaNa:
From @sagirk:
Per these previous comments about inline CSS v.s. styled "components", (also observed that there is also code that uses class names), I do agree that it'd be great, if we can agree on one or the other pattern for styles. |
BeniCheni
left a comment
There was a problem hiding this comment.
LGTM with a "tiny" code question. Tested and looked good in staging. Thanks for doing this! ✌️
|
@LaRuaNa @sagirk @BeniCheni all done. Let's merge this tonight. /gcbrun |
|
From @BeniCheni
True that. I am a big fan of the styled components model. Makes things super minimal and fun to read. Don't much like to name things like consts for the |
sagirk
left a comment
There was a problem hiding this comment.
Great job! Looks fantastic, @ahmadawais! 💯
A minor nit below. Also, considering the authors-list.tsx component is introduced by this PR, do you mind adding tests for it?
sagirk
left a comment
There was a problem hiding this comment.
Oh, and BTW, none of the above is a blocker!
Feel free to address them on a follow-up PR, if you'd prefer.
amiller-gh
left a comment
There was a problem hiding this comment.
One blocking semantic HTML comment and then LGTM! Love that we have this, great job 🎉
|
@amiller-gh @sagirk awesome! Thanks for the reviews folks. Will need one more review to merge. I also just added the contributors for the first doc which are no in sync with GitHub contributors. Will handle the rest in a separate PR. For now let's merge this one and work on improving things in separate PRs. Looking forward, peace! ✌️ /gcbrun |
Discussed with Adam and we're good to go in a separate PR.
…217) <!-- Please read the [Code of Conduct](https://github.com/nodejs/nodejs.dev/blob/master/CODE_OF_CONDUCT.md) and the [Contributing Guidelines](https://github.com/nodejs/nodejs.dev/blob/master/CONTRIBUTING.md) before opening a pull request. --> ## Description <!-- Write a brief description of the changes introduced by this PR --> This is a follow-up PR to #215. It addresses outstanding nits. ## Related Issues <!-- Link to the issue that is fixed by this PR (if there is one) e.g. Fixes #1234, Addresses #1234, Related to #1234, etc. --> Ref: https://github.com/nodejs/nodejs.dev/issues/209
…217) <!-- Please read the [Code of Conduct](https://github.com/nodejs/nodejs.dev/blob/master/CODE_OF_CONDUCT.md) and the [Contributing Guidelines](https://github.com/nodejs/nodejs.dev/blob/master/CONTRIBUTING.md) before opening a pull request. --> ## Description <!-- Write a brief description of the changes introduced by this PR --> This is a follow-up PR to nodejs/nodejs.dev#215. It addresses outstanding nits. ## Related Issues <!-- Link to the issue that is fixed by this PR (if there is one) e.g. Fixes #1234, Addresses #1234, Related to #1234, etc. --> Ref: https://github.com/nodejs/nodejs.dev/issues/209
Built a new
AuthorsListcomponent and refactored the oldAuthorsLinkcomponent intoAuthorcomponent. Now the contributors list at the bottom of an article has GitHub profile images with brand color borders. 🎉FIXES: #209
Demo:
This is what it looks like with a couple of contributors.