-
Notifications
You must be signed in to change notification settings - Fork 0
Feature/add debug mode #114
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds a debug mode banner feature that appears in debug builds (kDebugMode), providing developers with quick access to debugging utilities including language switching, theme toggling, and app reset functionality. Additionally, the PR refactors the terms and conditions checkbox into a reusable TermsServicesCheck widget and includes various localization updates.
Key Changes
- Added a debug banner that wraps authenticated and unauthenticated routes in debug mode with controls for language, theme, and app reset
- Extracted terms of service checkbox into a reusable
TermsServicesCheckwidget used in both login and signup forms - Implemented
deepClean()method in the repository layer to clear all app preferences and a correspondingresetApp()method inAppCubit
Reviewed Changes
Copilot reviewed 14 out of 16 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| app/lib/presentation/ui/pages/debug_banner.dart | New debug banner widget with controls for language, theme, and reset functionality |
| app/lib/presentation/ui/custom/terms_services_check.dart | Extracted reusable widget for terms and conditions acceptance |
| app/lib/presentation/ui/pages/auth/sign_up/sign_up_form.dart | Refactored to use new TermsServicesCheck widget |
| app/lib/presentation/ui/pages/auth/login/login_form.dart | Refactored to use new TermsServicesCheck widget |
| app/lib/presentation/ui/custom/app_theme_switch.dart | Enhanced with icon and reformatted code |
| app/lib/presentation/ui/pages/main/home/home_view.dart | Removed theme switch (moved to debug banner) |
| app/lib/presentation/navigation/routers.dart | Integrated debug banner in shell routes for both auth and app flows |
| modules/domain/lib/repositories/common_repository.dart | Added deepClean() method signature |
| modules/domain/lib/bloc/app/app_cubit.dart | Implemented resetApp() method to reset app state |
| modules/data/lib/repositories/common_repository_impl.dart | Implemented deepClean() to clear preferences |
| app/lib/presentation/themes/local_theme.dart | Added dialog theme configuration |
| app/lib/main/app.dart | Added imports and disabled debug banner in MaterialApp |
| app/lib/presentation/resources/locale/intl_en.arb | Added English debug mode translations |
| app/lib/presentation/resources/locale/intl_es.arb | Added Spanish debug mode translations |
| app/lib/presentation/resources/locale/generated/l10n.dart | Generated localization methods for debug mode strings |
| app/lib/presentation/resources/locale/generated/intl/messages_en.dart | Generated English message lookups for debug mode |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Description
Screen.Recording.2025-11-18.at.6.58.57.PM.mov