Pulastya B commited on
Commit
c82abb7
·
1 Parent(s): 154fb5a

debug: Add always-visible red debug box

Browse files

- Shows timestamp to verify frontend is updated
- Shows number of messages
- Shows plot count in last message
- Fixed top-right corner - CANNOT be missed

FRRONTEEEND/components/ChatInterface.tsx CHANGED
@@ -410,6 +410,13 @@ export const ChatInterface: React.FC<{ onBack: () => void }> = ({ onBack }) => {
410
  ref={scrollRef}
411
  className="flex-1 overflow-y-auto p-4 md:p-8 space-y-8 scroll-smooth"
412
  >
 
 
 
 
 
 
 
413
  {activeSession.messages.length === 0 ? (
414
  <div className="h-full flex flex-col items-center justify-center text-center px-4">
415
  <motion.div
 
410
  ref={scrollRef}
411
  className="flex-1 overflow-y-auto p-4 md:p-8 space-y-8 scroll-smooth"
412
  >
413
+ {/* ALWAYS VISIBLE DEBUG */}
414
+ <div className="fixed top-20 right-4 bg-red-500 text-white p-4 rounded-lg z-50 text-xs">
415
+ 🔴 Frontend Version: {Date.now()}<br/>
416
+ Messages: {activeSession.messages.length}<br/>
417
+ Last msg plots: {activeSession.messages[activeSession.messages.length - 1]?.plots?.length || 0}
418
+ </div>
419
+
420
  {activeSession.messages.length === 0 ? (
421
  <div className="h-full flex flex-col items-center justify-center text-center px-4">
422
  <motion.div