fix(studio): troubleshooting links (#39916)

* clean slate fixes

* remove testing ternary
This commit is contained in:
Danny White authored and GitHub committed 2025-10-29 12:48:27 +11:00
1 parent e27602f629
commit 7c189976ee
4 files changed
+7 -7

No files matched your search

@@ -54,7 +54,7 @@ interface GitHubDiscussionSuggestionProps {
function GitHubDiscussionSuggestion({ subject }: GitHubDiscussionSuggestionProps) {
return (
<p className="flex items-center gap-x-1 text-foreground-lighter text-sm">
<span>Check our </span>
Check our
<Link
key="gh-discussions"
href={`https://github.com/orgs/supabase/discussions?discussions_q=${subject}`}
@@ -65,7 +65,7 @@ function GitHubDiscussionSuggestion({ subject }: GitHubDiscussionSuggestionProps
GitHub discussions
<ExternalLink size={14} strokeWidth={2} />
</Link>
<span> for a quick answer</span>
for a quick answer
</p>
)
}
@@ -23,8 +23,8 @@ import type { SupportFormValues } from './SupportForm.schema'
import {
createInitialSupportFormState,
type SupportFormActions,
type SupportFormState,
supportFormReducer,
type SupportFormState,
} from './SupportForm.state'
import { SupportFormV2 } from './SupportFormV2'
import { useSupportForm } from './useSupportForm'
@@ -125,7 +125,7 @@ function SupportFormHeader() {
<div className="flex items-center gap-x-3">
<Button asChild type="default" icon={<Wrench />}>
<Link
href={`${DOCS_URL}/guides/platform/troubleshooting`}
href={`${DOCS_URL}/guides/troubleshooting?products=platform`}
target="_blank"
rel="noreferrer"
>
@@ -91,7 +91,7 @@ const ConnectingState = ({ project }: ConnectingStateProps) => {
</Button>
<Button asChild type="default" icon={<ExternalLink strokeWidth={1.5} />}>
<Link
href={`${DOCS_URL}/guides/platform/troubleshooting#unable-to-connect-to-your-supabase-project`}
href={`${DOCS_URL}/guides/troubleshooting?products=platform#unable-to-connect-to-your-supabase-project`}
className="translate-y-[1px]"
>
Troubleshooting
@@ -10,6 +10,7 @@ import { useSelectedOrganizationQuery } from 'hooks/misc/useSelectedOrganization
import { useSelectedProjectQuery } from 'hooks/misc/useSelectedProject'
import { DOCS_URL } from 'lib/constants'
import { useAiAssistantStateSnapshot } from 'state/ai-assistant-state'
import { useSidebarManagerSnapshot } from 'state/sidebar-manager-state'
import {
AiIconAnimation,
Button,
@@ -21,7 +22,6 @@ import {
Popover_Shadcn_,
} from 'ui'
import { SIDEBAR_KEYS } from '../LayoutSidebar/LayoutSidebarProvider'
import { useSidebarManagerSnapshot } from 'state/sidebar-manager-state'
export const HelpPopover = () => {
const router = useRouter()
@@ -102,7 +102,7 @@ export const HelpPopover = () => {
)}
<ButtonGroupItem size="tiny" icon={<Wrench strokeWidth={1.5} size={14} />} asChild>
<a
href={`${DOCS_URL}/guides/platform/troubleshooting`}
href={`${DOCS_URL}/guides/troubleshooting?products=platform`}
target="_blank"
rel="noreferrer"
>