Skip to content

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

Add types, add Abuse

Terry Suttonc2fe40c03fd5
diff --git a/studio/components/interfaces/Support/Support.constants.ts b/studio/components/interfaces/Support/Support.constants.ts
index 1e16de175d5..d5922d09182 100644
--- a/studio/components/interfaces/Support/Support.constants.ts
+++ b/studio/components/interfaces/Support/Support.constants.ts
@@ -1,48 +1,50 @@
+import { SupportCategories } from '@supabase/shared-types/out/constants'
+
export const CATEGORY_OPTIONS = [
{
- value: 'Problem',
+ value: SupportCategories.PROBLEM,
label: 'Issues with APIs / client libraries',
description: "Issues with your project's API and client libraries",
query: undefined,
},
{
- value: 'Dashboard_bug',
+ value: SupportCategories.DASHBOARD_BUG,
label: 'Dashboard bug',
description: 'Issues with the Supabase dashboard',
query: undefined,
},
{
- value: 'Database_unresponsive',
+ value: SupportCategories.DATABASE_UNRESPONSIVE,
label: 'Database unresponsive',
description: 'Issues with connecting to your database',
query: 'Unable to connect',
},
{
- value: 'Performance',
+ value: SupportCategories.PERFORMANCE_ISSUES,
label: 'Performance issues',
description: 'Reporting of performance issues is only available on the Pro plan',
query: 'Performance',
},
{
- value: 'Sales',
+ value: SupportCategories.SALES_ENQUIRY,
label: 'Sales enquiry',
description: 'Questions about pricing, paid plans and Enterprise plans',
query: undefined,
},
{
- value: 'Billing',
+ value: SupportCategories.BILLING,
label: 'Billing',
description: 'Issues with credit card charges | invoices | overcharging',
query: undefined,
},
{
- value: 'Abuse',
+ value: SupportCategories.ABUSE,
label: 'Abuse report',
description: 'Report abuse of a Supabase project or Supabase brand',
query: undefined,
},
{
- value: 'Refund',
+ value: SupportCategories.REFUND,
label: 'Refund enquiry',
description: 'Formal enquiry form for requesting refunds',
query: undefined,