-
Notifications
You must be signed in to change notification settings - Fork 39
Dev #11
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
…dular architecture - Updated README.md to reflect the new mobile app features, requirements, and setup instructions. - Modified android/app/google-services.json for updated project configuration. - Implemented Google Sign-In in auth_bloc.dart, replacing traditional login method. - Updated crm_services.dart to handle Google login requests with JWT token exchange. - Refactored login.dart to streamline the login process and improve UI/UX. - Added api_config.dart for environment-based API URL management. - Updated pubspec.yaml to include google_sign_in package dependency. - Revised widget tests to validate Google login functionality. - Created CLAUDE.md for project guidelines and architecture overview.
…ance Google login response handling and logging
…se handling; enhance organization role display
… improve name parsing
- Implemented OrganizationSelectionScreen for users to select their organization. - Created DashboardController to manage dashboard state and data loading. - Developed ModernDashboardScreen to display dashboard content with responsive layouts. - Introduced DashboardState classes to handle different states of the dashboard. - Updated utils to remove unnecessary profile data fetching after login. - Enhanced error handling and loading states across dashboard components.
…figuration settings
- Introduced CMake configuration for Windows Flutter application in `CMakeLists.txt`. - Created `generated_plugin_registrant` files for plugin registration. - Implemented the main application entry point in `main.cpp` and window management in `flutter_window.cpp` and `win32_window.cpp`. - Added resource files including application icon and manifest for Windows compatibility. - Established utility functions for console management and command line argument handling. - Ensured proper DPI scaling and theme support for the application window. - Set up build dependencies and linked necessary libraries for Flutter integration.
Caution Review failedThe pull request is closed. WalkthroughThis update introduces a major architectural overhaul of the BottleCRM Flutter app. The legacy BLoC-based state management and hand-written model classes are removed. In their place, a new, service-oriented architecture is established, featuring centralized API configuration, generic API response handling, and type-safe domain models. The UI is refactored with new screens for authentication, dashboard, CRUD operations, and responsive layouts. Extensive documentation, linting, and configuration updates accompany the code changes, and platform-specific build and project files are modernized and streamlined. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant LoginScreen
participant AuthService
participant ApiService
participant DashboardScreen
participant ContactsService
User->>LoginScreen: Tap "Sign in with Google"
LoginScreen->>AuthService: signInWithGoogle()
AuthService->>ApiService: Exchange Google token for JWT
ApiService-->>AuthService: JWT + user/org data
AuthService-->>LoginScreen: Auth result
LoginScreen->>DashboardScreen: Navigate on success
User->>DashboardScreen: Select "Contacts"
DashboardScreen->>ContactsService: getContacts()
ContactsService->>ApiService: GET /contacts
ApiService-->>ContactsService: List<Contact>
ContactsService-->>DashboardScreen: ContactsResponse
DashboardScreen-->>User: Show contacts list
Estimated code review effort🎯 5 (Critical) | ⏱️ ~90+ minutes Poem
Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. ✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Summary by CodeRabbit
New Features
Bug Fixes
Documentation
Refactor
Chores
Tests