Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Merge branch 'master' into feat/email-auth

Alaister Young16b8a41871cb
diff --cc studio/components/interfaces/Support/Success.tsx
index dcf4779a1c0,20121579dde..32401ffe5f4
--- a/studio/components/interfaces/Support/Success.tsx
+++ b/studio/components/interfaces/Support/Success.tsx
@@@ -1,21 -1,84 +1,84 @@@
import Link from 'next/link'
- import { Button, IconCheckCircle } from 'ui'
+ import { FC, useState } from 'react'
+ import { Button, IconCheck, IconExternalLink, IconMail, IconSearch, Input } from 'ui'
+
+ import Divider from 'components/ui/Divider'
+ import { CATEGORY_OPTIONS } from './Support.constants'
+
+ interface Props {
+ sentCategory?: string
+ }
+
+ const Success: FC<Props> = ({ sentCategory = 'Best_practices' }) => {
+ const categoriesToShowAdditionalResources = [
+ 'Problem',
+ 'Unresponsive',
+ 'Best_practices',
+ 'Performance',
+ ]
+
+ const selectedCategory = CATEGORY_OPTIONS.find((option) => option.value === sentCategory)
+ const [searchValue, setSearchValue] = useState<string>(selectedCategory?.query ?? '')
- const Success = () => {
return (
- <div className="relative my-10 mx-32 space-y-4">
- <div className="absolute -left-14 -top-2.5">
- <IconCheckCircle strokeWidth={2} size={24} background="brand" />
+ <div className="mt-10 w-[620px] flex flex-col items-center space-y-4">
+ <div className="relative">
+ <IconMail strokeWidth={1.5} size={60} className="text-brand-900" />
+ <div className="h-6 w-6 rounded-full bg-brand-900 absolute bottom-1 -right-1.5 flex items-center justify-center">
+ <IconCheck strokeWidth={4} size={18} />
+ </div>
</div>
- <div>
- <h5 className="block">Support request successfully sent!</h5>
+ <div className="flex items-center flex-col space-y-2">
+ <h3 className="text-xl">Support request successfully sent!</h3>
<p className="text-sm text-scale-1100">
- We will email you back using your GitHub email address
+ We will reach out to you using your account's email address
</p>
</div>
- <Link href="/projects">
- <Button>Go back to dashboard</Button>
- </Link>
+ {categoriesToShowAdditionalResources.includes(sentCategory) && (
+ <>
+ <div className="!my-10 w-full">
+ <Divider light />
+ </div>
+ <div className="flex flex-col items-center px-12 space-y-2">
+ <p>In the meantime, tap into our community</p>
+ <p className="text-sm text-scale-1000 text-center">
+ Find the answers you need with fellow developers building with Supabase by joining our
+ GitHub discussions or on Discord - build the next best thing together
+ </p>
+ </div>
+ <div className="w-full px-12 !mt-8">
+ <Input
+ value={searchValue}
+ onChange={(e) => setSearchValue(e.target.value)}
+ icon={<IconSearch size={16} strokeWidth={1.5} />}
+ actions={[
+ <Link
+ key="search"
+ href={`https://github.com/supabase/supabase/discussions?discussions_q=${searchValue}`}
+ >
+ <a target="_blank">
+ <Button
+ className="mr-1"
+ type="default"
+ icon={<IconExternalLink size={16} strokeWidth={1.5} />}
+ >
+ Search on Github discussions
+ </Button>
+ </a>
+ </Link>,
+ ]}
+ />
+ </div>
+ </>
+ )}
+ <div className="!mt-10 w-full">
+ <Divider light />
+ </div>
+ <div className="w-full pb-4 px-4 flex items-center justify-end">
- <Link href="/">
++ <Link href="/projects">
+ <Button>Go back to dashboard</Button>
+ </Link>
+ </div>
</div>
)
}