diff --git a/src/features/auth-page/login.tsx b/src/features/auth-page/login.tsx index 4bb5c9651..a6a671a47 100644 --- a/src/features/auth-page/login.tsx +++ b/src/features/auth-page/login.tsx @@ -29,7 +29,7 @@ export const LogIn: FC = (props) => { - AIKO - AI for Comau + AICO - AI for Comau {/* Welcome to Comau Generalist AI platform diff --git a/src/features/chat-page/chat-header/chat-header.tsx b/src/features/chat-page/chat-header/chat-header.tsx index 882f26d45..5f0f43248 100644 --- a/src/features/chat-page/chat-header/chat-header.tsx +++ b/src/features/chat-page/chat-header/chat-header.tsx @@ -26,22 +26,21 @@ export const ChatHeader: FC = (props) => {
-
+
{props.chatThread.name}
- {/* Riga vuota */}
- - {/* */} + + {/* */} {persona} (AI for Comau) -
+
Current Chat: {props.chatThread.name}
diff --git a/src/features/chat-page/chat-page.tsx b/src/features/chat-page/chat-page.tsx index 7ea223c72..5694cdc10 100644 --- a/src/features/chat-page/chat-page.tsx +++ b/src/features/chat-page/chat-page.tsx @@ -10,6 +10,7 @@ import { useSession } from "next-auth/react"; import { FC, useEffect, useRef } from "react"; import { ExtensionModel } from "../extensions-page/extension-services/models"; import { ChatHeader } from "./chat-header/chat-header"; +import Link from "next/link"; import { ChatDocumentModel, ChatMessageModel, @@ -18,6 +19,7 @@ import { import MessageContent from "./message-content"; import Disclaimer from "../ui/chat/disclaimer"; import { AlignCenter } from "lucide-react"; +import { useTheme } from "next-themes"; interface ChatPageProps { messages: Array; @@ -28,6 +30,7 @@ interface ChatPageProps { export const ChatPage: FC = (props) => { const { data: session } = useSession(); + const { theme } = useTheme(); useEffect(() => { chatStore.initChatSession({ @@ -63,9 +66,10 @@ export const ChatPage: FC = (props) => { }} profilePicture={ message.role === "assistant" - ? "/aiko.png" + ? theme === 'dark' ? "/logo-COMAU-white.png" : "/logo-COMAU.png" : session?.user?.image } + theme={theme} > @@ -77,10 +81,11 @@ export const ChatPage: FC = (props) => {
-
- + +
+ COMAU AICO generated content may be inaccurate. Refered Policy.}/>
-
+
); }; diff --git a/src/features/main-menu/main-menu.tsx b/src/features/main-menu/main-menu.tsx index 4d7476a4b..81260ac4d 100644 --- a/src/features/main-menu/main-menu.tsx +++ b/src/features/main-menu/main-menu.tsx @@ -23,23 +23,27 @@ import { MenuLink } from "./menu-link"; import { UserProfile } from "./user-profile"; import Image from "next/image"; + + + export const MainMenu = async () => { const user = await getCurrentUser(); - + + return ( - - - - {/* + + + ai-icon */} + /> diff --git a/src/features/main-menu/theme-toggle.tsx b/src/features/main-menu/theme-toggle.tsx index db6041714..ddda42cd3 100644 --- a/src/features/main-menu/theme-toggle.tsx +++ b/src/features/main-menu/theme-toggle.tsx @@ -25,14 +25,14 @@ export const ThemeToggle = () => { > - setTheme("system")} className="flex-1" title="System theme" > - + */} ); diff --git a/src/features/theme/theme-config.ts b/src/features/theme/theme-config.ts index 5d2f0dac6..05f65af83 100644 --- a/src/features/theme/theme-config.ts +++ b/src/features/theme/theme-config.ts @@ -1,5 +1,5 @@ -export const AI_NAME = "AIKO"; -export const AI_DESCRIPTION = "Hey, I'm AIKO (Artificial Intelligence for Comau), your super assistant."; +export const AI_NAME = "AICO"; +export const AI_DESCRIPTION = "Hey, I'm AICO (Artificial Intelligence for Comau), your super assistant."; export const CHAT_DEFAULT_PERSONA = AI_NAME; export const CHAT_DEFAULT_SYSTEM_PROMPT = `Your name is ${AI_NAME}. You are a friendly AI assistant. You must always return in markdown format. diff --git a/src/features/ui/chat/chat-input-area/chat-input-area.tsx b/src/features/ui/chat/chat-input-area/chat-input-area.tsx index a460ef8b2..26adfaaf5 100644 --- a/src/features/ui/chat/chat-input-area/chat-input-area.tsx +++ b/src/features/ui/chat/chat-input-area/chat-input-area.tsx @@ -14,7 +14,7 @@ export const ChatInputForm = React.forwardRef<
-
+
{props.children}
diff --git a/src/features/ui/chat/chat-input-area/chat-text-input.tsx b/src/features/ui/chat/chat-input-area/chat-text-input.tsx index d47367c2d..f62bbcacf 100644 --- a/src/features/ui/chat/chat-input-area/chat-text-input.tsx +++ b/src/features/ui/chat/chat-input-area/chat-text-input.tsx @@ -7,7 +7,7 @@ export const ChatTextInput = React.forwardRef< return (