mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
fix(desktop): allow skipping harness setup onboarding (#2360)
Signed-off-by: Taksh <takshkothari09@gmail.com>
This commit is contained in:
@@ -215,7 +215,14 @@ export function MachineOnboardingFlow({
|
||||
back: () =>
|
||||
setPage(identityWasImported ? "key-import" : "backup"),
|
||||
next: (runtimeIds) => {
|
||||
setReadyRuntimeIds(Array.from(runtimeIds));
|
||||
const ids = Array.from(runtimeIds);
|
||||
setReadyRuntimeIds(ids);
|
||||
// Harness install can fail (Windows/PATH/network). Don't soft-lock
|
||||
// onboarding — users can finish setup later in Settings → Agents.
|
||||
if (ids.length === 0) {
|
||||
complete(selectedPubkey ?? undefined);
|
||||
return;
|
||||
}
|
||||
setPage("config");
|
||||
},
|
||||
}}
|
||||
|
||||
@@ -687,6 +687,16 @@ function SetupStepContent({
|
||||
Next
|
||||
</Button>
|
||||
|
||||
<Button
|
||||
className="h-9 rounded-full bg-foreground/10 px-6 text-sm hover:bg-foreground/15"
|
||||
data-testid="onboarding-setup-skip"
|
||||
onClick={() => actions.next([])}
|
||||
type="button"
|
||||
variant="ghost"
|
||||
>
|
||||
Skip for now
|
||||
</Button>
|
||||
|
||||
<Button
|
||||
className="h-9 rounded-full bg-foreground/10 px-6 text-sm hover:bg-foreground/15"
|
||||
data-testid="onboarding-back"
|
||||
|
||||
Reference in New Issue
Block a user