From 1b3001dfa12598af28882232336d837514502718 Mon Sep 17 00:00:00 2001 From: DCCONSTRUCTIONS Date: Thu, 1 Oct 2026 12:17:22 +0300 Subject: [PATCH] Remove passive access summary from project overview --- apps/device-manager/src/DeviceManagerApp.tsx | 15 --------------- apps/device-manager/src/styles.css | 4 ---- 2 files changed, 19 deletions(-) diff --git a/apps/device-manager/src/DeviceManagerApp.tsx b/apps/device-manager/src/DeviceManagerApp.tsx index 5f121bc..faedb9e 100644 --- a/apps/device-manager/src/DeviceManagerApp.tsx +++ b/apps/device-manager/src/DeviceManagerApp.tsx @@ -61,7 +61,6 @@ import { EnvironmentMediaPlaylistEditor } from "./EnvironmentMediaPlaylistEditor import { B2AddDevice } from "./b2/B2AddDevice"; import { B2AddHost } from "./b2/B2AddHost"; import { useB2Inventory } from "./b2/useB2Inventory"; -import { capabilityLabel, projectRoleLabel } from "./presentationLabels"; import { DeviceControlView, type ControlViewId, @@ -844,7 +843,6 @@ function ProjectView({ view, workspace, canManageCollections, canClaim, canConfi function ProjectOverview({ workspace }: { workspace: ProjectWorkspace }) { const b2 = useB2Inventory(workspace.project.projectRef, workspace); - const [showPermissions, setShowPermissions] = useState(false); const incomplete = !b2.data || b2.data.hosts.some((host) => !host.reachable); const deviceCount = incomplete ? null : workspace.devices.filter((device) => !['suspended', 'retired'].includes(device.lifecycleState)).length + b2.data!.items.length; const deviceDetail = !incomplete ? 'В реестре' : (b2.error || b2.data) ? 'Данные VPS недоступны' : 'Загрузка…'; @@ -860,19 +858,6 @@ function ProjectOverview({ workspace }: { workspace: ProjectWorkspace }) { {metric.value ?? '—'}} /> ))} -
  • - setShowPermissions(!showPermissions)}>} /> - {showPermissions ? ( -
    - - {workspace.project.access.capabilities.map((capability) => ( -
  • - ))} - - - ) : null} - ); } diff --git a/apps/device-manager/src/styles.css b/apps/device-manager/src/styles.css index 361c2dc..2e3fbec 100644 --- a/apps/device-manager/src/styles.css +++ b/apps/device-manager/src/styles.css @@ -1222,10 +1222,6 @@ body { white-space: nowrap; } -.device-manager-overview__permissions { - padding: var(--nodedc-space-2) var(--nodedc-space-3) var(--nodedc-space-4); -} - .device-manager-capabilities { display: flex; flex-wrap: wrap;