Skip to content

Conversation

@bmuenzenmeyer
Copy link
Contributor

@bmuenzenmeyer bmuenzenmeyer commented Nov 27, 2025

relates to nodejs/web-team#56

Description

Within https://github.com/nodejs/web-team/blob/main/meetings/2025-10-27.md we discussed #8234, and specific to this PR, how multiple attendees noted that Learn content seems to indicate there is a progression (I mean, it's labeled that way in our code even!), when the content is often not linear at all. In addition to re-ordering and presenting content differently, I want to explore doing away with the progression logic altogether.

This PR therefore removes progress the icon variant to unify all sidebar experiences, and no longer suggests linear flow.

I first thought about simply removing the vertical lines between hexagons, but that looks like oddly executed list items then. I think this proposed approach makes the most sense from a consistency standpoint, so the UX is similar throughout the whole page to indicate active, hover, current states. Of particular improvement is the hover state, which does not exist on learn items currently.

Validation

live preview

BEFORE AFTER
image image

Related Issues

Check List

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

removes progress icon variant to unify all sidebar experiences, and no longer suggest linear flow, which we received as feedback multiple times during collaboration summit
Copilot AI review requested due to automatic review settings November 27, 2025 05:03
@bmuenzenmeyer bmuenzenmeyer requested a review from a team as a code owner November 27, 2025 05:03
@vercel
Copy link

vercel bot commented Nov 27, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Updated (UTC)
nodejs-org Ready Ready Preview Nov 27, 2025 4:03pm

@github-actions
Copy link
Contributor

👋 Codeowner Review Request

The following codeowners have been identified for the changed files:

Team reviewers: @nodejs/nodejs-website

Please review the changes when you have a chance. Thank you! 🙏

@codecov
Copy link

codecov bot commented Nov 27, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 76.41%. Comparing base (9b189b1) to head (f5cbcfa).
⚠️ Report is 3 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8377      +/-   ##
==========================================
- Coverage   76.42%   76.41%   -0.02%     
==========================================
  Files         118      118              
  Lines        9928     9928              
  Branches      334      334              
==========================================
- Hits         7587     7586       -1     
- Misses       2339     2340       +1     
  Partials        2        2              

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

Copy link
Contributor

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 removes the progression icon feature from sidebar components to standardize the UI experience across the site. The change addresses feedback that the progression indicators (hexagonal icons with connecting lines) falsely suggested linear content flow in the Learn section when the content is often non-linear.

Key changes:

  • Removed showProgressionIcons prop from Sidebar components throughout the component hierarchy
  • Deleted the ProgressionIcon component entirely
  • Unified hover and active states across all sidebar items
  • Removed the Progression variant from Storybook stories

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated no comments.

Show a summary per file
File Description
packages/ui-components/src/Containers/Sidebar/index.tsx Removed showProgressionIcons prop from component interface and removed prop passing to SidebarGroup
packages/ui-components/src/Containers/Sidebar/index.stories.tsx Removed Progression story variant, keeping only Default story
packages/ui-components/src/Containers/Sidebar/SidebarItem/index.tsx Removed ProgressionIcon import, showProgressionIcons prop, and conditional rendering of progression icon
packages/ui-components/src/Containers/Sidebar/SidebarItem/index.module.css Removed progression-specific styles and simplified hover/active state selectors
packages/ui-components/src/Containers/Sidebar/SidebarGroup/index.tsx Removed showProgressionIcons prop from component interface and prop passing to SidebarItem
packages/ui-components/src/Containers/Sidebar/SidebarGroup/index.module.css Removed progression-specific styles including vertical lines and hexagon positioning
packages/ui-components/src/Containers/Sidebar/ProgressionIcon/index.tsx Deleted entire file as the component is no longer needed
apps/site/layouts/Learn.tsx Removed showProgressionIcons={true} prop from WithSideBar component usage
apps/site/components/withSidebar.tsx Removed showProgressionIcons from WithSidebarProps type definition

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 27, 2025

📦 Build Size Comparison

Summary

Metric Value
Old Total Size 3.51 MB
New Total Size 3.52 MB
Delta 8.63 KB (+0.24%)

Changes

➕ Added Assets (3)
Name Size
.next/static/chunks/47f6daefe3158485.js 204.48 KB
.next/static/chunks/8dab97803250982b.js 27.30 KB
.next/static/chunks/435b13b4f206f306.js 27.30 KB
➖ Removed Assets (4)
Name Size
.next/static/chunks/ea3a705d0d725c90.js 204.48 KB
.next/static/chunks/3a28d2ad04e48e39.js 10.31 KB
.next/static/chunks/bbfc5ec97e7cd8fc.js 17.83 KB
.next/static/chunks/b50b31b328233e8d.js 17.83 KB

@bmuenzenmeyer bmuenzenmeyer added this pull request to the merge queue Nov 29, 2025
Merged via the queue into main with commit 2707002 Nov 29, 2025
12 checks passed
@bmuenzenmeyer bmuenzenmeyer deleted the no-path branch November 29, 2025 17:36
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.

3 participants