fix/quitar-dato-empresa

This commit is contained in:
2026-03-25 07:12:22 -06:00
parent c565696242
commit 85247e2713
4 changed files with 2 additions and 7 deletions

View File

@@ -37,7 +37,6 @@ def _map_row(row: TaskRun) -> TaskRunListItem:
else None
),
tenant_id=row.tenant_id,
company_id=row.company_id,
requested_by_user=row.requested_by_user,
started_at=row.started_at,
finished_at=row.finished_at,

View File

@@ -27,7 +27,6 @@ class TaskRunListItem(BaseModel):
retries: int | None = None
error: TaskError | None = None
tenant_id: int
company_id: int | None = None
requested_by_user: str | None = None
started_at: datetime | None = None
finished_at: datetime | None = None

View File

@@ -21,7 +21,6 @@ export interface UnifiedTask {
message?: string | null;
} | null;
tenant_id: number;
company_id?: number | null;
requested_by_user?: string | null;
started_at?: string | null;
finished_at?: string | null;

View File

@@ -182,7 +182,6 @@
<tr>
<th class="p-2 text-left">Task ID</th>
<th class="p-2 text-left">Tipo</th>
<th class="p-2 text-left">Empresa</th>
<th class="p-2 text-left">Estado</th>
<th class="p-2 text-left">Progreso</th>
<th class="p-2 text-left">Reintentos</th>
@@ -192,11 +191,11 @@
<tbody>
{#if tasks.length === 0 && !loading}
<tr>
<td class="p-4 text-center text-muted-foreground" colspan="7">Sin tareas registradas</td>
<td class="p-4 text-center text-muted-foreground" colspan="6">Sin tareas registradas</td>
</tr>
{:else if tasks.length === 0 && loading}
<tr>
<td class="p-4 text-center text-muted-foreground italic" colspan="7">Cargando...</td>
<td class="p-4 text-center text-muted-foreground italic" colspan="6">Cargando...</td>
</tr>
{:else}
{#each tasks as task}
@@ -208,7 +207,6 @@
>
<td class="p-2 font-mono text-xs">{task.task_id}</td>
<td class="p-2">{task.task_group} / {task.task_name}</td>
<td class="p-2 text-muted-foreground">{task.company_id ?? '—'}</td>
<td class={`p-2 font-medium ${statusClass(task.status)}`}>
{statusLabel(task.status)}
<span class="ml-1 text-xs font-normal text-muted-foreground"