Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Conversation

@ollelauribostrom
Copy link
Contributor

@ollelauribostrom ollelauribostrom commented Feb 17, 2019

Rather extensive but all changes felt related.

Summary of changes:

  • Split components/page into smaller chunks that will make it less painful to merge changes in the future
  • The navigation now lives in its own component(s) that handle state for toggling the menu on mobile devices
  • Generates nav sections from frontmatter fields
  • magicHeroNumber handled inside of component when rendered

@MylesBorins
Copy link
Contributor

@ollelauribostrom this now has a conflict unfortunately. There are a couple other PRs that are open that this will likely conflict with so I think it might make sense to work on getting the missing features landed first before we do a refactor like this.

@ollelauribostrom
Copy link
Contributor Author

@MylesBorins I see your point, probably a good idea to get some of these PRs merged before this. The conlicts seems easy enough to resolve, but should I hold off on that for a while?

@MylesBorins
Copy link
Contributor

MylesBorins commented Feb 19, 2019 via email

@ollelauribostrom
Copy link
Contributor Author

@MylesBorins This should now be up to speed with the latest features in master :)

@MylesBorins
Copy link
Contributor

/gcbrun

eventual staging example will be on https://storage.googleapis.com/staging.nodejs.dev/9cbbfce/index.html

@ollelauribostrom
Copy link
Contributor Author

Sidenote: As of #66 we might want to refactor some of the classes to use hooks instead but that can be addressed later on 🙂

@MylesBorins
Copy link
Contributor

/gcbrun

eventual staging example will be on https://storage.googleapis.com/staging.nodejs.dev/a829169/index.html

I would like to see sign off from at least one other person before landing this. I'm not familiar enough with react to review

@mbj36
Copy link
Contributor

mbj36 commented Feb 21, 2019

@MylesBorins I see this on latest staging example -

screenshot 2019-02-21 at 11 57 40 pm

PS - Reviewing this PR

@MylesBorins
Copy link
Contributor

@mbj36 it looks like the build failed, lets find out why.

Step #1: error Building static HTML for pages failed
Step #1: 
Step #1: See our docs page on debugging HTML builds for help https://gatsby.app/debug-html
Step #1: 
Step #1: 39 | render() {
Step #1: 40 | const { data } = this.props;
Step #1: > 41 | const currentPage = location.pathname.split('/').pop();
Step #1: | ^
Step #1: 42 | const { activePage, previousPage, nextPage, navigationSections } = findActive(data.sections.group, currentPage);
Step #1: 43 | if (!activePage) {
Step #1: 44 | // Rendering 404 page as a component here

@mbj36
Copy link
Contributor

mbj36 commented Feb 21, 2019

@MylesBorins Build should pass now if you run again

@ollelauribostrom
Copy link
Contributor Author

ollelauribostrom commented Feb 21, 2019

@MylesBorins Looks like I forgot to destructure location from this.props which may be the cause (fixed now). Weird though because this works for me locally 🤔

MylesBorins added a commit to MylesBorins/nodejs.dev that referenced this pull request Feb 21, 2019
This will ensure we don't have the test suite pass when it the build
itself is broken.

Refs: nodejs#61
@MylesBorins
Copy link
Contributor

/gcbrun

eventual staging example will be on https://storage.googleapis.com/staging.nodejs.dev/0d2da34/index.html

I also opened up a PR that will have travis run the build to ensure that travis isn't 'green' if the build is broken

@mbj36
Copy link
Contributor

mbj36 commented Feb 21, 2019

@ollelauribostrom Should we keep layout.css inside components folder ?

Also in current .prettierrc, semi is set to false, (your changes has semi true) it might cause confusion among the devs.

@mbj36
Copy link
Contributor

mbj36 commented Feb 21, 2019

@LaRuaNa
Copy link
Contributor

LaRuaNa commented Feb 21, 2019

Seems to have conflicts again @ollelauribostrom

@ollelauribostrom
Copy link
Contributor Author

@LaRuaNa @mbj36 Conflicts should now be resolved again and the tslint issues fixed. Holding off on any prettier fixes for now (will change anyways as of #90 etc) 🙂

@MylesBorins
Copy link
Contributor

/gcbrun

eventual staging example will be on https://storage.googleapis.com/staging.nodejs.dev/fdae987/index.html

MylesBorins added a commit that referenced this pull request Feb 22, 2019
This will ensure we don't have the test suite pass when it the build
itself is broken.

Refs: #61
Copy link
Contributor

@LaRuaNa LaRuaNa left a comment

Choose a reason for hiding this comment

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

Sorry, it took quite a while. All in all LGTM.

Single thing I'm not sure about that there is no 'Next' on 'Differences between Node.js and the Browser'. I think comes from this line but I think it's trivial. Let's land this we'll need to come back to this topic anyways soon in #24

Thanks for working on this @ollelauribostrom :]

@LaRuaNa LaRuaNa merged commit ff497a3 into nodejs:master Feb 22, 2019
kevindavies8 added a commit to kevindavies8/nodejs.dev-for-full-stack-developer that referenced this pull request Aug 24, 2022
This will ensure we don't have the test suite pass when it the build
itself is broken.

Refs: nodejs/nodejs.dev#61
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants