nodejs / nodejs.org

The Node.jsยฎ Website
https://nodejs.org
MIT License
6.02k stars 6.17k forks source link

Fixed: fixed the breadcrumb inconsistency #6705

Closed TenzDelek closed 2 months ago

TenzDelek commented 2 months ago

Fixes #6679

Description

Validation

before:

image

after:

image

Check List

vercel[bot] commented 2 months ago

The latest updates on your projects. Learn more about Vercel for Git โ†—๏ธŽ

Name Status Preview Updated (UTC)
nodejs-org โœ… Ready (Inspect) Visit Preview May 4, 2024 2:45pm
github-actions[bot] commented 2 months ago
Lighthouse Results URL Performance Accessibility Best Practices SEO Report
/en ๐ŸŸข 97 ๐ŸŸข 100 ๐ŸŸข 96 ๐ŸŸข 91 ๐Ÿ”—
/en/about ๐ŸŸข 100 ๐ŸŸข 100 ๐ŸŸข 96 ๐ŸŸข 91 ๐Ÿ”—
/en/about/previous-releases ๐ŸŸข 99 ๐ŸŸข 100 ๐ŸŸข 100 ๐ŸŸข 92 ๐Ÿ”—
/en/download ๐ŸŸข 100 ๐ŸŸข 100 ๐ŸŸข 100 ๐ŸŸข 91 ๐Ÿ”—
/en/blog ๐ŸŸข 98 ๐ŸŸข 100 ๐ŸŸข 96 ๐ŸŸข 92 ๐Ÿ”—
github-actions[bot] commented 2 months ago

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: 6.293s :stopwatch:
AugustinMauroy commented 2 months ago

There are still strange behavior https://nodejs-org-git-fork-tenzdelek-fix-breadcrumb-inco-7252f3-openjs.vercel.app/en/learn/getting-started/ecmascript-2015-es6-and-beyond

Capture dโ€™eฬcran 2024-05-04 aฬ€ 12 52 35
TenzDelek commented 2 months ago

There are still strange behavior https://nodejs-org-git-fork-tenzdelek-fix-breadcrumb-inco-7252f3-openjs.vercel.app/en/learn/getting-started/ecmascript-2015-es6-and-beyond

Capture dโ€™eฬcran 2024-05-04 aฬ€ 12 52 35

@AugustinMauroy thank you for pointing that out, after checking the prior logic i found out that we are not checking the dashtocamel for digit thats why it was acting like that before:

image

after:

image

have made the changes in the dashtocamel file..

TenzDelek commented 2 months ago

https://github.com/nodejs/nodejs.org/issues/6679#issuecomment-2094119357 @mikeesto @ovflowd @AugustinMauroy regarding this comment raise, I tried to look through it. I think that the reason why the getInvolved is not getting its breadcrumbs fix, is the way we are giving the path for the about. currently the about items are its

image

so that for about section it is working as fine. first getting in the about(True) then goes in its item, then match with the item.

image

the Error parts starts from here

but for the get Involved the navigation tree is same (about) but when we tried to get in the tree it doesnt work as the item inside the tree is of about and not of get involved. resulting in false in every iteration :

image

Solution

my thoughts-

TenzDelek commented 2 months ago

as the issue is fixed in #6710 , closing this pr