Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down
14 changes: 8 additions & 6 deletions apps/studio/components/interfaces/Support/SupportFormV2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand All @@ -128,7 +128,7 @@ export const SupportFormV2 = ({
const defaultValues = {
organizationSlug: '',
projectRef: 'no-project',
category: CATEGORY_OPTIONS[0].value,
category: '',
severity: 'Low',
library: '',
subject: '',
Expand Down Expand Up @@ -475,16 +475,18 @@ 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}
defaultValue={field.value}
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_>
Expand Down Expand Up @@ -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_>
Expand Down
Loading