-
Notifications
You must be signed in to change notification settings - Fork 1
Ta375/onboarding integration #280
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
3TTemi
wants to merge
33
commits into
master
Choose a base branch
from
ta375/onboarding-integration
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…rnell-dti/cornell-go into as4288/onboarding-backend
…rnell-dti/cornell-go into as4288/onboarding-backend
…erate frontend api layer
…l-dti/cornell-go into as4288/onboarding-backend
Fix code formatting with Prettier 3.6.2
…ta375/onboarding-integration
|
[diff-counting] Significant lines: 2153. This diff might be too big! Developer leads are invited to review the code. |
abcfbbf to
703d875
Compare
06b1071 to
7765cfd
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR implements a complete 13-step user onboarding flow with backend integration for persistent completion tracking. New users are guided through the app's key features (Challenges, Journeys, Gameplay, Profile, Leaderboard), and onboarding status persists across sessions.
Onboarding Flow Implementation:
BearMascotMessagewidget with responsive positioning and SVG assetsOnboardingModelfor state management across pages using ChangeNotifier patternBackend Integration:
OnboardingModelto backend via WebSocket to checkhasCompletedOnboardingstatushasCompletedOnboardingfield to fix data filtering issueas4288/onboarding-backendfor database schema and API endpointsMain Files Modified:
game/lib/widgets/bear_mascot_message.dart- Custom onboarding widget (new file)game/lib/model/onboarding_model.dart- State management + backend integration (new file)game/lib/main.dart- IntegratedOnboardingModelgame/lib/navigation_page/bottom_navbar.dart- Steps 0, 3, 11, 12, 13 of onboardinggame/lib/navigation_page/home_navbar.dart- Step 2game/lib/challenges/challenges_page.dart- Step 1game/lib/journeys/journeys_page.dart- Step 4game/lib/gameplay/gameplay_page.dart- Steps 5, 6game/lib/gameplay/gameplay_map.dart- Steps 7, 8, 9, 10game/lib/api/*- Auto-generated from backend DTOsserver/src/casl/casl-ability.factory.ts- AddedhasCompletedOnboardingto User read permissionsgame/assets/images/Remaining TODOs:
Depends on: Backend branch
as4288/onboarding-backend(already merged)Test Plan
Onboarding Flow:
Production Testing Plan:
Notes
Important Implementation Details:
OnboardingModeluses non-lazy initialization to ensure stream listeners are registered before backend events_isLoadingFromBackendflag prevents onboarding flash on loginhasCompletedOnboardingwas filtered out by backendBreaking Changes / Blockers
hasCompletedOnboarding Booleanfield inUsertable20250922023823_add_user_fieldsmigration