From c0af0a3478b2b7cc8bda173c881e3f977d0f564c Mon Sep 17 00:00:00 2001 From: josedario87 Date: Tue, 2 Dec 2025 21:59:27 -0600 Subject: [PATCH] Feature: Cargar historial de WhatsApp desde la UI - Agregar endpoint oldest.get.ts para obtener mensaje mas antiguo de un chat - Agregar boton 'Cargar historial de WhatsApp' en vista de mensajes - Mejorar HistorySection.vue con selector de chats y auto-deteccion --- app/components/debug/HistorySection.vue | 199 +++++++++++++++--- app/pages/messages/index.vue | 77 +++++++ .../[instanceId]/[chatId]/oldest.get.ts | 65 ++++++ 3 files changed, 313 insertions(+), 28 deletions(-) create mode 100644 server/api/messages/[instanceId]/[chatId]/oldest.get.ts diff --git a/app/components/debug/HistorySection.vue b/app/components/debug/HistorySection.vue index 2f52d4a..95f0c49 100644 --- a/app/components/debug/HistorySection.vue +++ b/app/components/debug/HistorySection.vue @@ -4,43 +4,105 @@
-
+ + +
+ + +
+ + + + +
+ Este chat no tiene mensajes guardados en la base de datos. +
+ + +
+ - -
-
- -
+ + - Solicitar Historial + Solicitar {{ count }} mensajes del historial + + + + + +