From c4cbeba46374cec014f8ac42ca2ab9fb3fc74915 Mon Sep 17 00:00:00 2001 From: hanishkvc Date: Mon, 17 Nov 2025 00:35:41 +0530 Subject: [PATCH] SimpleChatTCRV:Cleanup:MouseEvents demote, UIRefreshy almost all Demote the Popover related mouse event trapping related logs to debug level, as they are no longer required. Avoid using brute force chat_show instead use only the optimal chat_uirefresh wrt all paths in handle_user_submit, rather had forgotten to change previously. --- tools/server/public_simplechat/simplechat.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/server/public_simplechat/simplechat.js b/tools/server/public_simplechat/simplechat.js index 35f83b4791..8e75044cc5 100644 --- a/tools/server/public_simplechat/simplechat.js +++ b/tools/server/public_simplechat/simplechat.js @@ -1254,7 +1254,7 @@ class MultiChatUI { secMain.classList.add(`role-${msg.ns.role}`) secMain.classList.add('chat-message') secMain.addEventListener('mouseenter', (ev)=>{ - console.log(`DBUG:MCUI:ChatMessageMEnter:${msg.uniqId}`) + console.debug(`DBUG:MCUI:ChatMessageMEnter:${msg.uniqId}`) if (this.uniqIdChatMsgPO != msg.uniqId) { this.elPopoverChatMsg.hidePopover() } @@ -1263,7 +1263,7 @@ class MultiChatUI { this.elPopoverChatMsg.showPopover({source: secMain}) }) secMain.addEventListener('mouseleave', (ev)=>{ - console.log(`DBUG:MCUI:ChatMessageMLeave:${msg.uniqId}`) + console.debug(`DBUG:MCUI:ChatMessageMLeave:${msg.uniqId}`) }) elParent?.append(secMain) secMain.setAttribute("CMUniqId", String(msg.uniqId)) @@ -1624,7 +1624,7 @@ class MultiChatUI { } else { if (content.trim() == "") { this.elInUser.placeholder = "dont forget to enter a message, before submitting to ai" - this.chat_show(chatId) + this.chat_uirefresh(chatId) return; } try {