chore: update htmx and suite_app javascript
All checks were successful
BotUI CI / build (push) Successful in 2m51s

This commit is contained in:
Rodrigo Rodriguez (Pragmatismo) 2026-02-22 15:56:05 -03:00
parent 756da22dd5
commit 6afeeb311f
2 changed files with 12 additions and 4 deletions

View file

@ -208,6 +208,11 @@
// Debug logging
console.log("handleWebSocketMessage called with:", { messageType, message });
// Hide initial loading overlay when first bot message arrives
if (window.hideLoadingOverlay) {
setTimeout(window.hideLoadingOverlay, 300);
}
// Handle suggestions array from BotResponse
if (message.suggestions && Array.isArray(message.suggestions) && message.suggestions.length > 0) {
clearSuggestions();

View file

@ -751,13 +751,16 @@ document.addEventListener("DOMContentLoaded", () => {
// Check bot public status early
checkBotPublicStatus();
// Hide loading overlay
setTimeout(() => {
// Provide a global function to hide the loading overlay
window.hideLoadingOverlay = function() {
const loadingOverlay = document.getElementById("loadingOverlay");
if (loadingOverlay) {
if (loadingOverlay && !loadingOverlay.classList.contains("hidden")) {
loadingOverlay.classList.add("hidden");
}
}, 500);
};
// Failsafe: hide after 10 seconds if no message arrives
setTimeout(window.hideLoadingOverlay, 10000);
// Simple apps menu handling
const appsBtn = document.getElementById("appsButton");