fix(design): 按概念图重排面板层级并验证真实组件

This commit is contained in:
2026-11-02 23:47:12 +08:00
parent ef358794dc
commit 0e8f598fe6
12 changed files with 221 additions and 86 deletions
+12
View File
@@ -37,6 +37,18 @@ import Foundation
await sampler.setProcessVisible(true)
let reopened = await sampler.sample()
precondition(reopened.processes == nil)
let store = MetricsStore()
store.setPanelVisible(true)
for _ in 0..<40 {
if store.snapshot.processes != nil { break }
try? await Task.sleep(for: .milliseconds(200))
}
precondition(store.snapshot.processes?.readable ?? 0 > 0)
store.setPanelVisible(false)
precondition(store.snapshot.processes == nil)
try? await Task.sleep(for: .milliseconds(2200))
precondition(store.snapshot.processes == nil)
store.togglePause()
print("PASS: process CPU boundaries/live baseline, GPU range, VPN total exclusion, bounded interface history, visibility reset")
}
}