From 02d89831953c250a643e2ae3043d830eddd17c3a Mon Sep 17 00:00:00 2001 From: cproudlock Date: Sat, 11 Jul 2026 19:16:03 -0400 Subject: [PATCH] Consolidate asset relationships onto the shared card The curated Controlled Machines (PC detail) and Connected PC (machine detail) cards duplicated what the generic relationships card already shows with type badges and inline add/remove - and hid every non-controls relationship type. Removed the curated cards and their plumbing (~105 lines of orphaned CSS included); the MachineForm controlling-PC picker stays as the write path. Also theme-variable fixes on the shared card styling. Co-Authored-By: Claude Fable 5 --- frontend/src/assets/style.css | 91 +------------------ frontend/src/views/machines/MachineDetail.vue | 71 +-------------- frontend/src/views/pcs/PCDetail.vue | 86 +----------------- 3 files changed, 7 insertions(+), 241 deletions(-) diff --git a/frontend/src/assets/style.css b/frontend/src/assets/style.css index 906345e..94c4917 100644 --- a/frontend/src/assets/style.css +++ b/frontend/src/assets/style.css @@ -1137,26 +1137,7 @@ td.actions { font-style: italic; } -/* Connected Device */ -.connected-device { - display: flex; - align-items: center; - justify-content: space-between; - gap: 1rem; -} - -.device-link { - display: flex; - align-items: center; - gap: 0.75rem; - text-decoration: none; - color: inherit; -} - -.device-link:hover .device-name { - color: var(--info); -} - +/* Device icon (network detail) */ .device-icon { width: 44px; height: 44px; @@ -1173,76 +1154,6 @@ td.actions { height: 24px; } -.device-info { - display: flex; - flex-direction: column; -} - -.device-name { - font-weight: 600; - font-size: 15px; -} - -.device-alias { - font-size: 13px; - color: var(--text-light); -} - -.connection-type { - padding: 0.25rem 0.5rem; - font-size: 11px; - background: rgba(4, 185, 98, 0.2); - color: var(--success); - border-radius: 0.25rem; -} - -/* Equipment List */ -.equipment-list { - display: flex; - flex-direction: column; - gap: 0.5rem; -} - -.equipment-item { - display: flex; - align-items: center; - justify-content: space-between; - padding: 0.75rem; - background: var(--bg); - border: 1px solid var(--border); - border-radius: 0.25rem; - text-decoration: none; - color: inherit; - transition: border-color 0.15s; -} - -.equipment-item:hover { - border-color: var(--primary); -} - -.equipment-info { - display: flex; - flex-direction: column; -} - -.equipment-name { - font-weight: 500; - font-size: 14px; -} - -.equipment-alias { - font-size: 13px; - color: var(--text-light); -} - -.connection-tag { - padding: 0.2rem 0.5rem; - font-size: 11px; - background: rgba(4, 185, 98, 0.2); - color: var(--success); - border-radius: 0.25rem; -} - /* Network */ .network-list { display: flex; diff --git a/frontend/src/views/machines/MachineDetail.vue b/frontend/src/views/machines/MachineDetail.vue index 48b8908..3511c1b 100644 --- a/frontend/src/views/machines/MachineDetail.vue +++ b/frontend/src/views/machines/MachineDetail.vue @@ -183,30 +183,6 @@ - -
-

Connected PC

-
- No controlling PC assigned -
-
- -
- - - - - -
-
- {{ controllingPc.assetnumber }} - {{ controllingPc.name }} -
-
- {{ controllingPc.relationshipType }} -
-
- @@ -238,9 +214,9 @@