-
Notifications
You must be signed in to change notification settings - Fork 0
Fix data sync for demo mode #55
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
Conversation
- Migrates user data on demo login - Handles UserAppSettings migration - Handles UserContentPreferences migration - Idempotent and resilient
- Instantiate only in demo env - Pass to App widget
- Added migration service - Injected into AppBloc
- Migrate data on auth change - Handle guest to user transition - Inject demo data migration service
- Try update, create, then update - Handles concurrent creation
- Migrate data in demo mode - Refresh settings after migration
- Pass environment to AccountBloc - Add delay in demo mode
- Improved code readability - Updated constructor formatting - Adjusted conditional logic
…ous user authentication in demo mode has been resolved. The lib/account/bloc/account_bloc.dart file has been updated to ensure that UserContentPreferences are correctly loaded or created for the authenticated user, even after data migration.
/gemini summary |
Summary of ChangesThis pull request primarily addresses a critical data synchronization bug in the application's demo mode. It introduces a dedicated client-side service to manage the migration of user settings and content preferences when an anonymous user transitions to an authenticated one. This ensures data persistence and a smoother user experience in the demo environment, while also improving the robustness of data handling with enhanced error management and general code cleanup. Highlights
Changelog
Activity
|
Description
Type of Change