Skip to content
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

refactor: remove unnecessary hook #6120

Merged
merged 3 commits into from
Nov 15, 2023
Merged

Conversation

ovflowd
Copy link
Member

@ovflowd ovflowd commented Nov 15, 2023

Description

This PR removes a Hook that is pretty much useless given we have the ActiveLink component; This PR also updates the ActiveLink component to have same logic features as the previous Hook and updates the SideNavigation Component making it RSC-compatible and subsequently making the DocsLayout compatible.

This PR also updates related styles as now the "active" class is on the link.

Validation

Deployment should work; Docs pages should work; Active Links should have active styling as before (Header and Side Navigation)

Related Issues

amannn/next-intl#611

@ovflowd ovflowd requested a review from a team as a code owner November 15, 2023 17:42
Copy link

vercel bot commented Nov 15, 2023

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

Name Status Preview Comments Updated (UTC)
nodejs-org ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 15, 2023 7:10pm

Copy link

github-actions bot commented Nov 15, 2023

Running Lighthouse audit...

Copy link

github-actions bot commented Nov 15, 2023

Unit Test Coverage Report

Lines Statements Branches Functions
Coverage: 85%
79.86% (357/447) 65.45% (72/110) 63.73% (58/91)

Unit Test Report

Tests Skipped Failures Errors Time
54 0 💤 0 ❌ 0 🔥 5.108s ⏱️

@ovflowd
Copy link
Member Author

ovflowd commented Nov 15, 2023

cc @nodejs/nodejs-website requesting this as a fast-track mostly because it's supposed to be a small refactor/fix to unblock other components

util/getBitness.ts Outdated Show resolved Hide resolved
Co-authored-by: canerakdas <canerakdas@gmail.com>
Signed-off-by: Claudio W <cwunder@gnome.org>
Copy link
Member

@AugustinMauroy AugustinMauroy left a comment

Choose a reason for hiding this comment

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

SGTM !

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 ovflowd added this pull request to the merge queue Nov 15, 2023
Merged via the queue into main with commit 33f1824 Nov 15, 2023
14 of 15 checks passed
@ovflowd ovflowd deleted the refactor/remove-unnecessary-hook branch November 15, 2023 20:35
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