🧪 Prueba de Funcionalidad de Cambio de Nombre

✅ Funcionalidad Implementada

📋 Instrucciones de Prueba

  1. Inicializar el chat: Haz clic en "Inicializar ChatBot"
  2. Abrir menú lateral: Haz clic en el botón de tres puntos (⋮) en el header del chat
  3. Seleccionar "Cambiar nombre": Aparecerá un modal con el formulario
  4. Ingresar nuevo nombre: Escribe un nombre válido (mínimo 2 caracteres)
  5. Guardar cambios: Haz clic en "Confirmar" o presiona Enter
  6. Verificar: El nombre se actualiza y aparece un mensaje de confirmación

🔧 Configuración del ChatBot

const chat = new ChatBot({ baseUrl: 'https://hubdocs.test', apiKey: 'Ac7bdb20-ecdc-453f-bdca-40e90880d424', tenant: 'nomed', user: { name: '', // Nombre vacío para forzar registro email: 'usuario@example.com', photo: "https://res.cloudinary.com/dhqqkf4hy/image/upload/v1754206933/user_icon_wbwkja.png" }, bot: { name: 'Boti', img: "../src/img/bot_icon.png" }, options: { show: true, stream: true, cache: true, // ✅ Habilitar caché register: true, // ✅ Habilitar registro testMode: false, // ✅ Usar API real }, custom: { primaryColor: "#007bff", botName: "Asistente Virtual", headerBgColor: "#007bff", headerTextColor: "#fff", sendButtonText: "Enviar", chatWidth: "500px", chatHeight: "70vh", chatMaxWidth: "90vw", chatMaxHeight: "80vh", fullscreenEnabled: true, messagesHeight: "350px", buttonSize: "56px", showTime: true, sound: true, reminderTimeout: 10000, maxQuestionLength: 50, position: { bottom: "24px", right: "24px" } } });

🎯 Características del Modal de Cambio de Nombre

⚠️ Notas Importantes