From b808ca1b6863681f2a9bc6478a64248df46a7831 Mon Sep 17 00:00:00 2001 From: simos Date: Sun, 13 Jul 2025 20:34:04 +0000 Subject: [PATCH 1/3] Update ChatInterface --- src/components/ChatInterface.jsx | 70 +++++++++++++++++--------------- 1 file changed, 37 insertions(+), 33 deletions(-) diff --git a/src/components/ChatInterface.jsx b/src/components/ChatInterface.jsx index 2039198..b6dd6b0 100755 --- a/src/components/ChatInterface.jsx +++ b/src/components/ChatInterface.jsx @@ -118,7 +118,7 @@ const MessageComponent = memo(({ message, index, prevMessage, createDiff, onFile
- {message.isToolUse ? ( + {message.isToolUse && message.toolName !== 'Read' ? (
@@ -423,41 +423,18 @@ const MessageComponent = memo(({ message, index, prevMessage, createDiff, onFile try { const input = JSON.parse(message.toolInput); if (input.file_path) { - // Extract filename const filename = input.file_path.split('/').pop(); - const pathParts = input.file_path.split('/'); - const directoryPath = pathParts.slice(0, -1).join('/'); - - // Simple heuristic to show only relevant path parts - // Show the last 2-3 directory parts before the filename - const relevantParts = pathParts.slice(-4, -1); // Get up to 3 directories before filename - const relativePath = relevantParts.length > 0 ? relevantParts.join('/') + '/' : ''; return ( -
- - - - - - - - {relativePath} - {filename} - - {showRawParameters && ( -
-
- - View raw parameters - -
-                                    {message.toolInput}
-                                  
-
-
- )} -
+
+ Read{' '} + +
); } } catch (e) { @@ -882,6 +859,33 @@ const MessageComponent = memo(({ message, index, prevMessage, createDiff, onFile
+ ) : message.isToolUse && message.toolName === 'Read' ? ( + // Simple Read tool indicator + (() => { + try { + const input = JSON.parse(message.toolInput); + if (input.file_path) { + const filename = input.file_path.split('/').pop(); + return ( +
+ 📖 Read{' '} + +
+ ); + } + } catch (e) { + return ( +
+ 📖 Read file +
+ ); + } + })() ) : (
{message.type === 'assistant' ? ( From 7db22fae299478fe1941d6d61735e861f19e6ea6 Mon Sep 17 00:00:00 2001 From: simos Date: Sun, 13 Jul 2025 20:43:15 +0000 Subject: [PATCH 2/3] Enhance ChatInterface --- src/components/ChatInterface.jsx | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/src/components/ChatInterface.jsx b/src/components/ChatInterface.jsx index b6dd6b0..72319a9 100755 --- a/src/components/ChatInterface.jsx +++ b/src/components/ChatInterface.jsx @@ -118,7 +118,7 @@ const MessageComponent = memo(({ message, index, prevMessage, createDiff, onFile
- {message.isToolUse && message.toolName !== 'Read' ? ( + {message.isToolUse && !['Read', 'TodoWrite', 'TodoRead'].includes(message.toolName) ? (
@@ -886,6 +886,34 @@ const MessageComponent = memo(({ message, index, prevMessage, createDiff, onFile ); } })() + ) : message.isToolUse && message.toolName === 'TodoWrite' ? ( + // Simple TodoWrite tool indicator with tasks + (() => { + try { + const input = JSON.parse(message.toolInput); + if (input.todos && Array.isArray(input.todos)) { + return ( +
+
+ 📝 Update todo list +
+ +
+ ); + } + } catch (e) { + return ( +
+ 📝 Update todo list +
+ ); + } + })() + ) : message.isToolUse && message.toolName === 'TodoRead' ? ( + // Simple TodoRead tool indicator +
+ 📋 Read todo list +
) : (
{message.type === 'assistant' ? ( From 36d0add224f6674de8e003467ecf871cf5915e0b Mon Sep 17 00:00:00 2001 From: simos Date: Sun, 13 Jul 2025 20:51:05 +0000 Subject: [PATCH 3/3] Changing logo to the proper one --- src/components/LoginForm.jsx | 6 ++++-- src/components/ProtectedRoute.jsx | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/components/LoginForm.jsx b/src/components/LoginForm.jsx index e95ca5c..f2a490a 100644 --- a/src/components/LoginForm.jsx +++ b/src/components/LoginForm.jsx @@ -1,6 +1,6 @@ import React, { useState } from 'react'; import { useAuth } from '../contexts/AuthContext'; -import ClaudeLogo from './ClaudeLogo'; +import { MessageSquare } from 'lucide-react'; const LoginForm = () => { const [username, setUsername] = useState(''); @@ -37,7 +37,9 @@ const LoginForm = () => { {/* Logo and Title */}
- +
+ +

Welcome Back

diff --git a/src/components/ProtectedRoute.jsx b/src/components/ProtectedRoute.jsx index f9ba988..88b404b 100644 --- a/src/components/ProtectedRoute.jsx +++ b/src/components/ProtectedRoute.jsx @@ -2,13 +2,15 @@ import React from 'react'; import { useAuth } from '../contexts/AuthContext'; import SetupForm from './SetupForm'; import LoginForm from './LoginForm'; -import ClaudeLogo from './ClaudeLogo'; +import { MessageSquare } from 'lucide-react'; const LoadingScreen = () => (

- +
+ +

Claude Code UI