Open
Conversation
✅ Deploy Preview for project-idea-board ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR centralizes site-wide layout/theming/head handling using Gatsby’s wrapRootElement and wrapPageElement, reducing per-page boilerplate and aligning with Gatsby idioms (advances #51).
Changes:
- Add
wrapRootElement/wrapPageElementingatsby-browser.js(and mirror ingatsby-ssr.js) to apply Ant Design theming and a sharedLayoutwrapper globally. - Extract global
<head>metadata intoGlobalHeadand move site metadata access into a newuseSiteMetadatahook. - Remove redundant
Layoutwrapping from templates/pages and remove the unused iframe resizer asset; update site title/description and add SVG favicon.
Reviewed changes
Copilot reviewed 14 out of 16 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| static/img/AICS-logo.svg | Adds AICS SVG logo for use as favicon. |
| static/iframeResizer.js | Removes unused iframe resizer script from static/. |
| src/templates/tags.tsx | Removes per-template Layout wrapper (now globally applied). |
| src/templates/program.tsx | Removes per-template Layout wrapper (now globally applied). |
| src/templates/index-page.tsx | Removes per-template Layout wrapper (now globally applied). |
| src/templates/idea-post.tsx | Removes per-template Layout wrapper and simplifies “not found” rendering. |
| src/templates/allenite.tsx | Removes per-template Layout wrapper (now globally applied). |
| src/templates/about-page.tsx | Removes per-template Layout wrapper (now globally applied). |
| src/pages/tags/index.js | Removes per-page Layout wrapper (now globally applied). |
| src/pages/ideas/index.tsx | Removes per-page Layout wrapper (now globally applied). |
| src/hooks/useSiteMetadata.ts | Introduces a hook to read siteMetadata via useStaticQuery. |
| src/components/Layout.tsx | Simplifies layout to structural wrapper + GlobalHead; removes iframe script and theme provider from component. |
| src/components/GlobalHead.tsx | Centralizes global Helmet tags (title/description, fonts, OG tags, favicon). |
| gatsby-browser.js | Adds Gatsby API wrappers to apply Ant Design ConfigProvider and global Layout. |
| gatsby-ssr.js | Adds SSR-side wrapper hookup (but currently with a module-syntax issue). |
| gatsby-config.js | Updates siteMetadata title/description. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
meganrm
approved these changes
Mar 3, 2026
rugeli
approved these changes
Mar 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Advances #51
Solution
A few things here:
wrapPageElementandwrapRootElementin gatsby browser APIs to wrap pages in themes, layouts, head, etc. ( more DRY, more idiomatic gatsby)