Port the remaining tabs to the macOS client

This commit is contained in:
Ian Gulliver
2026-10-17 07:26:18 -07:00
parent 9b3f775dac
commit e28c313854
15 changed files with 3648 additions and 50 deletions
+18 -17
View File
@@ -167,27 +167,16 @@ private struct LeftPane: View {
.opacity(tab == .lead ? 1 : 0)
.allowsHitTesting(tab == .lead)
.accessibilityHidden(tab != .lead)
if tab != .lead {
NotYet(label: tab == .status ? "Status" : "Settings")
.background(Palette.bg)
if tab == .status {
StatusView()
} else if tab == .settings {
SettingsView()
}
}
}
}
}
private struct NotYet: View {
let label: String
var body: some View {
VStack {
Muted(text: "\(label) isn't in the macOS app yet.")
Spacer()
}
.frame(maxWidth: .infinity, maxHeight: .infinity)
}
}
private struct TaskPane: View {
@Environment(Store.self) private var store
@ViewState private var seen: Set<String> = []
@@ -228,8 +217,20 @@ private struct TaskPane: View {
case .transcript:
ChatView(kind: .task(store.selectedTaskId))
.id(store.selectedTaskId ?? "")
default:
NotYet(label: tabLabels[store.focus.tab]!)
case .changes:
ChangesView()
case .files:
FilesView()
case .terminal:
TerminalTab()
case .inbox:
InboxView()
case .reviews:
ReviewsView()
case .workflow:
WorkflowView()
case .project:
ProjectView()
}
}
}