(fix:upload) ui adjust

This commit is contained in:
ManishMadan2882
2025-02-10 16:02:02 +05:30
parent 1ed0f5e78d
commit 3b45b63d2a
8 changed files with 24 additions and 10 deletions

View File

@@ -156,7 +156,9 @@
"completed": "Training completed",
"wait": "This may take several minutes",
"tokenLimit": "Over the token limit, please consider uploading smaller document"
}
},
"showAdvanced": "Show advanced options",
"hideAdvanced": "Hide advanced options"
},
"createAPIKey": {
"label": "Create New API Key",

View File

@@ -156,7 +156,9 @@
"completed": "Entrenamiento completado",
"wait": "Esto puede tardar varios minutos",
"tokenLimit": "Excede el límite de tokens, considere cargar un documento más pequeño"
}
},
"showAdvanced": "Mostrar opciones avanzadas",
"hideAdvanced": "Ocultar opciones avanzadas"
},
"createAPIKey": {
"label": "Crear Nueva Clave de API",

View File

@@ -155,7 +155,9 @@
"completed": "トレーニング完了",
"wait": "数分かかる場合があります",
"tokenLimit": "トークン制限を超えています。より小さいドキュメントをアップロードしてください"
}
},
"showAdvanced": "詳細オプションを表示",
"hideAdvanced": "詳細オプションを非表示"
},
"createAPIKey": {
"label": "新しいAPIキーを作成",

View File

@@ -156,7 +156,9 @@
"completed": "Обучение завершено",
"wait": "Это может занять несколько минут",
"tokenLimit": "Превышен лимит токенов, рассмотрите возможность загрузки документа меньшего размера"
}
},
"showAdvanced": "Показать расширенные настройки",
"hideAdvanced": "Скрыть расширенные настройки"
},
"createAPIKey": {
"label": "Создать новый API ключ",

View File

@@ -156,7 +156,9 @@
"completed": "訓練完成",
"wait": "這可能需要幾分鐘",
"tokenLimit": "超出令牌限制,請考慮上傳較小的文檔"
}
},
"showAdvanced": "顯示進階選項",
"hideAdvanced": "隱藏進階選項"
},
"createAPIKey": {
"label": "建立新的 API 金鑰",

View File

@@ -156,7 +156,9 @@
"completed": "训练完成",
"wait": "这可能需要几分钟",
"tokenLimit": "超出令牌限制,请考虑上传较小的文档"
}
},
"showAdvanced": "显示高级选项",
"hideAdvanced": "隐藏高级选项"
},
"createAPIKey": {
"label": "创建新的 API 密钥",

View File

@@ -637,7 +637,7 @@ function Upload({
{activeTab === 'remote' && (
<>
<Dropdown
border="border"
border="border-2"
options={urlOptions}
selectedValue={
urlOptions.find((opt) => opt.value === ingestor.type) || null
@@ -658,6 +658,7 @@ function Upload({
borderVariant="thin"
placeholder="Name"
label="Name"
required={true}
/>
{renderFormFields()}
{IngestorFormSchemas[ingestor.type].some(
@@ -665,11 +666,11 @@ function Upload({
) && (
<button
onClick={() => setShowAdvancedOptions(!showAdvancedOptions)}
className="text-purple-30 text-lg font-normal px-4 py-2 bg-transparent hover:cursor-pointer text-left"
className="text-purple-30 text-sm font-normal pl-0 py-2 bg-transparent hover:cursor-pointer text-left"
>
{showAdvancedOptions
? 'Hide Advanced Options'
: 'Show Advanced Options'}
? t('modals.uploadDoc.hideAdvanced')
: t('modals.uploadDoc.showAdvanced')}
</button>
)}
</>

View File

@@ -99,6 +99,7 @@ export const IngestorFormSchemas: Record<IngestorType, FormField[]> = {
label: 'Number of Posts',
type: 'number',
required: true,
advanced: true,
},
],
github: [