improve ingestion system to match isssteleon setup

This commit is contained in:
Roberto Treviño Cervantes
2026-11-13 11:52:42 -06:00
parent 0ee53fd286
commit e6abf44bef
12 changed files with 851 additions and 10 deletions
+11
View File
@@ -81,6 +81,17 @@
· requeridos sin mapear: {{ source.mapeo.requeridos_sin_mapear.join(', ') }}
}
</p>
@if ((source.etiquetas_sin_usar | keyvalue)?.length || source.etiquetas_sin_usar_poco_frecuentes) {
<p class="reportes__hint">
Etiquetas que los documentos traen y no se usaron (puede asignarlas en la siguiente carga):
@for (caption of source.etiquetas_sin_usar | keyvalue; track caption.key) {
<span class="chip">{{ caption.key }} ×{{ caption.value }}</span>
}
@if (source.etiquetas_sin_usar_poco_frecuentes) {
<span class="chip">otras {{ source.etiquetas_sin_usar_poco_frecuentes }} poco frecuentes</span>
}
</p>
}
}
<table class="campos">
<thead>
+4
View File
@@ -20,6 +20,10 @@ export interface SourceReport {
mapeo: { requeridos_sin_mapear: string[]; campos_sin_mapear: string[]; columnas_origen: string[] };
filas: Record<string, number>;
campos: Record<string, FieldReport>;
/** Captions the source's documents print that the import didn't use, with how many records print each. */
etiquetas_sin_usar?: Record<string, number>;
/** How many more such captions too few records print to be listed. */
etiquetas_sin_usar_poco_frecuentes?: number;
}
/** One line of the aggregate import log. */