The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Improve support form troubleshooting
Joshen Limf9703e0fe355
diff --git a/studio/components/interfaces/Settings/Database/DiskSizeConfiguration.tsx b/studio/components/interfaces/Settings/Database/DiskSizeConfiguration.tsxindex 41a9d2c8d0a..2d2940c780f 100644--- a/studio/components/interfaces/Settings/Database/DiskSizeConfiguration.tsx+++ b/studio/components/interfaces/Settings/Database/DiskSizeConfiguration.tsx@@ -155,7 +155,7 @@ const DiskSizeConfiguration = ({ disabled = false }: DiskSizeConfigurationProps)<Modalheader={<h5 className="text-sm text-scale-1200">Increase Disk Storage Size</h5>}- size="small"+ size="medium"visible={showResetDbPass}loading={isUpdatingDiskSize}onCancel={() => setShowResetDbPass(false)}@@ -182,7 +182,14 @@ const DiskSizeConfiguration = ({ disabled = false }: DiskSizeConfigurationProps)) : (<><Modal.Content>- <div className="w-full space-y-8 py-8">+ <div className="w-full space-y-4 py-6">+ <Alert+ withIcon+ variant="warning"+ title="This operation is only possible every 6 hours"+ >+ NEED TO UPDATE THE DESCRIPTION HERE+ </Alert><InputNumberid="new-disk-size"label="New disk size"@@ -193,7 +200,7 @@ const DiskSizeConfiguration = ({ disabled = false }: DiskSizeConfigurationProps)</Modal.Content><Modal.Separator /><Modal.Content>- <div className="flex space-x-2 justify-between pb-2">+ <div className="flex space-x-2 justify-end pt-1 pb-3"><Button type="default" onClick={() => setShowResetDbPass(false)}>Cancel</Button>diff --git a/studio/components/interfaces/Support/SupportForm.tsx b/studio/components/interfaces/Support/SupportForm.tsxindex 851cb3c760d..7f092f8fbe4 100644--- a/studio/components/interfaces/Support/SupportForm.tsx+++ b/studio/components/interfaces/Support/SupportForm.tsx@@ -36,6 +36,7 @@ import { CATEGORY_OPTIONS, SERVICE_OPTIONS, SEVERITY_OPTIONS } from './Support.cimport { formatMessage, uploadAttachments } from './SupportForm.utils'const MAX_ATTACHMENTS = 5+const INCLUDE_DISCUSSIONS = ['Problem', 'Database_unresponsive']export interface SupportFormProps {setSentCategory: (value: string) => void@@ -443,6 +444,22 @@ const SupportForm = ({ setSentCategory }: SupportFormProps) => {id="subject"label="Subject"placeholder="Summary of the problem you have"+ actions={+ values.subject.length > 0 && INCLUDE_DISCUSSIONS.includes(values.category)+ ? [+ <Link+ key="gh-discussions"+ href={`https://github.com/orgs/supabase/discussions?discussions_q=${values.subject}`}+ >+ <a className="mr-1" target="_blank" rel="noreferrer">+ <Button type="default" icon={<IconExternalLink />}>+ Check Github discussions+ </Button>+ </a>+ </Link>,+ ]+ : []+ }/></div>{values.category === 'Problem' && (diff --git a/studio/components/layouts/ProjectLayout/LayoutHeader/HelpPopover.tsx b/studio/components/layouts/ProjectLayout/LayoutHeader/HelpPopover.tsxindex 6b6add879bd..27721406f50 100644--- a/studio/components/layouts/ProjectLayout/LayoutHeader/HelpPopover.tsx+++ b/studio/components/layouts/ProjectLayout/LayoutHeader/HelpPopover.tsx@@ -6,6 +6,7 @@ import {Popover,IconBookOpen,IconActivity,+ IconTool,} from 'ui'import { useRouter } from 'next/router'import { FC } from 'react'@@ -36,10 +37,10 @@ const HelpPopover: FC<Props> = () => {hosted services.</p><div className="space-x-1">- <Link passHref href={supportUrl}>- <a>- <Button type="default" icon={<IconMail />}>- Contact Support+ <Link passHref href="https://supabase.com/docs/guides/platform/troubleshooting">+ <a target="_blank" rel="noreferrer">+ <Button type="default" icon={<IconTool />}>+ Troubleshooting</Button></a></Link>@@ -62,6 +63,15 @@ const HelpPopover: FC<Props> = () => {Expected response time is based on your billing plan. Pro and Pay as You Go plans areprioritized.</p>+ <div>+ <Link passHref href={supportUrl}>+ <a>+ <Button type="default" icon={<IconMail />}>+ Contact Support+ </Button>+ </a>+ </Link>+ </div></div><Popover.Separator /><div className="mb-4 space-y-2">diff --git a/studio/pages/support/new.tsx b/studio/pages/support/new.tsxindex 2e10f6a20f1..8d042dbddad 100644--- a/studio/pages/support/new.tsx+++ b/studio/pages/support/new.tsx@@ -2,7 +2,7 @@ import SVG from 'react-inlinesvg'import Link from 'next/link'import { useState } from 'react'import { observer } from 'mobx-react-lite'-import { Button, IconLoader } from 'ui'+import { Button, IconLoader, IconTool } from 'ui'import * as Tooltip from '@radix-ui/react-tooltip'import { withAuth, useFlag } from 'hooks'@@ -33,6 +33,13 @@ const SupportPage = () => {<h1 className="m-0 text-lg">Supabase support</h1></div><div className="flex items-center space-x-3">+ <Link passHref href="https://supabase.com/docs/guides/platform/troubleshooting">+ <a target="_blank" rel="noreferrer">+ <Button type="default" icon={<IconTool />}>+ Troubleshooting+ </Button>+ </a>+ </Link><Tooltip.Root delayDuration={0}><Tooltip.Trigger><Link href="https://status.supabase.com/">