diff --git a/src/components/admin/devices/admin-devices-overview.tsx b/src/components/admin/devices/admin-devices-overview.tsx index 2502a11..44ffb54 100644 --- a/src/components/admin/devices/admin-devices-overview.tsx +++ b/src/components/admin/devices/admin-devices-overview.tsx @@ -6364,6 +6364,13 @@ function DeviceCard({ device, companyName }: { device: DevicesQueryItem; company })() const persona = collaborator?.role === "manager" ? "Gestor" : "Colaborador" const companyLabel = companyName ?? device.companySlug ?? null + const windowsActivationStatus = (() => { + const inv = device.inventory as DeviceInventory | null + const windowsExt = inv?.extended?.windows + const osInfo = parseWindowsOsInfo(windowsExt?.osInfo) + if (!osInfo) return null + return osInfo.isActivated ?? (typeof osInfo.licenseStatus === "number" ? osInfo.licenseStatus === 1 : null) + })() return ( @@ -6396,14 +6403,6 @@ function DeviceCard({ device, companyName }: { device: DevicesQueryItem; company {device.devicePlatform} ) : null} - {device.authEmail ? ( - <> - - - {device.authEmail} - - - ) : null} {collaborator?.email ? (
@@ -6445,22 +6444,27 @@ function DeviceCard({ device, companyName }: { device: DevicesQueryItem; company return [name, ver].filter(Boolean).join(" ").trim() })()} - {device.architecture ? ( - - {device.architecture.toUpperCase()} + {windowsActivationStatus !== null ? ( + + {windowsActivationStatus ? "Ativado" : "Não ativado"} ) : null}
-
- - {deviceTypeLabel} - - {companyLabel ? ( + {companyLabel ? ( +
{companyLabel} - ) : null} -
+
+ ) : null}
diff --git a/src/components/sidebar-brand.tsx b/src/components/sidebar-brand.tsx index 1c0ccf4..48f8809 100644 --- a/src/components/sidebar-brand.tsx +++ b/src/components/sidebar-brand.tsx @@ -22,7 +22,7 @@ export function SidebarBrand({ logoSrc, logoAlt, title, subtitle }: SidebarBrand
@@ -37,7 +37,7 @@ export function SidebarBrand({ logoSrc, logoAlt, title, subtitle }: SidebarBrand
{title} - + {subtitle}