feat(releases-page): Downloads Grid#912
Conversation
A huge acknowledgement to @saulonunesdev for putting together these templates initially. The PR looked great but ended up with some additional content that needed to be refactored out. This commit restores the work he put in to update the Downloads page. - Add all the Download templates that were green from original PR - Add to the style tokens
|
/preview |
|
Please find a preview at: https://staging.nodejs.dev/912/ |
|
Direct link for your reference: https://staging.nodejs.dev/912/download I didn't link the download page in the header yet since it makes sense to wait until we finalize the rest of the downloads table below first. |
|
Thanks for the effort @JemJem 👍 on not making the /download public yet |
|
that's odd: I also tested on a mac, and it highlighted the mac installer as expected for me. Not totally sure on that front. I didn't write the logic for which group to highlight initially, but I noticed there were those logs in there. I'm sure there's a hook nearby to troubleshoot. (If anyone else is exploring this, please let me know if you run into the same issues and if you have any troubleshooting notes you can add.) |
|
I'm also on a mac and what I have found is that:
|
|
Hey, I looked into this and it seems like it only breaks when the trailing "/" is not in the url https://staging.nodejs.dev/912/download and It does a redirect back to https://staging.nodejs.dev/912/download/ (with slash). Now i am not sure how gatsby works since this is the first time ever using it, but i suspect once the component is mounted, one would need a useEffect to change that default value. The following seems to fix this issue. This is usually a common pitfall when setting state based on props. You can test it by running |
|
Yep @miguelc1221 This fixes it. I tried a "production" build locally using |
|
Nice! Really appreciate the distributed troubleshooting on this, your |
A fix proposed on the PR to address an issue where the download userOs wouldn't update correctly. useEffect ensures the component will render again correctly when the prop changes.
…into feature-releases-page
|
Please find a preview at: https://staging.nodejs.dev/912/ |
|
Thanks @jemjam for having the time to make this work <3 |
Is this error from clicking https://staging.nodejs.dev/912/ ? I just tried on mobile iPhone XR and it works, including going to the /downloads page |
It's working fine for me too. |
No problem! Glad I could help! |


Adds some styling to the downloads grid at the top of the Download page.
A huge acknowledgement to @saulonunesdev for putting together these
templates initially in #547. The PR looked great but ended up with some
additional content that needed to be refactored out. This commit
restores the work he put in to update the Downloads page components.
Description
Related Issues