Skip to content

chore: updated pills text and badge group behaviour #7997

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 1 commit into from
Jul 20, 2025

Conversation

ovflowd
Copy link
Member

@ovflowd ovflowd commented Jul 20, 2025

This PR is a small change on our pills for BadgeGroup and the Changelog Badges as discussed on Slack (https://openjs-foundation.slack.com/archives/CVAMEJ4UV/p1752848215272629)

Requesting fast-track as this is a small yet convenient change and we cna always iterate if we're unhappy with it cc @nodejs/nodejs-website

@Copilot Copilot AI review requested due to automatic review settings July 20, 2025 00:48
@ovflowd ovflowd requested a review from a team as a code owner July 20, 2025 00:48
Copy link

vercel bot commented Jul 20, 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 20, 2025 0:49am

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 updates the BadgeGroup component to improve external link handling and updates pills text for better clarity. The changes focus on replacing the arrow icon for external links and simplifying badge labels.

  • Updated BadgeGroup to show an up-right arrow icon specifically for external links (target="_blank")
  • Changed badge text from "Node.js LTS" to "Latest LTS" and "Node.js Current" to "Latest Release"
  • Added logic to automatically set target="_blank" for external URLs in withBadgeGroup component

Reviewed Changes

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

File Description
packages/ui-components/src/Common/BadgeGroup/index.tsx Updated icon import and conditional rendering logic for external link indicators
apps/site/pages/en/index.mdx Simplified badge text labels for Node.js releases
apps/site/components/withBadgeGroup.tsx Added automatic external link detection and target="_blank" assignment

Copy link

codecov bot commented Jul 20, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 73.13%. Comparing base (a008bed) to head (47fbae6).
Report is 1 commits behind head on main.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7997      +/-   ##
==========================================
- Coverage   73.15%   73.13%   -0.02%     
==========================================
  Files          95       95              
  Lines        8354     8354              
  Branches      218      218              
==========================================
- Hits         6111     6110       -1     
- Misses       2242     2243       +1     
  Partials        1        1              

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

Copy link
Member

@mikeesto mikeesto 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 ovflowd added fast-track Fast Tracking PRs github_actions:pull-request Trigger Pull Request Checks labels Jul 20, 2025
@ovflowd ovflowd enabled auto-merge July 20, 2025 01:13
@github-actions github-actions bot removed the github_actions:pull-request Trigger Pull Request Checks label Jul 20, 2025
Copy link
Contributor

github-actions bot commented Jul 20, 2025

Lighthouse Results

URL Performance Accessibility Best Practices SEO Report
/en 🟢 96 🟢 100 🟢 100 🔴 66 🔗
/en/about 🟢 100 🟢 97 🟢 100 🔴 58 🔗
/en/about/previous-releases 🟢 99 🟢 93 🟢 100 🔴 61 🔗
/en/download 🟢 98 🟢 100 🟢 100 🔴 66 🔗
/en/blog 🟢 100 🟢 100 🟢 96 🔴 69 🔗

@ovflowd ovflowd disabled auto-merge July 20, 2025 01:17
@ovflowd ovflowd added the github_actions:pull-request Trigger Pull Request Checks label Jul 20, 2025
@github-actions github-actions bot removed the github_actions:pull-request Trigger Pull Request Checks label Jul 20, 2025
@ovflowd ovflowd enabled auto-merge July 20, 2025 01:19
@ovflowd ovflowd added this pull request to the merge queue Jul 20, 2025
Merged via the queue into main with commit edacebc Jul 20, 2025
30 checks passed
@ovflowd ovflowd deleted the chore/minor-pills-change branch July 20, 2025 01:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fast-track Fast Tracking PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants