Port the remaining tabs to the macOS client
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user