From bdcc030de607cd5fa6f15311d3f614d869b43d18 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sat, 13 Sep 2025 16:21:15 -0500 Subject: [PATCH] Add empty messages screen to ChatPane --- src/components/Shakespeare/ChatPane.tsx | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/src/components/Shakespeare/ChatPane.tsx b/src/components/Shakespeare/ChatPane.tsx index 1fa6725d..c0ff9a98 100644 --- a/src/components/Shakespeare/ChatPane.tsx +++ b/src/components/Shakespeare/ChatPane.tsx @@ -343,6 +343,29 @@ export const ChatPane = forwardRef(({
+ {/* Empty state when no messages and not loading */} + {messages.length === 0 && !streamingMessage && !isLoading && ( +
+
+
🎭
+
+

+ Welcome to Shakespeare +

+

+ Your AI-powered development assistant is ready to help you build, edit, and enhance your project. +

+
+

💡 Ask me to add new features

+

📝 Request file edits and improvements

+

🔧 Get help with debugging and optimization

+

🚀 Build and deploy your project

+
+
+
+
+ )} + {messages.map((message, index) => { // Skip assistant messages with no content if (message.role === 'assistant' && assistantContentEmpty(message.content)) {