Skip to content

feat: icons with versions #7962

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

Merged
merged 13 commits into from
Jul 9, 2025
Merged

feat: icons with versions #7962

merged 13 commits into from
Jul 9, 2025

Conversation

ovflowd
Copy link
Member

@ovflowd ovflowd commented Jul 8, 2025

This PR adds nice badges to the home page with current versions and link to blog posts, which are the same as the changelog.

Closes #7889

@Copilot Copilot AI review requested due to automatic review settings July 8, 2025 15:46
@ovflowd ovflowd requested review from a team as code owners July 8, 2025 15:46
Copy link

vercel bot commented Jul 8, 2025

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

Name Status Preview Updated (UTC)
nodejs-org ✅ Ready (Inspect) Visit Preview Jul 9, 2025 4:19pm

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds versioned release badges to the home page and enables sizing for badge components.

  • Introduces a size prop to Badge and BadgeGroup with default "medium"
  • Updates CSS for badge message links to maintain consistent styling
  • Integrates BadgeGroup into MDX components and home page, and configures Turbo UI

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
turbo.json Enable Turbo UI by setting "ui": "tui"
packages/ui-components/src/Common/BadgeGroup/index.tsx Added size prop support and type reuse
packages/ui-components/src/Common/BadgeGroup/index.stories.tsx Added SmallDefault story for badge sizes
packages/ui-components/src/Common/BadgeGroup/index.module.css Extended .message selector for link styling
packages/ui-components/src/Common/Badge/index.tsx Introduced BadgeSize alias for size strings
apps/site/pages/en/index.mdx Render version badges on the home page
apps/site/next.mdx.use.mjs Imported and exposed BadgeGroup to MDX
Comments suppressed due to low confidence (1)

packages/ui-components/src/Common/BadgeGroup/index.stories.tsx:17

  • [nitpick] We have a SmallDefault story for the default badge size, but no story demonstrating the warning or error variants at the small size. Adding those would ensure visual regression coverage for all size/variant combinations.
export const SmallDefault: Story = {

Copy link

codecov bot commented Jul 8, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 73.74%. Comparing base (a459447) to head (17de69f).
Report is 1 commits behind head on main.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7962      +/-   ##
==========================================
+ Coverage   73.72%   73.74%   +0.02%     
==========================================
  Files          96       96              
  Lines        8365     8365              
  Branches      219      219              
==========================================
+ Hits         6167     6169       +2     
+ Misses       2197     2195       -2     
  Partials        1        1              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@avivkeller
Copy link
Member

image

I'm not sure I love how it looks on Mobile. It feels like there is a lot of unused space

@avivkeller
Copy link
Member

It's also not clear where these link to someone visiting the homepage

@ovflowd
Copy link
Member Author

ovflowd commented Jul 8, 2025

image

I'm not sure I love how it looks on Mobile. It feels like there is a lot of unused space

It looks good on mobile. It depends of your screen size. iPhone 12 looks good:

image

image

@ovflowd
Copy link
Member Author

ovflowd commented Jul 8, 2025

It's also not clear where these link to someone visiting the homepage

That is true. I'm wondering if we should even have links there 🤷

@MattIPv4
Copy link
Member

MattIPv4 commented Jul 8, 2025

👀 I would probably expect the entire pill to be a link, not just the text?

@ovflowd
Copy link
Member Author

ovflowd commented Jul 8, 2025

not just the text?

You're right.

@avivkeller
Copy link
Member

image
I'm not sure I love how it looks on Mobile. It feels like there is a lot of unused space

It looks good on mobile. It depends of your screen size. iPhone 12 looks good:

image

image

IMO if there isn’t enough space, each pill should be its own line.

@ovflowd
Copy link
Member Author

ovflowd commented Jul 8, 2025

IMO if there isn’t enough space, each pill should be its own line.

Done

@ovflowd
Copy link
Member Author

ovflowd commented Jul 8, 2025

cc @dario-piotrowicz playwright is failing for unknown reasons to me.

Co-authored-by: Caner Akdas <[email protected]>
Signed-off-by: Claudio Wunder <[email protected]>
Copy link
Member

@canerakdas canerakdas left a comment

Choose a reason for hiding this comment

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

LGTM

@ovflowd
Copy link
Member Author

ovflowd commented Jul 9, 2025

I know we haven't reached 48 hours, would y'all be okay with fast-tracking? cc @nodejs/nodejs-website 👍 / 👎

@bmuenzenmeyer bmuenzenmeyer added this pull request to the merge queue Jul 9, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to a conflict with the base branch Jul 9, 2025
@ovflowd ovflowd added the github_actions:pull-request Trigger Pull Request Checks label Jul 9, 2025
@ovflowd ovflowd enabled auto-merge July 9, 2025 16:18
@github-actions github-actions bot removed the github_actions:pull-request Trigger Pull Request Checks label Jul 9, 2025
@ovflowd ovflowd added this pull request to the merge queue Jul 9, 2025
Merged via the queue into main with commit 2a5d26f Jul 9, 2025
17 checks passed
@ovflowd ovflowd deleted the feat/icons-with-versions branch July 9, 2025 16:26
@dario-piotrowicz
Copy link
Member

cc @dario-piotrowicz playwright is failing for unknown reasons to me.

Sorry, I didn't see your ping earlier 😓

It seems like now it's all good right? 🙂

And regarding the failure (https://github.com/nodejs/nodejs.org/actions/runs/16154755332/job/45594542160#step:11:73), I am guessing that this was the bit causing the failure:

const mappedApiFiles = apiDocsFiles.map(
I wonder if this could have just been a github hiccup 🤔

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.

Add current versions back to homepage
8 participants