diff --git a/apps/studio/components/interfaces/Support/Support.constants.ts b/apps/studio/components/interfaces/Support/Support.constants.ts index 5b56b37392c8d..963a39e1be0e1 100644 --- a/apps/studio/components/interfaces/Support/Support.constants.ts +++ b/apps/studio/components/interfaces/Support/Support.constants.ts @@ -3,7 +3,7 @@ import { SupportCategories } from '@supabase/shared-types/out/constants' export const CATEGORY_OPTIONS = [ { value: SupportCategories.PROBLEM, - label: 'Issues with APIs / client libraries', + label: 'APIs and client libraries', description: "Issues with your project's API and client libraries", query: undefined, }, diff --git a/apps/studio/components/interfaces/Support/SupportFormV2.tsx b/apps/studio/components/interfaces/Support/SupportFormV2.tsx index 5d8077f91a8a2..9c2fc2c6df204 100644 --- a/apps/studio/components/interfaces/Support/SupportFormV2.tsx +++ b/apps/studio/components/interfaces/Support/SupportFormV2.tsx @@ -107,7 +107,7 @@ export const SupportFormV2 = ({ .object({ organizationSlug: z.string().min(1, 'Please select an organization'), projectRef: z.string().min(1, 'Please select a project'), - category: z.string(), + category: z.string().min(1, 'Please select an issue type'), severity: z.string(), library: z.string(), subject: z.string().min(1, 'Please add a subject heading'), @@ -128,7 +128,7 @@ export const SupportFormV2 = ({ const defaultValues = { organizationSlug: '', projectRef: 'no-project', - category: CATEGORY_OPTIONS[0].value, + category: '', severity: 'Low', library: '', subject: '', @@ -475,7 +475,7 @@ export const SupportFormV2 = ({ name="category" control={form.control} render={({ field }) => ( - + - - {CATEGORY_OPTIONS.find((o) => o.value === field.value)?.label} + + {field.value + ? CATEGORY_OPTIONS.find((o) => o.value === field.value)?.label + : null} @@ -648,7 +650,7 @@ export const SupportFormV2 = ({ onValueChange={field.onChange} > - +