Skip to content

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

feat: improved issue select (#38770)

Danny White30f4f32e4406
diff --git a/apps/studio/components/interfaces/Support/Support.constants.ts b/apps/studio/components/interfaces/Support/Support.constants.ts
index 5b56b37392c..963a39e1be0 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 5d8077f91a8..9c2fc2c6df2 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 }) => (
- <FormItemLayout layout="vertical" label="What areas are you having problems with?">
+ <FormItemLayout layout="vertical" label="What are you having issues with?">
<FormControl_Shadcn_>
<Select_Shadcn_
{...field}
@@ -483,8 +483,10 @@ export const SupportFormV2 = ({
onValueChange={field.onChange}
>
<SelectTrigger_Shadcn_ className="w-full">
- <SelectValue_Shadcn_>
- {CATEGORY_OPTIONS.find((o) => o.value === field.value)?.label}
+ <SelectValue_Shadcn_ placeholder="Select an issue">
+ {field.value
+ ? CATEGORY_OPTIONS.find((o) => o.value === field.value)?.label
+ : null}
</SelectValue_Shadcn_>
</SelectTrigger_Shadcn_>
<SelectContent_Shadcn_>
@@ -648,7 +650,7 @@ export const SupportFormV2 = ({
onValueChange={field.onChange}
>
<SelectTrigger_Shadcn_ className="w-full">
- <SelectValue_Shadcn_ placeholder="Please select a library" />
+ <SelectValue_Shadcn_ placeholder="Select a library" />
</SelectTrigger_Shadcn_>
<SelectContent_Shadcn_>
<SelectGroup_Shadcn_>