Conversation
There was a problem hiding this comment.
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.
tarruk
approved these changes
Nov 19, 2025
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
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.
Description
Screen.Recording.2025-11-18.at.6.58.57.PM.mov