You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(frontend): onboarding first-login redirect when no preset applied (#5061 follow-up) #6452
Issue #5061 acceptance criteria included: "redirect on first login if no preset applied". The OnboardingWizard.vue and /onboarding route were implemented, but the router guard that redirects new users to /onboarding on first login was not.
Fix: add a beforeEach navigation guard in autobot-frontend/src/router/index.ts:
After auth check, call GET /api/onboarding/presets or a new GET /api/onboarding/status endpoint to check if a preset has been applied
If not applied and user is authenticated → redirect to /onboarding
Store a preset_applied flag (Redis or user config) so the redirect only fires once
Activity
feat(onboarding): first-login redirect when no preset applied (#6452) (…
mrveiss commentedon Apr 30, 2026
✅ Closed via PR #6563 (commit 8574a20)
Acceptance criteria met (#5061 follow-up):
apply_preset()setsonboarding:preset_applied = "1"andonboarding:preset_namein Redis on successGET /api/onboarding/statusreturnsOnboardingStatus(preset_applied, preset_name). No auth required (called before main app loads)beforeEachguard (did not add a second guard)sessionStoragecache (onboarding_preset_applied) avoids hitting endpoint on every nav; cleared on successful preset apply/onboardingwhenpreset_applied=falseAND user authenticated AND target is not/onboardingAND notmeta.isPublicpreset_applied=true; network error → cached'1'. Users never trapped in onboarding by infrastructure issuespython -m py_compile autobot-backend/api/onboarding.pypasses