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

Migrate Header and Footer Components #5304

Closed
2 tasks done
ovflowd opened this issue Apr 20, 2023 · 19 comments
Closed
2 tasks done

Migrate Header and Footer Components #5304

ovflowd opened this issue Apr 20, 2023 · 19 comments
Labels
feature-request Requesting a new Technological Feature to be added to the Website website redesign Issue/PR part of the Node.js Website Redesign

Comments

@ovflowd
Copy link
Member

ovflowd commented Apr 20, 2023

Continuing the migration of components from nodejs.dev that we started here, we want to migrate the Header and Footer Components.

This issue will keep track of these components and their development progress.

The Migration of each Component

  • Each Component should go under components folder on this repository
  • Each Component has its sub-folder (e.g., components/NewHeader)
  • The folder structure should pretty much be the same (CSS components, React, and sub-components), but feel free to make changes if you see deemed
  • Please add some if the Component still needs to get unit tests. At least to ensure the Component is rendering. If the Component has states/CTAs (Buttons/Triggers), please cover them too.
  • The Storybook of each component should allow interaction with all possible states of the Component
  • If the Component depends on Hooks, please migrate them too, with the following caveat:
    • If that component only uses the Hook, move it to the same folder of the Component
    • Otherwise, migrate it to the hooks folder of the repository.
  • If the Component has a Gatsby-specific logic (e.g. Dark Theme Switcher), if it is straightforward enough (e.g. a dark theme switcher plugin for Next.js or it is simple enough to code by ourselves, e.g. a Hook that we manage together with a React Provider) then feel free to do it.
    • Otherwise, if you have questions, please ask them on this Issue or your Draft PR for the Component.

List of Components to Migrate

@ovflowd ovflowd added website redesign Issue/PR part of the Node.js Website Redesign feature-request Requesting a new Technological Feature to be added to the Website labels Apr 20, 2023
@ovflowd ovflowd moved this to 🔖 Ready in Website Redesign Apr 20, 2023
@AugustinMauroy
Copy link
Member

I'm taking this issue . (if it's ok)

@ovflowd
Copy link
Member Author

ovflowd commented Apr 20, 2023

Can you choose one component? (As we want to have one per time)

@AugustinMauroy
Copy link
Member

i prefer footer

@AugustinMauroy
Copy link
Member

About footer I just have to migrate code or I have to implement-it ?

@u-rogel
Copy link
Contributor

u-rogel commented Apr 21, 2023

I will look into the Header component

@ovflowd
Copy link
Member Author

ovflowd commented Apr 21, 2023

@AugustinMauroy, you should migrate not reimplement it, if possible :) (We want to have the same design and feature-set, as otherwise it could take more time to get an approval)

@AugustinMauroy
Copy link
Member

So I just create the component and create the stories

@shanpriyan shanpriyan moved this from 🔖 Ready to 🏗 In progress in Website Redesign Apr 21, 2023
@u-rogel
Copy link
Contributor

u-rogel commented Apr 23, 2023

@ovflowd hi, I started to work on converting <Header /> to the new codebase but came across compiling issue. Also when switching back to the major/website-redesign branch, runnning again npm ci then npm run serve I get issues.
Have you seen this error before?
Screenshot 2023-04-23 at 12 48 02

@AugustinMauroy
Copy link
Member

It's common error with nextjs and NODE_ENV.
Personally it appears randomly.

@ovflowd
Copy link
Member Author

ovflowd commented Apr 23, 2023

hi, I started to work on converting

to the new codebase but came across compiling issue. Also when switching back to the major/website-redesign branch, runnning again npm ci then npm run serve I get issues.
Have you seen this error before?

This sounds a Next.js cache issue. I'd delete the .next and node_modules/.cache folders :)

@u-rogel
Copy link
Contributor

u-rogel commented Apr 23, 2023

This sounds a Next.js cache issue. I'd delete the .next and node_modules/.cache folders :)

@ovflowd Did so and still getting it. Can you think of any other command expect to npm ci & npm run serve I need to run in order to get it up and running?

@ovflowd
Copy link
Member Author

ovflowd commented Apr 23, 2023

I honestly don't know why you're facing this. I will investigate 😅

What Node.js version you're using and which OS? Will try to replicate this issue.

@u-rogel
Copy link
Contributor

u-rogel commented Apr 24, 2023

Using macOS 13.0.1
Node v18.16.0

@ovflowd
Copy link
Member Author

ovflowd commented Apr 24, 2023

@u-rogel I've spotted a weird misconfiguration on package.json, and fixed it :) (It was related to NODE_ENV)

@u-rogel
Copy link
Contributor

u-rogel commented Apr 24, 2023

@ovflowd any idea how to fix it or will you push a fix to it?

@ovflowd
Copy link
Member Author

ovflowd commented Apr 24, 2023

@u-rogel I pushed a fix already to the major/website-redesign branch :)

@u-rogel
Copy link
Contributor

u-rogel commented Apr 24, 2023

Cool, now it works!

@u-rogel u-rogel mentioned this issue May 8, 2023
5 tasks
@ashutosh887
Copy link

@ovflowd I would like to take either of header/footer

@ovflowd
Copy link
Member Author

ovflowd commented Jun 11, 2023

Hey there 👋 as shown above these two also got worked on already (checkboxes marked), another issue I forgot to close 🙈😅

But thanks for the interest! I'm actually going to open a few more issue that need work 👀 haven't had time yet 🫠

@ovflowd ovflowd closed this as completed Jun 12, 2023
@github-project-automation github-project-automation bot moved this from 🏗 In progress to ✅ Done in Website Redesign Jun 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Requesting a new Technological Feature to be added to the Website website redesign Issue/PR part of the Node.js Website Redesign
Projects
Archived in project
Development

No branches or pull requests

4 participants