-
Notifications
You must be signed in to change notification settings - Fork 200
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
Add support for nested web pages #1923
Conversation
🦋 Changeset detectedLatest commit: 854a25f The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
4 Skipped Deployments
|
a24fe2b
to
c18facd
Compare
c18facd
to
b815221
Compare
core/app/[locale]/(default)/webpages/[id]/contact/_actions/submit-contact-form.ts
Outdated
Show resolved
Hide resolved
@@ -26,7 +26,7 @@ export const FooterFragment = graphql(` | |||
} | |||
} | |||
content { | |||
pages(filters: { isVisibleInNavigation: true }) { | |||
pages(filters: { parentEntityIds: [0] }) { |
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.
What does this change? Only fetch the root pages?
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.
@jorgemoya Yes, exactly. For the footer, we only want the top-level pages, and also we want to include web pages that don't have isVisibleInNavigation: true
- this value is only pertinent to what is displayed in the nav bar, not the footer.
b815221
to
eef4326
Compare
eef4326
to
44a2390
Compare
44a2390
to
854a25f
Compare
⚡️🏠 Lighthouse reportLighthouse ran against https://catalyst-canary-cvm1afwg1-bigcommerce-platform.vercel.app 🖥️ DesktopWe ran Lighthouse against the changes on a desktop and produced this report. Here's the summary:
📱 MobileWe ran Lighthouse against the changes on a mobile and produced this report. Here's the summary:
|
Depends on: makeswift/vibes#471
What/Why?
AccountLayout
and instead useStickySidebarLayout
withSidebarMenu
component/webpages/{pageId}/normal
or/webpages/{pageId}/contact
. This allows us to have a web page layout file that can fetch the child links.Testing
Screen.Recording.2025-01-21.at.2.15.44.PM.mov