From 72878685a4566fa5a0fc989f40087abff328ed98 Mon Sep 17 00:00:00 2001 From: Duncan Crawbuck Date: Wed, 22 Apr 2026 13:52:25 -0700 Subject: [PATCH 1/3] Update support center help copy --- content/docs/support/index.mdx | 29 ++++++++--------------------- 1 file changed, 8 insertions(+), 21 deletions(-) diff --git a/content/docs/support/index.mdx b/content/docs/support/index.mdx index cf8c424d..4ecac4f1 100644 --- a/content/docs/support/index.mdx +++ b/content/docs/support/index.mdx @@ -19,26 +19,13 @@ description: "Need help with anything Superwall-related? We're here to help." ## Need Help? -Try using [Ask AI](/ai) or searching for your issue to get an instant answer. +The fastest way to get answers is to start with the 💬 chat button in the bottom-right corner (or press `Command` + `I`), our docs cover many common issues. -We listen to all feedback! If Ask AI can't answer your question or a guide is not helpful, please leave feedback with 👍/👎 and we will improve it. +If additional help is required, please create a [Support ticket](https://portal.usepylon.com/superwall/forms/product-support). -If additional help is required, you can create a new Support ticket by using the **💬 Support button** in the bottom-right corner of the screen. - - - - - - **Please provide all relevant details to help us resolve your issue quickly:** - - A detailed description of the issue - - User IDs if the issue is affecting specific users - - Any and all relevant screenshots, links, logs, etc. - - - - - You will need to [log into your Superwall account](https://superwall.com/api/auth/login) first - - - - \ No newline at end of file + + **Please provide all relevant details to help us resolve your issue quickly:** + - A detailed description of the issue + - User IDs if the issue is affecting specific users + - Any and all relevant screenshots, links, logs, etc. + From f3498af743f52af149b6ad8262440c32ab19a32d Mon Sep 17 00:00:00 2001 From: Duncan Crawbuck Date: Wed, 22 Apr 2026 14:05:08 -0700 Subject: [PATCH 2/3] Show platform-specific chat shortcut --- content/docs/support/index.mdx | 2 +- src/components/ShortcutKey.tsx | 39 ++++++++++++++++++++++++++++++++++ src/mdx-components.tsx | 2 ++ 3 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 src/components/ShortcutKey.tsx diff --git a/content/docs/support/index.mdx b/content/docs/support/index.mdx index 4ecac4f1..062aad52 100644 --- a/content/docs/support/index.mdx +++ b/content/docs/support/index.mdx @@ -19,7 +19,7 @@ description: "Need help with anything Superwall-related? We're here to help." ## Need Help? -The fastest way to get answers is to start with the 💬 chat button in the bottom-right corner (or press `Command` + `I`), our docs cover many common issues. +The fastest way to get answers is to start with the 💬 chat button in the bottom-right corner, or press . Our docs cover many common issues. If additional help is required, please create a [Support ticket](https://portal.usepylon.com/superwall/forms/product-support). diff --git a/src/components/ShortcutKey.tsx b/src/components/ShortcutKey.tsx new file mode 100644 index 00000000..f3d60344 --- /dev/null +++ b/src/components/ShortcutKey.tsx @@ -0,0 +1,39 @@ +"use client"; + +import { useEffect, useState } from "react"; + +function detectModifierKey(): "Cmd" | "Ctrl" { + const platformNavigator = navigator as Navigator & { + userAgentData?: { + platform?: string; + }; + }; + + const platform = + platformNavigator.userAgentData?.platform ?? navigator.platform ?? navigator.userAgent; + + return /Mac|iPhone|iPad|iPod/i.test(platform) ? "Cmd" : "Ctrl"; +} + +export function ShortcutKey({ keyName }: { keyName: string }) { + const [modifierKey, setModifierKey] = useState<"Cmd" | "Ctrl" | "Cmd/Ctrl">("Cmd/Ctrl"); + + useEffect(() => { + setModifierKey(detectModifierKey()); + }, []); + + return ( + + + {modifierKey} + + + + + {keyName} + + + ); +} diff --git a/src/mdx-components.tsx b/src/mdx-components.tsx index 145e3aa5..0fb94683 100644 --- a/src/mdx-components.tsx +++ b/src/mdx-components.tsx @@ -64,6 +64,7 @@ import { SdkLatestVersion } from "./components/SdkLatestVersion"; import { GithubInfo as GithubInfoComponent } from "fumadocs-ui/components/github-info"; import { TypeTable } from "./components/type-table"; import { Mermaid } from "./components/Mermaid"; +import { ShortcutKey } from "./components/ShortcutKey"; import { normalizeDocsInternalHref } from "./lib/docs-url"; import { resolveSdkAwareDocsHref } from "./lib/sdk-navigation"; import { toRouterPath } from "./lib/url-base"; @@ -373,6 +374,7 @@ export function getMDXComponents(components?: MDXComponents): MDXComponents { GithubInfo, TypeTable, Mermaid, + ShortcutKey, WhenLoggedIn, WhenLoggedOut, LoginStatusProvider, From 11a13d8b36b178d61b7bcbfcde7da15f954a8437 Mon Sep 17 00:00:00 2001 From: Duncan Crawbuck Date: Wed, 22 Apr 2026 14:09:35 -0700 Subject: [PATCH 3/3] Simplify support center shortcut copy --- content/docs/support/index.mdx | 2 +- src/components/ShortcutKey.tsx | 39 ---------------------------------- src/mdx-components.tsx | 2 -- 3 files changed, 1 insertion(+), 42 deletions(-) delete mode 100644 src/components/ShortcutKey.tsx diff --git a/content/docs/support/index.mdx b/content/docs/support/index.mdx index 062aad52..391a247d 100644 --- a/content/docs/support/index.mdx +++ b/content/docs/support/index.mdx @@ -19,7 +19,7 @@ description: "Need help with anything Superwall-related? We're here to help." ## Need Help? -The fastest way to get answers is to start with the 💬 chat button in the bottom-right corner, or press . Our docs cover many common issues. +The fastest way to get answers is to start with the 💬 chat button in the bottom-right corner, our docs cover many common issues. If additional help is required, please create a [Support ticket](https://portal.usepylon.com/superwall/forms/product-support). diff --git a/src/components/ShortcutKey.tsx b/src/components/ShortcutKey.tsx deleted file mode 100644 index f3d60344..00000000 --- a/src/components/ShortcutKey.tsx +++ /dev/null @@ -1,39 +0,0 @@ -"use client"; - -import { useEffect, useState } from "react"; - -function detectModifierKey(): "Cmd" | "Ctrl" { - const platformNavigator = navigator as Navigator & { - userAgentData?: { - platform?: string; - }; - }; - - const platform = - platformNavigator.userAgentData?.platform ?? navigator.platform ?? navigator.userAgent; - - return /Mac|iPhone|iPad|iPod/i.test(platform) ? "Cmd" : "Ctrl"; -} - -export function ShortcutKey({ keyName }: { keyName: string }) { - const [modifierKey, setModifierKey] = useState<"Cmd" | "Ctrl" | "Cmd/Ctrl">("Cmd/Ctrl"); - - useEffect(() => { - setModifierKey(detectModifierKey()); - }, []); - - return ( - - - {modifierKey} - - + - - {keyName} - - - ); -} diff --git a/src/mdx-components.tsx b/src/mdx-components.tsx index 0fb94683..145e3aa5 100644 --- a/src/mdx-components.tsx +++ b/src/mdx-components.tsx @@ -64,7 +64,6 @@ import { SdkLatestVersion } from "./components/SdkLatestVersion"; import { GithubInfo as GithubInfoComponent } from "fumadocs-ui/components/github-info"; import { TypeTable } from "./components/type-table"; import { Mermaid } from "./components/Mermaid"; -import { ShortcutKey } from "./components/ShortcutKey"; import { normalizeDocsInternalHref } from "./lib/docs-url"; import { resolveSdkAwareDocsHref } from "./lib/sdk-navigation"; import { toRouterPath } from "./lib/url-base"; @@ -374,7 +373,6 @@ export function getMDXComponents(components?: MDXComponents): MDXComponents { GithubInfo, TypeTable, Mermaid, - ShortcutKey, WhenLoggedIn, WhenLoggedOut, LoginStatusProvider,