Skip to content

Commit 426c931

Browse files
committed
feat: Add helper text for Pinecone Index Name configuration
1 parent 9cd3fee commit 426c931

File tree

1 file changed

+10
-3
lines changed
  • src/app/(admin)/dashboard/configuration

1 file changed

+10
-3
lines changed

src/app/(admin)/dashboard/configuration/page.tsx

+10-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ import { zodResolver } from '@hookform/resolvers/zod'
66
import { useMutation, useQuery } from '@tanstack/react-query'
77
import { useForm } from 'react-hook-form'
88

9-
import { addUpdateConfiguration, getConfiguration } from '@/apis/admin/configuration'
9+
import {
10+
addUpdateConfiguration,
11+
getConfiguration,
12+
} from '@/apis/admin/configuration'
1013
import { Button } from '@/components/ui/button'
1114
import { Input } from '@/components/ui/input'
1215
import { Label } from '@/components/ui/label'
@@ -64,7 +67,7 @@ export default function Configuration() {
6467
// Disable automatic refetching
6568
refetchOnMount: false,
6669
refetchOnWindowFocus: false,
67-
refetchOnReconnect: false
70+
refetchOnReconnect: false,
6871
})
6972

7073
const handleClick = (data: TUpdateSchema) => {
@@ -245,7 +248,7 @@ export default function Configuration() {
245248
error={errors.pineconeApiKey}
246249
/>
247250
</div>
248-
251+
249252
<div className='flex w-full flex-col space-y-2'>
250253
<Label className='flex items-center gap-2 text-dashboardText'>
251254
<span>Pinecone Index Name</span>
@@ -263,6 +266,10 @@ export default function Configuration() {
263266
placeholder='your-pinecone-index'
264267
className='h-10 bg-white'
265268
/>
269+
<p className='mt-1 text-xs text-muted-foreground'>
270+
You can find your index name in the Pinecone dashboard
271+
under &apos;Indexes&apos;
272+
</p>
266273
{errors.pineconeIndexName && (
267274
<p className='text-xs text-red-500'>
268275
{errors.pineconeIndexName.message}

0 commit comments

Comments
 (0)