diff --git a/orchestrator/src/views/AgenteDetail.vue b/orchestrator/src/views/AgenteDetail.vue index 07c9c59..81a3bb5 100644 --- a/orchestrator/src/views/AgenteDetail.vue +++ b/orchestrator/src/views/AgenteDetail.vue @@ -165,6 +165,15 @@ const showCanalForm = ref(false) const canalForm = ref(canalVacio()) const widgetCopiado = ref(false) +// El reporte se descarga con una navegación normal (no fetch): así el +// navegador maneja el archivo y la cookie de sesión viaja sola. +const urlReporte = computed(() => { + const hoy = new Date() + const desde = new Date(hoy.getFullYear(), hoy.getMonth(), 1).toISOString().slice(0, 10) + const hasta = hoy.toISOString().slice(0, 10) + return apiUmind(`/umind/reporte.xlsx?agente_id=${props.agenteId}&desde=${desde}&hasta=${hasta}`) +}) + const widgetSnippet = computed(() => { const siteKey = agente.value?.site_key || 'TU_SITE_KEY' return ` + + {{ if .tieneUmind }} + + uM +
+

uMind Studio

+

Configurá tus asistentes, revisá conversaciones y consumo.

+
+ +
+ {{ else }} +
+
+ uM +
+

Tu WhatsApp puede responder solo

+

+ Un asistente que contesta con la información de tu negocio — precios, horarios, servicios. + Entiende las notas de voz y lee las fotos que te mandan tus clientes. +

+ + Quiero activarlo + +
+
+
+ {{ end }} + {{ if .isPartner }} diff --git a/rest/controllers/api/umind_widget_controller.go b/rest/controllers/api/umind_widget_controller.go index 34fc8b9..9ccd58f 100644 --- a/rest/controllers/api/umind_widget_controller.go +++ b/rest/controllers/api/umind_widget_controller.go @@ -113,7 +113,10 @@ const umindWidgetJS = `(function () { var script = document.currentScript; var siteKey = script.getAttribute('data-site'); if (!siteKey) { console.error('[uMind] falta data-site en el