From f48cc5f4490f6eab685cbc2627851b32631d8065 Mon Sep 17 00:00:00 2001 From: AbrahamNobleOX Date: Wed, 23 Jul 2025 10:54:19 +0100 Subject: [PATCH] fix: enhance Chat and SeatMap components with improved UI features and update .gitignore to include .DS_Store 1. Added a loading indicator for the send button 2. Added message timestamps 3. Added character count to the input 4. Added hover states to the seat map --- .gitignore | 1 + ui/components/Chat.tsx | 46 +++++++++++++++++++++----------------- ui/components/seat-map.tsx | 8 +++---- 3 files changed, 31 insertions(+), 24 deletions(-) diff --git a/.gitignore b/.gitignore index c7491cb..2501c9e 100644 --- a/.gitignore +++ b/.gitignore @@ -25,6 +25,7 @@ share/python-wheels/ .installed.cfg *.egg MANIFEST +.DS_Store # PyInstaller # Usually these files are written by a python script from a template diff --git a/ui/components/Chat.tsx b/ui/components/Chat.tsx index 6ad3112..92f2566 100644 --- a/ui/components/Chat.tsx +++ b/ui/components/Chat.tsx @@ -78,8 +78,13 @@ export function Chat({ messages, onSendMessage, isLoading }: ChatProps) { }`} > {msg.role === "user" ? ( -
- {msg.content} +
+
+ {msg.content} +
+ + {msg.timestamp.toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' })} +
) : (
@@ -113,7 +118,7 @@ export function Chat({ messages, onSendMessage, isLoading }: ChatProps) {
-
+