feat: Add segmented control for custom and copilot prompts in PromptBody component

This commit is contained in:
n4ze3m 2024-08-04 18:12:09 +05:30
parent 6c44fcfca7
commit 36fc8b6be1
10 changed files with 42 additions and 2 deletions

View File

@ -141,6 +141,10 @@
"option1": "Normal", "option1": "Normal",
"option2": "RAG", "option2": "RAG",
"questionPrompt": "Question Prompt", "questionPrompt": "Question Prompt",
"segmented": {
"custom": "Custom Prompts",
"copilot": "Copilot Prompts"
},
"columns": { "columns": {
"title": "Title", "title": "Title",
"prompt": "Prompt", "prompt": "Prompt",

View File

@ -147,6 +147,10 @@
"type": "Tipo de Prompt", "type": "Tipo de Prompt",
"actions": "Acciones" "actions": "Acciones"
}, },
"segmented": {
"custom": "Invites personnalisées",
"copilot": "Invites Copilot"
},
"systemPrompt": "Prompt del Sistema", "systemPrompt": "Prompt del Sistema",
"quickPrompt": "Prompt Rápido", "quickPrompt": "Prompt Rápido",
"tooltip": { "tooltip": {

View File

@ -160,6 +160,10 @@
"addTitle": "Ajouter un nouveau prompt", "addTitle": "Ajouter un nouveau prompt",
"editTitle": "Modifier le prompt" "editTitle": "Modifier le prompt"
}, },
"segmented": {
"custom": "Invites personnalisées",
"copilot": "Invites Copilot"
},
"form": { "form": {
"title": { "title": {
"label": "Titre", "label": "Titre",

View File

@ -160,6 +160,10 @@
"addTitle": "Aggiungi Nuovo Prompt", "addTitle": "Aggiungi Nuovo Prompt",
"editTitle": "Modifica Prompt" "editTitle": "Modifica Prompt"
}, },
"segmented": {
"custom": "Prompt personalizzati",
"copilot": "Prompt Copilot"
},
"form": { "form": {
"title": { "title": {
"label": "Titolo", "label": "Titolo",

View File

@ -163,6 +163,10 @@
"addTitle": "新しいプロンプトを追加", "addTitle": "新しいプロンプトを追加",
"editTitle": "プロンプトを編集" "editTitle": "プロンプトを編集"
}, },
"segmented": {
"custom": "カスタムプロンプト",
"copilot": "Copilotプロンプト"
},
"form": { "form": {
"title": { "title": {
"label": "タイトル", "label": "タイトル",

View File

@ -163,6 +163,10 @@
"addTitle": "പുതിയ പ്രോംപ്റ്റ് ചേര്‍ക്കുക", "addTitle": "പുതിയ പ്രോംപ്റ്റ് ചേര്‍ക്കുക",
"editTitle": "പ്രോംപ്റ്റ് എഡിറ്റുചെയ്യുക" "editTitle": "പ്രോംപ്റ്റ് എഡിറ്റുചെയ്യുക"
}, },
"segmented": {
"custom": "കസ്റ്റം പ്രോംപ്റ്റുകൾ",
"copilot": "കോപൈലറ്റ് പ്രോംപ്റ്റുകൾ"
},
"form": { "form": {
"title": { "title": {
"label": "തലക്കെട്ട്", "label": "തലക്കെട്ട്",

View File

@ -160,6 +160,10 @@
"addTitle": "Adicionar Novo Prompt", "addTitle": "Adicionar Novo Prompt",
"editTitle": "Editar Prompt" "editTitle": "Editar Prompt"
}, },
"segmented": {
"custom": "Prompts personalizados",
"copilot": "Prompts do Copilot"
},
"form": { "form": {
"title": { "title": {
"label": "Título", "label": "Título",

View File

@ -161,6 +161,10 @@
"addTitle": "Добавить новую подсказку", "addTitle": "Добавить новую подсказку",
"editTitle": "Редактировать подсказку" "editTitle": "Редактировать подсказку"
}, },
"segmented": {
"custom": "Пользовательские подсказки",
"copilot": "Подсказки Copilot"
},
"form": { "form": {
"title": { "title": {
"label": "Название", "label": "Название",

View File

@ -163,6 +163,10 @@
"addTitle": "添加新提示词", "addTitle": "添加新提示词",
"editTitle": "编辑提示词" "editTitle": "编辑提示词"
}, },
"segmented": {
"custom": "自定义提示",
"copilot": "Copilot 提示"
},
"form": { "form": {
"title": { "title": {
"label": "标题", "label": "标题",

View File

@ -306,11 +306,15 @@ export const PromptBody = () => {
size="large" size="large"
options={[ options={[
{ {
label: "Custom Prompts", label: t(
"managePrompts.segmented.custom"
),
value: "custom" value: "custom"
}, },
{ {
label: "Copilot Prompts", label: t(
"managePrompts.segmented.copilot"
),
value: "copilot" value: "copilot"
} }
]} ]}