diff --git a/src/app/ai/page.tsx b/src/app/ai/page.tsx index 87f7bd5..6c8ab76 100644 --- a/src/app/ai/page.tsx +++ b/src/app/ai/page.tsx @@ -161,17 +161,29 @@ export default function AIChatPage() { }; return ( -
+
{error && ( -
+
Error: {error}
)} + + {/* Header - same pattern as other pages */} +
+
+ +

AI Chat

+
+ +
+ {/* Sidebar */}
-
+
-

AI Chat

+

Chats

@@ -179,7 +191,7 @@ export default function AIChatPage() {
setCurrentSessionId(session.id)} - className={`p-2 rounded-lg cursor-pointer flex justify-between items-center ${session.id === currentSessionId ? "bg-rose-100" : ""}`} + className={`p-2 rounded-lg cursor-pointer flex justify-between items-center dark:text-gray-100 ${session.id === currentSessionId ? "bg-rose-100 dark:bg-rose-900" : ""}`} >
{session.title}
@@ -193,11 +205,11 @@ export default function AIChatPage() { {deleteConfirm === session.id && (
-
-

Delete this conversation?

+
+

Delete this conversation?

- +
@@ -210,28 +222,26 @@ export default function AIChatPage() { {/* Main chat */}
-
- - - {currentSession?.title || "AI Chat"} +
+ {currentSession?.title || "AI Chat"}
{currentSession?.messages.map((msg, i) => ( -
+
{msg.content}
))}
-
+
setInput(e.target.value)} onKeyDown={e => e.key === "Enter" && handleSend()} placeholder="Ask about your baby..." - className="flex-1 p-3 border rounded-lg" + className="flex-1 p-3 border rounded-lg dark:bg-gray-700 dark:text-white" disabled={loading} />