v2.0.7 — Show account email in settings auth section

This commit is contained in:
superdooper86
2026-05-07 15:21:35 +02:00
parent a1c3c0b314
commit d2815d65ce
5 changed files with 54 additions and 15 deletions
+25 -7
View File
@@ -596,13 +596,31 @@ struct SettingsView: View {
.font(.system(size: 12, weight: .medium))
.foregroundColor(.secondary)
HStack(spacing: 6) {
Circle()
.fill(vm.isSignedIn ? Color.green : Color.orange)
.frame(width: 7, height: 7)
Text(vm.isSignedIn ? "Signed in to claude.ai" : "Not signed in")
.font(.system(size: 12, weight: .medium))
.foregroundColor(vm.isSignedIn ? .primary : .orange)
if vm.isSignedIn {
VStack(alignment: .leading, spacing: 2) {
HStack(spacing: 6) {
Circle()
.fill(Color.green)
.frame(width: 7, height: 7)
Text("Signed in to claude.ai")
.font(.system(size: 13, weight: .semibold))
}
if !vm.userEmail.isEmpty {
Text(vm.userEmail)
.font(.system(size: 11.5))
.foregroundColor(.secondary)
.padding(.leading, 13)
}
}
} else {
HStack(spacing: 6) {
Circle()
.fill(Color.orange)
.frame(width: 7, height: 7)
Text("Not signed in")
.font(.system(size: 13, weight: .semibold))
.foregroundColor(.orange)
}
}
Text("Your session is stored locally and persists across restarts.")