The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Remove all parts related to best practices for support form
Joshen Lim5ceb3b4c4a15
diff --git a/studio/components/interfaces/Support/BestPracticesGuidance.tsx b/studio/components/interfaces/Support/BestPracticesGuidance.tsxdeleted file mode 100644index 01a665cf862..00000000000--- a/studio/components/interfaces/Support/BestPracticesGuidance.tsx+++ /dev/null@@ -1,67 +0,0 @@-import { FC } from 'react'-import Image from 'next/image'-import SVG from 'react-inlinesvg'-import { Button, IconMessageCircle } from 'ui'--interface Props {}--const BestPracticesGuidance: FC<Props> = ({}) => {- return (- <div className="px-6 space-y-4">- <div className="space-y-2">- <p>Tap into the community</p>- <p className="text-sm text-scale-1100">- 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="flex items-center space-x-4">- <div- className="relative space-y-2 overflow-hidden rounded px-5 py-4 w-1/2 pb-20 shadow-md"- style={{ background: '#404EED' }}- >- <a- href="https://discord.supabase.com"- target="_blank"- className="dark block cursor-pointer"- >- <Image- className="absolute left-0 top-0 opacity-50"- src={'/img/support/discord-bg-small.jpg'}- layout="fill"- objectFit="cover"- alt="discord illustration header"- />- <Button- type="secondary"- icon={<SVG src={`/img/discord-icon.svg`} className="h-4 w-4" />}- >- <span style={{ color: '#404EED' }}>Join Discord server</span>- </Button>- </a>- </div>-- <div className="relative space-y-2 overflow-hidden rounded px-5 py-4 w-1/2 pb-20 shadow-md">- <a- href="https://github.com/supabase/supabase/discussions"- target="_blank"- className="block cursor-pointer"- >- <Image- className="absolute left-0 top-0 opacity-50"- src={'/img/support/github-bg.jpg?v-1'}- layout="fill"- objectFit="cover"- alt="discord illustration header"- />- <Button type="secondary" icon={<IconMessageCircle />}>- GitHub Discussions- </Button>- </a>- </div>- </div>- </div>- )-}--export default BestPracticesGuidancediff --git a/studio/components/interfaces/Support/Success.tsx b/studio/components/interfaces/Support/Success.tsxindex 32401ffe5f4..0293f7283a0 100644--- a/studio/components/interfaces/Support/Success.tsx+++ b/studio/components/interfaces/Support/Success.tsx@@ -9,13 +9,8 @@ interface Props {sentCategory?: string}-const Success: FC<Props> = ({ sentCategory = 'Best_practices' }) => {- const categoriesToShowAdditionalResources = [- 'Problem',- 'Unresponsive',- 'Best_practices',- 'Performance',- ]+const Success: FC<Props> = ({ sentCategory = '' }) => {+ const categoriesToShowAdditionalResources = ['Problem', 'Unresponsive', 'Performance']const selectedCategory = CATEGORY_OPTIONS.find((option) => option.value === sentCategory)const [searchValue, setSearchValue] = useState<string>(selectedCategory?.query ?? '')diff --git a/studio/components/interfaces/Support/Support.constants.ts b/studio/components/interfaces/Support/Support.constants.tsindex 60e60efcfa2..7eae68facef 100644--- a/studio/components/interfaces/Support/Support.constants.ts+++ b/studio/components/interfaces/Support/Support.constants.ts@@ -11,12 +11,6 @@ export const CATEGORY_OPTIONS = [description: 'Issues with connecting to your database',query: 'Unable to connect',},- {- value: 'Best_practices',- label: 'Questions on best practices',- description: 'Enquire on how best practices developing with Supabase',- query: 'Best practices',- },{value: 'Performance',label: 'Performance issues',diff --git a/studio/components/interfaces/Support/SupportForm.tsx b/studio/components/interfaces/Support/SupportForm.tsxindex 460fca68074..c6b69ba3084 100644--- a/studio/components/interfaces/Support/SupportForm.tsx+++ b/studio/components/interfaces/Support/SupportForm.tsx@@ -26,7 +26,6 @@ import MultiSelect from 'components/ui/MultiSelect'import { formatMessage, uploadAttachments } from './SupportForm.utils'import { CATEGORY_OPTIONS, SEVERITY_OPTIONS, SERVICE_OPTIONS } from './Support.constants'import DisabledStateForFreeTier from './DisabledStateForFreeTier'-import BestPracticesGuidance from './BestPracticesGuidance'import InformationBox from 'components/ui/InformationBox'import Link from 'next/link'