Check agent CLI sign-in in server setup with a sign-in button

This commit is contained in:
Ian Gulliver
2026-10-23 06:18:12 -07:00
parent 3de5f76fba
commit 3d727b9c71
6 changed files with 89 additions and 17 deletions
+7 -1
View File
@@ -36,6 +36,12 @@ struct Check: Decodable {
let tool: String
let fix: String
let blocking: Bool
let signedOut: Bool
enum CodingKeys: String, CodingKey {
case name, need, `for`, ok, tool, fix, blocking
case signedOut = "signed_out"
}
}
struct Checks: Decodable {
@@ -75,7 +81,7 @@ struct ChecksView: View {
if check.ok {
return Text("Found").foregroundStyle(Palette.ok)
}
return Text("Missing").foregroundStyle(check.blocking ? Palette.danger : Palette.muted)
return Text(check.signedOut ? "Not signed in" : "Missing").foregroundStyle(check.blocking ? Palette.danger : Palette.muted)
}
private func need(_ check: Check) -> String {
+1 -1
View File
@@ -451,7 +451,7 @@ struct ConnectView: View {
}
#if os(macOS)
if !form.missing.isEmpty {
Text("byre can't run on this Mac yet. Install what's missing, then click Run byre on this Mac again.")
Text("byre can't run on this Mac yet. Install what's missing and sign in, then click Run byre on this Mac again.")
.fixedSize(horizontal: false, vertical: true)
.padding(.top, 6)
ChecksView(checks: form.missing)