fix(hub): make guided setup choices actionable (#3677)

Show a concise login success state, scope starter choices to available Hub connections, wait for daemon capabilities, and avoid partial starter bundles when setup cannot proceed.
This commit is contained in:
Mohamed Boudra
2026-08-22 10:37:19 +02:00
committed by GitHub
parent c763b80824
commit 7beff9cb0b
8 changed files with 358 additions and 111 deletions
+10 -2
View File
@@ -87,6 +87,7 @@ describe("Hub commands", () => {
assert.deepEqual(events, [
"progress:Logging in to https://hub.paseo.sh",
"authorize:https://hub.paseo.sh",
"progress:Logged in",
]);
assert.equal(result.data.origin, "https://hub.paseo.sh");
});
@@ -113,11 +114,18 @@ describe("Hub commands", () => {
events.push("init");
events.push("deploy");
},
reporter: quietReporter,
reporter: { progress: (message) => events.push(`progress:${message}`) },
},
);
assert.deepEqual(events, ["login", "connect:https://hub.test", "init", "deploy"]);
assert.deepEqual(events, [
"progress:Logging in to https://hub.test",
"login",
"progress:Logged in",
"connect:https://hub.test",
"init",
"deploy",
]);
});
it("JSON and noninteractive login remain login-only", async () => {