From 299e7c311eb039f1199f29e9ce7a326d0066bf15 Mon Sep 17 00:00:00 2001 From: liangxu Date: Tue, 28 Apr 2026 09:14:31 +0800 Subject: [PATCH] refactor(desktop-client/home): drop engine subsystem snapshot panel The transport/lease-manager/vault JSON dump was a debug artifact and duplicated information already surfaced in the network and accounts panels. Remove the panel and its styles. Co-Authored-By: Claude Opus 4.7 (1M context) --- .../src/renderer/views/HomeView.vue | 74 +------------------ 1 file changed, 1 insertion(+), 73 deletions(-) diff --git a/apps/desktop-client/src/renderer/views/HomeView.vue b/apps/desktop-client/src/renderer/views/HomeView.vue index ef6c01a..d75616e 100644 --- a/apps/desktop-client/src/renderer/views/HomeView.vue +++ b/apps/desktop-client/src/renderer/views/HomeView.vue @@ -88,24 +88,6 @@ const activity = computed(() => snapshot.value?.activity ?? []); const blockedAccounts = computed(() => accounts.value.filter((item) => ["expired", "revoked", "challenge_required"].includes(item.authState)), ); - -const subsystemCards = computed(() => { - const subsystems = snapshot.value?.subsystems ?? {}; - return [ - { - title: "Transport", - detail: JSON.stringify(subsystems.transport ?? {}, null, 2), - }, - { - title: "Lease Manager", - detail: JSON.stringify(subsystems.leaseManager ?? {}, null, 2), - }, - { - title: "Vault", - detail: JSON.stringify(subsystems.vault ?? {}, null, 2), - }, - ]; -}); @@ -398,43 +363,6 @@ const subsystemCards = computed(() => { .feed-dot.danger { background-color: #ef4444; } .feed-dot.info { background-color: #0ea5e9; } -/* Subsystems Bottom Panel */ -.subsystem-grid { - display: grid; - grid-template-columns: repeat(3, minmax(0, 1fr)); - gap: 24px; -} - -.subsystem-block { - display: flex; - flex-direction: column; - gap: 12px; -} - -.subsystem-block .title { - font-size: 15px; - font-weight: 700; - color: #0f172a; -} - -.code-block { - background: #f8fafc; - border: 1px solid #eef2f6; - border-radius: 14px; - padding: 20px; - overflow-x: auto; -} - -.code-block pre { - margin: 0; - font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; - font-size: 13px; - color: #475569; - line-height: 1.6; - white-space: pre-wrap; - word-break: break-all; -} - /* Base Typo */ .info-stack { display: flex; @@ -475,7 +403,7 @@ const subsystemCards = computed(() => { /* Responsiveness */ @media (max-width: 1024px) { - .panels-grid, .subsystem-grid { + .panels-grid { grid-template-columns: 1fr; } }