From 6007babad3f75a611c57457a87bcf022660c2138 Mon Sep 17 00:00:00 2001 From: Esdras Renan Date: Tue, 21 Oct 2025 00:12:39 -0300 Subject: [PATCH] Align ticket status colors and polish Windows insights --- .../machines/admin-machines-overview.tsx | 37 +++++++++++-------- src/components/portal/portal-ticket-card.tsx | 8 ++-- 2 files changed, 25 insertions(+), 20 deletions(-) diff --git a/src/components/admin/machines/admin-machines-overview.tsx b/src/components/admin/machines/admin-machines-overview.tsx index 5ece2a7..57a9307 100644 --- a/src/components/admin/machines/admin-machines-overview.tsx +++ b/src/components/admin/machines/admin-machines-overview.tsx @@ -2356,8 +2356,9 @@ export function MachineDetails({ machine }: MachineDetailsProps) { Configurações automáticas e histórico recente - -
+ +
+
{windowsUpdateDisabled !== undefined ? ( {windowsUpdateDisabled ? : } @@ -2370,21 +2371,21 @@ export function MachineDetails({ machine }: MachineDetailsProps) { Sem detecção automática ) : null} -
-
- - - +
+
+ + + +
{windowsHotfixes.length > 0 ? ( -
- +

Atualizações recentes

-
    +
      {windowsHotfixes.slice(0, 3).map((fix) => ( -
    • +
    • {fix.id} - {fix.installedLabel} + {fix.installedLabel}
    • ))}
    @@ -2565,7 +2566,11 @@ export function MachineDetails({ machine }: MachineDetailsProps) { ].join(" · ")}
- ) : null} + ) : ( +

+ TPM: não foi possível coletar informações (requer privilégios administrativos na máquina). +

+ )} {windowsDeviceGuardDetails ? (
@@ -3090,9 +3095,9 @@ export function MachineDetails({ machine }: MachineDetailsProps) {
)} - - - ) + + + ); } function MachinesGrid({ machines, companyNameBySlug }: { machines: MachinesQueryItem[]; companyNameBySlug: Map }) { diff --git a/src/components/portal/portal-ticket-card.tsx b/src/components/portal/portal-ticket-card.tsx index 5b0d5ae..c019c7a 100644 --- a/src/components/portal/portal-ticket-card.tsx +++ b/src/components/portal/portal-ticket-card.tsx @@ -20,10 +20,10 @@ const statusLabel: Record = { } const statusTone: Record = { - PENDING: "bg-slate-200 text-slate-800", - AWAITING_ATTENDANCE: "bg-sky-100 text-sky-700", - PAUSED: "bg-violet-100 text-violet-700", - RESOLVED: "bg-emerald-100 text-emerald-700", + PENDING: "border border-slate-200 bg-slate-100 text-slate-700", + AWAITING_ATTENDANCE: "border border-sky-200 bg-sky-100 text-sky-700", + PAUSED: "border border-amber-200 bg-[#fff3c4] text-[#7a5901]", + RESOLVED: "border border-emerald-200 bg-emerald-100 text-emerald-700", } const priorityLabel: Record = {