From f4ed9488bd3e4aecfefc8ab0a219ccbb00dfa5c9 Mon Sep 17 00:00:00 2001 From: josedario87 Date: Tue, 2 Dec 2025 20:58:41 -0600 Subject: [PATCH] UI: Agregar botones de copiar en paneles de debug de Mensajes --- app/pages/messages/index.vue | 43 +++++++++++++++++++++++++++++++++--- 1 file changed, 40 insertions(+), 3 deletions(-) diff --git a/app/pages/messages/index.vue b/app/pages/messages/index.vue index d43c8b9..5947b88 100644 --- a/app/pages/messages/index.vue +++ b/app/pages/messages/index.vue @@ -32,7 +32,17 @@ >
Last SSE Event: - {{ lastEvent?.timestamp?.toLocaleTimeString() || 'N/A' }} +
+ {{ lastEvent?.timestamp?.toLocaleTimeString() || 'N/A' }} + +
{{ JSON.stringify(lastEvent, null, 2) }}

No events received yet

@@ -73,7 +83,16 @@ v-if="showChatsDebug" class="mt-2 p-2 rounded bg-gray-900 border border-gray-700 text-xs font-mono max-h-60 overflow-auto" > -
Chats ({{ chats.length }}):
+
+ Chats ({{ chats.length }}): + +
{{ JSON.stringify(chats, null, 2) }}
@@ -127,7 +146,16 @@ v-if="showSelectedChatDebug" class="mt-2 p-2 rounded bg-gray-900 border border-gray-700 text-xs font-mono max-h-40 overflow-auto" > -
Selected Chat:
+
+ Selected Chat: + +
{{ JSON.stringify(selectedChat, null, 2) }}
@@ -229,6 +257,15 @@ const filteredChats = computed(() => { ) }) +// Copy to clipboard function +const copyToClipboard = async (text: string) => { + try { + await navigator.clipboard.writeText(text) + } catch (err) { + console.error('Failed to copy:', err) + } +} + const handleSendMessage = async (content: string) => { if (!selectedInstance.value?.value || !selectedChat.value) return