-
Notifications
You must be signed in to change notification settings - Fork 0
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
refactor: split page layout component into two functions, simplifying testing #639
Conversation
✅ Deploy Preview for gatsby-theme-project-portal-defaults ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for gatsby-theme-project-portal-ex-site ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for project-portal-storybook ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Note: This comment gets updated with every commit 91e1d0afcb47ea25dd8969e5cc409212a790da92 example-site |
Good question. I'll see if I can convince you. The Having that simpler format means that testing the PageLayout is much simpler – the stories have really simple arguments in comparison to the It also means that the Is that enough to make it a worthwhile abstraction for you, or is it just a pain? |
Part of this might be to merge the Navbar into a single component – makes it easier to format. I've done that here: #679 |
Yep, I'm convinced! |
Nope, for some reason it wasn't showing on XL screens, but it's fine now? Maybe storybook just had a hiccup. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Beautiful!! Thanks for fixing some old style things too <3
Prepare for handover to RENCI: split page layout components into two parts:
components/PageLayout
– this handles all of the styling and has a simple interface which doesn't "know" anything about the graphQL schemalayouts/Layout
– this handles the gatsby-specific graphQL bits, and usescomponents/PageLayout
for the actual renderingAdditional simplifications:
Drive-by-improvements, required for testing of the updated components:
defaults
site, which up until now had not reliably rendered anything indevelop
mode on some browsers (Safari, for instance).