feat: add Resumen Diario TNS page as submodule

Groups envios by factura+tipo per day and shows estado_final
(exitoso if any send succeeded, error persistente if all failed).
Supports inline reenvío and JSON detail modal. Added to sidebar
under Historial TNS and as TNS submodule link.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Lizandro Guarnizo
2026-07-26 17:59:42 -05:00
co-authored by Claude Sonnet 4.6
parent 3859095f17
commit ab2ef167f9
3 changed files with 336 additions and 2 deletions
+7 -1
View File
@@ -61,10 +61,13 @@
<span class="flex-1">TNS</span>
<span class="text-xs px-1.5 py-0.5 rounded {% if cur == '/envios/tns' %}bg-blue-500 text-blue-100{% else %}bg-gray-700 text-gray-400{% endif %}">5</span>
</a>
{% if cur == '/envios/tns' %}
{% if cur in ('/envios/tns', '/logs/resumen') %}
<div class="ml-4 border-l border-gray-700 pl-3">
<p class="text-xs text-gray-500 py-0.5">Terceros · Transacción · Ventas</p>
<p class="text-xs text-gray-500 py-0.5">Prueba RDA · Automatización</p>
<a href="/logs/resumen" class="flex items-center py-0.5 text-xs {% if cur == '/logs/resumen' %}text-blue-400{% else %}text-gray-500 hover:text-gray-300{% endif %}">
<i class="fas fa-calendar-check mr-1.5 text-[10px]"></i> Resumen Diario
</a>
</div>
{% endif %}
@@ -84,6 +87,9 @@
<a href="/logs" class="flex items-center px-3 py-2.5 rounded-lg text-sm font-medium {% if cur == '/logs' %}bg-blue-600 text-white{% else %}text-gray-300 hover:bg-gray-700{% endif %}">
<i class="fas fa-history w-5 mr-2"></i> Historial TNS
</a>
<a href="/logs/resumen" class="flex items-center px-3 py-2.5 rounded-lg text-sm font-medium {% if cur == '/logs/resumen' %}bg-blue-600 text-white{% else %}text-gray-300 hover:bg-gray-700{% endif %}">
<i class="fas fa-calendar-check w-5 mr-2"></i> Resumen Diario
</a>
<a href="/logs/actividad" class="flex items-center px-3 py-2.5 rounded-lg text-sm font-medium {% if cur == '/logs/actividad' %}bg-blue-600 text-white{% else %}text-gray-300 hover:bg-gray-700{% endif %}">
<i class="fas fa-user-clock w-5 mr-2"></i> Actividad
</a>