Skip to content

Commit

Permalink
Remove Chat page intro (component and translations)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthieujacq committed Oct 2, 2023
1 parent 64fbd79 commit db84d52
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 59 deletions.
29 changes: 0 additions & 29 deletions frontend/app/chat/[chatId]/components/ChatHeader.tsx

This file was deleted.

2 changes: 0 additions & 2 deletions frontend/app/chat/[chatId]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { useCustomDropzone } from "@/lib/hooks/useDropzone";

import { ActionsBar } from "./components/ActionsBar";
import { ChatDialogueArea } from "./components/ChatDialogueArea/ChatDialogue";
import { ChatHeader } from "./components/ChatHeader";

const SelectedChatPage = (): JSX.Element => {
const { getRootProps } = useCustomDropzone();
Expand All @@ -18,7 +17,6 @@ const SelectedChatPage = (): JSX.Element => {
{...getRootProps()}
>
<section className="flex flex-col flex-1 items-center w-full h-full overflow-y-auto">
<ChatHeader />
<div
className={`flex-1 flex flex-col mt-4 md:mt-8 w-full shadow-md dark:shadow-primary/25 hover:shadow-xl transition-shadow rounded-xl overflow-hidden dark:bg-black border border-black/10 dark:border-white/25 p-2 md:p-12 pt-4 md:pt-10 ${
shouldDisplayFeedCard ? "bg-chat-bg-gray" : "bg-white"
Expand Down
5 changes: 1 addition & 4 deletions frontend/public/locales/en/chat.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,10 @@
"shortcut_manage_brains": "CMDB: Manage your brains",
"shortcut_go_to_user_page": "CMDU: Go to user page",
"shortcut_go_to_shortcuts": "CMDK: Go to shortcuts",
"chat_title_intro": "Chat with your",
"empty_brain_title_prefix": "Upload files in a",
"empty_brain_title_suffix": "and chat with them",
"actions_bar_placeholder": "Ask a question to a @brain and choose your #prompt",
"missing_brain": "Please select a brain to chat with",
"new_prompt": "Create new prompt",
"feed_brain_placeholder": "Choose which @brain you want to feed with these files",
"feedingBrain": "Your newly added knowledge is being processed, you can keep chatting in the meantime !",
"add_content_card_button_tooltip": "Add knowledge to a brain"
}
}
6 changes: 1 addition & 5 deletions frontend/public/locales/es/chat.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,8 @@
"brain": "cerebro",
"brains": "cerebros",
"chat": "Conversar",
"chat_title_intro": "Conversación con",
"chatDeleted": "Chat borrado correstamente. Id: {{id}}",
"chatNameUpdated": "Nombre de chat actualizado",
"empty_brain_title_intro": "Chatea con tus",
"empty_brain_title_prefix": "Carga archivos en un",
"empty_brain_title_suffix": "y chatea con ellos",
"error_occurred": "Error al obtener respuesta",
"errorCallingAPI": "Error al llamar a la API",
"errorDeleting": "Error al borrar chat: {{error}}",
Expand All @@ -35,7 +31,7 @@
"title": "Conversa con {{brain}}",
"missing_brain": "No hay cerebro seleccionado",
"new_prompt": "Crear nueva instrucción",
"feed_brain_placeholder" : "Elige cuál @cerebro quieres alimentar con estos archivos",
"feed_brain_placeholder": "Elige cuál @cerebro quieres alimentar con estos archivos",
"feedingBrain": "Su conocimiento recién agregado se está procesando, ¡puede seguir chateando mientras tanto!",
"add_content_card_button_tooltip": "Agregar conocimiento a un cerebro"
}
6 changes: 1 addition & 5 deletions frontend/public/locales/fr/chat.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,8 @@
"brain": "cerveau",
"brains": "cerveaux",
"chat": "Chat",
"chat_title_intro": "Parle avec",
"chatDeleted": "Chat supprimé avec succès. Id : {{id}}",
"chatNameUpdated": "Nom du chat mis à jour",
"empty_brain_title_intro": "Discutez avec vos",
"empty_brain_title_prefix": "Téléchargez des fichiers dans un",
"empty_brain_title_suffix": "et discutez avec eux",
"error_occurred": "Une erreur s'est produite lors de l'obtention de la réponse",
"errorCallingAPI": "Erreur lors de l'appel à l'API",
"errorDeleting": "Erreur lors de la suppression du chat : {{error}}",
Expand All @@ -35,7 +31,7 @@
"title": "Discuter avec {{brain}}",
"missing_brain": "Veuillez selectionner un cerveau pour discuter",
"new_prompt": "Créer un nouveau prompt",
"feed_brain_placeholder" : "Choisissez le @cerveau que vous souhaitez nourrir avec ces fichiers",
"feed_brain_placeholder": "Choisissez le @cerveau que vous souhaitez nourrir avec ces fichiers",
"feedingBrain": "Vos nouvelles connaissances sont en cours de traitement. Vous pouvez continuer à discuter en attendant !",
"add_content_card_button_tooltip": "Ajouter des connaissances à un cerveau"
}
6 changes: 1 addition & 5 deletions frontend/public/locales/pt-br/chat.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,8 @@
"brain": "cérebro",
"brains": "cérebros",
"chat": "Conversa",
"chat_title_intro": "Conversa com",
"chatDeleted": "Conversa excluída com sucesso. Id: {{id}}",
"chatNameUpdated": "Nome da conversa atualizado",
"empty_brain_title_intro": "Converse com o seu",
"empty_brain_title_prefix": "Carregue arquivos em um",
"empty_brain_title_suffix": "e converse com eles",
"error_occurred": "Ocorreu um erro ao obter a resposta",
"errorCallingAPI": "Erro ao chamar a API",
"errorDeleting": "Erro ao excluir a conversa: {{error}}",
Expand All @@ -35,7 +31,7 @@
"title": "Converse com {{brain}}",
"missing_brain": "Cérebro não encontrado",
"new_prompt": "Criar novo prompt",
"feed_brain_placeholder" : "Escolha qual @cérebro você deseja alimentar com esses arquivos",
"feed_brain_placeholder": "Escolha qual @cérebro você deseja alimentar com esses arquivos",
"feedingBrain": "Seu conhecimento recém-adicionado está sendo processado, você pode continuar conversando enquanto isso!",
"add_content_card_button_tooltip": "Adicionar conhecimento a um cérebro"
}
6 changes: 1 addition & 5 deletions frontend/public/locales/ru/chat.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,8 @@
"brain": "мозг",
"brains": "мозги",
"chat": "Чат",
"chat_title_intro": "Чат с",
"chatDeleted": "Чат успешно удален. Id: {{id}}",
"chatNameUpdated": "Имя чата обновлено",
"empty_brain_title_intro": "Чат с вашими",
"empty_brain_title_prefix": "Загрузите файлы в",
"empty_brain_title_suffix": "и общайтесь с ними",
"error_occurred": "Произошла ошибка при получении ответа",
"errorCallingAPI": "Ошибка вызова API",
"errorDeleting": "Ошибка при удалении чата: {{error}}",
Expand All @@ -35,7 +31,7 @@
"title": "Чат с {{brain}}",
"missing_brain": "Мозг не найден",
"new_prompt": "Создать новый запрос",
"feed_brain_placeholder" : "Выберите, какой @мозг вы хотите питать этими файлами",
"feed_brain_placeholder": "Выберите, какой @мозг вы хотите питать этими файлами",
"feedingBrain": "Ваш недавно добавленный знаний обрабатывается, вы можете продолжить общение в это время!",
"add_content_card_button_tooltip": "Добавить знаний в мозг"
}
5 changes: 1 addition & 4 deletions frontend/public/locales/zh-cn/chat.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,10 @@
"shortcut_manage_brains": "CMDB: 管理你的大脑",
"shortcut_go_to_user_page": "CMDU: 进入用户页面",
"shortcut_go_to_shortcuts": "CMDK: 前往快捷方式",
"chat_title_intro": "来聊天吧,通过你的",
"empty_brain_title_prefix": "上传文件到",
"empty_brain_title_suffix": "和他们聊天",
"actions_bar_placeholder": "向@大脑提问,选择您的#提示",
"missing_brain": "请选择一个大脑进行聊天",
"new_prompt": "新提示",
"feed_brain_placeholder" : "选择要用这些文件喂养的 @大脑",
"feed_brain_placeholder": "选择要用这些文件喂养的 @大脑",
"feedingBrain": "您新添加的知识正在处理中,同时您可以继续聊天!",
"add_content_card_button_tooltip": "向大脑添加知识"
}

0 comments on commit db84d52

Please sign in to comment.