nodejs.org icon indicating copy to clipboard operation
nodejs.org copied to clipboard

feat(metabar): Add avatarGroup on learn section

Open AugustinMauroy opened this issue 1 year ago • 17 comments

Description

Adding the Avatargroup component to the MetaBar in the learn section is a way of thanking contributors. The implementation work was not very complicated because the learn section had already received the authors with their GitHub pseudonyms.

The change only applies to the Learn section and not to the other sections of the site.

Validation

  • Learn section should have same design but with avatar.
  • All metabar should have correct rendering

Related Issues

No related Issues.

Check List

  • [X] I have read the Contributing Guidelines and made commit messages that follow the guideline.
  • [X] I have run npx turbo format to ensure the code follows the style guide.
  • [X] I have run npx turbo test to check if all tests are passing.
  • [X] I have run npx turbo build to check if the website builds without errors.
  • NA I've covered new added functionality with unit tests if necessary.

AugustinMauroy avatar Mar 08 '24 21:03 AugustinMauroy

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
nodejs-org ✅ Ready (Inspect) Visit Preview May 11, 2024 7:53pm

vercel[bot] avatar Mar 08 '24 21:03 vercel[bot]

Im not sure Im in favour of this change.

ovflowd avatar Mar 12 '24 10:03 ovflowd

Im not sure Im in favour of this change.

I'm sorry, Claudio, but could you give us some arguments? Because as a person I find it hard to see what's wrong with this addition.

AugustinMauroy avatar Mar 12 '24 18:03 AugustinMauroy

Im not sure Im in favour of this change.

I'm sorry, Claudio, but could you give us some arguments? Because as a person I find it hard to see what's wrong with this addition.

I'm kinda fine eitherways, just ensure to fix the CSS issues from this PR, there is some odd scrollbar on the avatars stuff.

ovflowd avatar Apr 15 '24 08:04 ovflowd

Lighthouse Results

URL Performance Accessibility Best Practices SEO Report
/en 🟢 98 🟢 100 🟢 96 🟢 91 🔗
/en/about 🟢 100 🟢 100 🟢 100 🟢 91 🔗
/en/about/previous-releases 🟢 98 🟢 100 🟢 100 🟢 92 🔗
/en/download 🟢 100 🟢 100 🟢 100 🟢 91 🔗
/en/blog 🟢 99 🟢 100 🟢 96 🟢 92 🔗

github-actions[bot] avatar Apr 15 '24 08:04 github-actions[bot]

Unit Test Coverage Report

Lines Statements Branches Functions
Coverage: 91%
90.04% (588/653) 76.08% (175/230) 92.18% (118/128)

Unit Test Report

Tests Skipped Failures Errors Time
128 0 :zzz: 0 :x: 0 :fire: 5.893s :stopwatch:

github-actions[bot] avatar Apr 15 '24 08:04 github-actions[bot]

cc @AugustinMauroy a gentle poke on you to see if you still want to get this merged? There are some visual issues as pointed by @mikeesto

ovflowd avatar Apr 21 '24 08:04 ovflowd

@ovflowd I need to rebase my branch. but style issue as been fix you can take a look in preview.

AugustinMauroy avatar Apr 21 '24 08:04 AugustinMauroy

@AugustinMauroy still seems broken to me

image

ovflowd avatar Apr 30 '24 18:04 ovflowd

simple question which browser did you use ?

AugustinMauroy avatar Apr 30 '24 19:04 AugustinMauroy

Chrome / Windows 11

ovflowd avatar Apr 30 '24 19:04 ovflowd

image

Still having the issue, I'm not sure if you figured out, but the issue is the style on AvatarGroup wrapper, it has overflow-x: scroll it should be overflow-x: auto

ovflowd avatar May 03 '24 18:05 ovflowd

Also, IMO we should change the amount of avatars we render based on the viewport (small, medium, large) you can use the MediaQuery Hook we have to change that!

ovflowd avatar May 03 '24 18:05 ovflowd

Also, IMO we should change the amount of avatars we render based on the viewport (small, medium, large) you can use the MediaQuery Hook we have to change that!

I love this idea

AugustinMauroy avatar May 03 '24 22:05 AugustinMauroy

yup I had break point for small screen but not mobile because on mobile avatar group is on bottom of page. Also I had tested scroll on Safari and Chrome I din't see any strange things I hope it's will be same on our 😂

AugustinMauroy avatar May 04 '24 11:05 AugustinMauroy

FWIW the scroll bars are resolved for me now 👍

mikeesto avatar May 06 '24 03:05 mikeesto

FWIW the scroll bars are resolved for me now 👍

yessss 👏🏻

AugustinMauroy avatar May 06 '24 09:05 AugustinMauroy