diff --git a/.changeset/spicy-states-switch.md b/.changeset/spicy-states-switch.md new file mode 100644 index 00000000000..f8f9875316f --- /dev/null +++ b/.changeset/spicy-states-switch.md @@ -0,0 +1,5 @@ +--- +'polaris.shopify.com': patch +--- + +Fix `editPageLinkPath` to include leading slash for correct URL generation diff --git a/polaris.shopify.com/content/components/navigation/fullscreen-bar.mdx b/polaris.shopify.com/content/components/deprecated/fullscreen-bar.mdx similarity index 71% rename from polaris.shopify.com/content/components/navigation/fullscreen-bar.mdx rename to polaris.shopify.com/content/components/deprecated/fullscreen-bar.mdx index 63be92d9ef2..22cff07f5f2 100644 --- a/polaris.shopify.com/content/components/navigation/fullscreen-bar.mdx +++ b/polaris.shopify.com/content/components/deprecated/fullscreen-bar.mdx @@ -1,6 +1,6 @@ --- title: Fullscreen bar -category: Navigation +category: Deprecated keywords: - topbar - top bar @@ -14,7 +14,8 @@ examples: - fileName: fullscreen-bar-no-children.tsx title: No children description: Use this default to show ONLY the Back button. -previewImg: /images/components/navigation/fullscreen-bar.png +status: Deprecated +previewImg: /images/components/deprecated/fullscreen-bar.png --- # {frontmatter.title} @@ -25,6 +26,14 @@ The Fullscreen bar is a header component that should be presented at the top of + + This component is no longer supported. Please use the [App Bridge Modal + API](https://shopify.dev/docs/api/app-bridge-library/web-components/ui-modal?example=modals-with-different-options-opening-a-max-size-modal) + in combination with the [App Bridge Title Bar + API](https://shopify.dev/docs/api/app-bridge-library/web-components/ui-title-bar) + instead. + + diff --git a/polaris.shopify.com/content/components/actions/page-actions.mdx b/polaris.shopify.com/content/components/deprecated/page-actions.mdx similarity index 90% rename from polaris.shopify.com/content/components/actions/page-actions.mdx rename to polaris.shopify.com/content/components/deprecated/page-actions.mdx index 970c7600332..0840ed2b5b9 100644 --- a/polaris.shopify.com/content/components/actions/page-actions.mdx +++ b/polaris.shopify.com/content/components/deprecated/page-actions.mdx @@ -1,7 +1,7 @@ --- title: Page actions shortDescription: Allows merchants to take key actions at the bottom of specific pages in the interface. -category: Actions +category: Deprecated keywords: - PageActions - bottom of page actions @@ -25,7 +25,8 @@ examples: - fileName: page-actions-with-custom-secondary-action.tsx title: With custom secondary action description: Use to create a custom secondary action. -previewImg: /images/components/actions/page-actions.png +status: Deprecated +previewImg: /images/components/deprecated/page-actions.png --- # {frontmatter.title} @@ -36,6 +37,11 @@ Page actions let merchants take key actions at the bottom of specific pages in t + + This component is no longer supported. Please use the [App Bridge Save Bar + API](https://shopify.dev/docs/api/app-bridge-library/apis/save-bar) instead. + + diff --git a/polaris.shopify.com/next-env.d.ts b/polaris.shopify.com/next-env.d.ts index a4a7b3f5cfa..52e831b4342 100644 --- a/polaris.shopify.com/next-env.d.ts +++ b/polaris.shopify.com/next-env.d.ts @@ -2,4 +2,4 @@ /// // NOTE: This file should not be edited -// see https://nextjs.org/docs/pages/building-your-application/configuring/typescript for more information. +// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information. diff --git a/polaris.shopify.com/next.config.js b/polaris.shopify.com/next.config.js index 1554ab7cae2..1c5f34c2c9a 100644 --- a/polaris.shopify.com/next.config.js +++ b/polaris.shopify.com/next.config.js @@ -237,11 +237,6 @@ const actions = [ destination: '/components/actions/button', permanent: true, }, - { - source: '/components/page-actions', - destination: '/components/actions/page-actions', - permanent: true, - }, ]; const deprecated = [ @@ -260,6 +255,11 @@ const deprecated = [ destination: '/components/deprecated/display-text', permanent: true, }, + { + source: '/components/fullscreen-bar', + destination: '/components/deprecated/fullscreen-bar', + permanent: true, + }, { source: '/components/heading', destination: '/components/deprecated/heading', @@ -285,6 +285,11 @@ const deprecated = [ destination: '/components/deprecated/legacy-tabs', permanent: true, }, + { + source: '/components/page-actions', + destination: '/components/deprecated/page-actions', + permanent: true, + }, { source: '/components/selection-and-input/setting-toggle', destination: '/components/deprecated/setting-toggle', @@ -585,11 +590,6 @@ const navigation = [ destination: '/components/navigation/footer-help', permanent: true, }, - { - source: '/components/fullscreen-bar', - destination: '/components/navigation/fullscreen-bar', - permanent: true, - }, { source: '/components/link', destination: '/components/navigation/link', diff --git a/polaris.shopify.com/pages/components/[group]/[component]/index.tsx b/polaris.shopify.com/pages/components/[group]/[component]/index.tsx index 2ccd07c5fc6..5ca18cf05cb 100644 --- a/polaris.shopify.com/pages/components/[group]/[component]/index.tsx +++ b/polaris.shopify.com/pages/components/[group]/[component]/index.tsx @@ -91,7 +91,7 @@ export const getStaticProps: GetStaticProps< const relativeMdPath = `content/components/${groupSlug}/${componentSlug}.mdx`; const mdFilePath = path.resolve(process.cwd(), relativeMdPath); - const editPageLinkPath = `polaris.shopify.com/${relativeMdPath}`; + const editPageLinkPath = `/polaris.shopify.com/${relativeMdPath}`; if (fs.existsSync(mdFilePath)) { const [mdx, data] = await serializeMdx(mdFilePath, {load}); diff --git a/polaris.shopify.com/public/images/components/navigation/fullscreen-bar.png b/polaris.shopify.com/public/images/components/deprecated/fullscreen-bar.png similarity index 100% rename from polaris.shopify.com/public/images/components/navigation/fullscreen-bar.png rename to polaris.shopify.com/public/images/components/deprecated/fullscreen-bar.png diff --git a/polaris.shopify.com/public/images/components/actions/page-actions.png b/polaris.shopify.com/public/images/components/deprecated/page-actions.png similarity index 100% rename from polaris.shopify.com/public/images/components/actions/page-actions.png rename to polaris.shopify.com/public/images/components/deprecated/page-actions.png