feat(frontend): land cloud users in their workspace after onboarding

Cloud signup creates exactly one workspace for the new user, so the picker
that followed onboarding was a page with a single choice on it. Switch to
that workspace and go to the home page instead, falling back to the picker
whenever there is a real choice: an invite to accept, several workspaces,
or none.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012fRjnaHLwjpHN84gNNxah9
This commit is contained in:
Guilhem Lemouel
2026-09-02 10:14:47 +02:00
co-authored by Claude Opus 5
parent 9f12745b13
commit a72f79322d
@@ -80,9 +80,9 @@
currentStep = STEP_SOURCE
}
// Cloud signup creates a workspace for the user, so the picker would show a single
// entry and one more click. Enter it directly; fall back to the picker for anyone
// with none or several.
// Cloud signup creates one workspace for the user, so the picker would be a page with a
// single choice on it. Land in that workspace instead, and only fall back to the picker
// when there is an actual choice to make (an invite to accept, several workspaces, none).
async function leaveOnboarding() {
try {
const workspaces = await WorkspaceService.listUserWorkspaces()