Skip to content

Conversation

@amaury901130
Copy link
Collaborator

Description

  • Add debug mode banner.
Screen.Recording.2025-11-18.at.6.58.57.PM.mov

Copy link

Copilot AI left a 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 TermsServicesCheck widget used in both login and signup forms
  • Implemented deepClean() method in the repository layer to clear all app preferences and a corresponding resetApp() method in AppCubit

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.

@amaury901130 amaury901130 merged commit dff57df into main Nov 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants