Skip to content

feat: Download layout - #6353

Merged
ovflowd merged 37 commits into
nodejs:mainfrom
canerakdas:download-layout
Feb 25, 2024
Merged

ovflowd merged 37 commits into
nodejs:mainfrom
canerakdas:download-layout

Conversation

@canerakdas

@canerakdas canerakdas commented Feb 19, 2024 •

Copy link
Copy Markdown
Member

Description

This is a draft PR and missing features need to be added before it is ready for review. The output of this PR includes the following pages and Download Layout;

  • /download
  • /download/current
  • /download/source-code
  • /download/source-code/current
  • /download/package-manager
  • /download/package-manager/current

Feel free to leave any pre-comments / commits @nodejs/nodejs-website

Check List

  • I have read the Contributing Guidelines and made commit messages that follow the guideline.
  • I have run npx turbo lint to ensure the code follows the style guide. And run npx turbo lint:fix to fix the style errors if necessary.
  • I have run npx turbo format to ensure the code follows the style guide.
  • I have run npx turbo test to check if all tests are passing.
  • I've covered new added functionality with unit tests if necessary.

@vercel

vercel Bot commented Feb 19, 2024 •

Copy link
Copy Markdown

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 Feb 25, 2024 6:39pm

Comment thread next.mdx.use.mjs Resolved
Comment thread providers/releaseProvider.tsx Resolved
@ovflowd ovflowd added the github_actions:pull-request Trigger Pull Request Checks label Feb 23, 2024
@github-actions github-actions Bot removed the github_actions:pull-request Trigger Pull Request Checks label Feb 23, 2024
@github-actions

github-actions Bot commented Feb 23, 2024 •

Copy link
Copy Markdown
Contributor

Lighthouse Results

URL Performance Accessibility Best Practices SEO Report
/en 🟢 99 🟢 98 🟠 83 🟢 91 🔗
/en/about 🟢 100 🟢 91 🟠 83 🟠 83 🔗
/en/about/previous-releases 🟢 100 🟢 96 🟠 83 🟢 92 🔗
/en/download 🟢 99 🟢 97 🟠 83 🟢 91 🔗
/en/blog 🟢 97 🟢 96 🟠 83 🟢 92 🔗

@github-actions

github-actions Bot commented Feb 23, 2024 •

Copy link
Copy Markdown
Contributor

Unit Test Coverage Report

Lines Statements Branches Functions
Coverage: 85%
80.07% (438/547) 79.09% (140/177) 73.07% (76/104)

Unit Test Report

Tests Skipped Failures Errors Time
88 0 💤 0 ❌ 0 🔥 4.403s ⏱️

@ovflowd ovflowd left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Giving an approval ✅ but need peer-reviewing or reviews from other folks as, well, I also committed a lot of things here!

@bmuenzenmeyer bmuenzenmeyer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

this is looking amazing!

functional review

small state bug, three way dropdown can create impossible combinations. for example:

  1. go to https://nodejs-org-git-fork-canerakdas-download-layout-openjs.vercel.app/en/download
  2. choose v20.11.1 (default), Windows, ARM64

image

  1. downloads successfully
  2. switch ONLY version to 17.9.1

image

  1. download buttons gives me an nginx 404 https://nodejs.org/dist/v17.9.1/node-v17.9.1-arm64.msi

the UI knows that this is not a valid option to choose

image

but since it was already on ARM, it doesn't prevent the action

is linux available on any version or chip?

perhaps my machine is preventing me from choosing it (but it doesnt prevent Mac downloads on a Windows device)

Comment thread components/Icons/Platform/Docker.tsx Resolved
Comment thread util/getNodeDownloadSnippet.ts Resolved
@ovflowd

ovflowd commented Feb 25, 2024

Copy link
Copy Markdown
Member

is linux available on any version or chip?
perhaps my machine is preventing me from choosing it (but it doesnt prevent Mac downloads on a Windows device)

There is no Installer for Linux. Just Prebuilt Binaries

but since it was already on ARM, it doesn't prevent the action

Will work on fixing it

@ovflowd

ovflowd commented Feb 25, 2024

Copy link
Copy Markdown
Member

I've fixed the BitnessDropdown issue, forgot to apply the same logic. Thanks for the diligence, @bmuenzenmeyer

@ovflowd

ovflowd commented Feb 25, 2024

Copy link
Copy Markdown
Member

Since this is a big PR and we know getting more reviews will probably be more challenging, me and @bmuenzenmeyer decided to merge this as it is.

We can always iterate on further fixes :)

This branch was successfully deployed

2 active deployments
Preview — 1ab41b12 Deployed Feb 25, 2024 by vercel[bot]
Storybook — 1ab41b12 Deployed Feb 25, 2024 by ovflowd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

design website redesign Issue/PR part of the Node.js Website Redesign

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants