Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 0 additions & 36 deletions apps/decodex-app/Sources/DecodexApp/AccountPanelView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -279,10 +279,6 @@ struct AccountPanelView: View {
header
accountSummary

if globalActiveRuns.isEmpty == false {
globalRunSummary
}

if telemetryMatrixIsVisible {
AccountTelemetryMatrixView(
aggregate: accountProfileAggregate,
Expand Down Expand Up @@ -609,9 +605,6 @@ struct AccountPanelView: View {
if store.accountList?.usageProbeError != nil {
height += AccountPanelLayout.sectionSpacing + AccountPanelLayout.noticeHeight
}
if globalActiveRuns.isEmpty == false {
height += AccountPanelLayout.sectionSpacing + AccountRunStripLayout.globalSummaryHeight
}

return height
}
Expand Down Expand Up @@ -666,30 +659,6 @@ struct AccountPanelView: View {
+ CGFloat(rows.count - 1) * AccountPanelLayout.telemetryRowSpacing
}

private var globalActiveRuns: [OperatorRunStatus] {
store.operatorSnapshot?.activeRuns ?? []
}

private var globalRunSummary: some View {
VStack(alignment: .leading, spacing: 6) {
HStack(alignment: .firstTextBaseline, spacing: 6) {
Image(systemName: "play.circle.fill")
.font(PanelFont.accountDetail)
.foregroundStyle(PanelPalette.routeAccent(colorScheme))
.frame(width: 12)
Text("\(globalActiveRuns.count) active")
.font(PanelFont.accountDetail)
.foregroundStyle(PanelPalette.primaryText(colorScheme))
Spacer(minLength: 0)
}

AccountRunSummaryView(runs: globalActiveRuns, currentTime: currentTime)
}
.padding(.horizontal, 8)
.padding(.vertical, 7)
.modernGlassSurface(cornerRadius: 9, depth: .row)
}

private func displayName(for account: CodexAccount) -> String {
if emailsHidden {
return AccountDisplay.aliases(for: store.accounts)[account.id]
Expand Down Expand Up @@ -1018,7 +987,6 @@ struct AccountRunSummaryView: View {
}

private enum AccountRunStripLayout {
static let globalSummaryHeight: CGFloat = 42
static let contentCoordinateSpace = "account-run-strip-content"
static let dragActivationDistance: CGFloat = 1
static let edgeControlSpacing: CGFloat = 4
Expand Down Expand Up @@ -2999,10 +2967,6 @@ struct OperatorLanePopoverView: View {
}

private var modelBucket: OperatorChildAgentBucket? {
guard run.processAlive != false else {
return nil
}

return orderedBuckets.first { bucket in
bucket.name.caseInsensitiveCompare("Model") == .orderedSame
}
Expand Down