phase two

This commit is contained in:
Mark Gregory
2026-10-06 08:58:01 +01:00
parent 6bb62ebf69
commit 736765180c
8 changed files with 332 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
import SwiftUI
struct IOSSettingsView: View {
@EnvironmentObject private var appState: AppState
@EnvironmentObject private var workspaceStore: WorkspaceStore
var body: some View {
NavigationStack {
Form {
Section("Workspace") {
LabeledContent("Name", value: workspaceStore.selectedWorkspace.name)
LabeledContent("Type", value: workspaceStore.selectedWorkspace.kind == .team ? "Team" : "Personal")
LabeledContent("Role", value: workspaceStore.selectedWorkspace.role.rawValue.capitalized)
}
Section("SonarQube") {
if let server = appState.selectedServer {
LabeledContent("Server", value: server.name)
LabeledContent("Address", value: server.baseURL)
Text("The SonarQube access token is stored only in this device's Keychain.")
.font(.footnote)
.foregroundStyle(.secondary)
} else {
Text("No server is configured on this device.")
.foregroundStyle(.secondary)
}
}
}
.navigationTitle("Settings")
}
}
}