Commit Graph

166 Commits

Author SHA1 Message Date
5e7bf0d5c0 refactor: centralize data connect error handling and resolve build issues across applications
This commit addresses several critical issues across the mobile monorepo:

1. Centralized Error Handling: Integrated DataErrorHandler mixin into all repository implementations, ensuring consistent mapping of Data Connect exceptions to domain AppExceptions.
2. Build Stabilization: Fixed numerous type mismatches, parameter signature errors in widgets (e.g., google_places_flutter itemBuilder), and naming conflicts (StaffSession, FirebaseAuth).
3. Code Quality: Applied 'dart fix' across all modified packages and manually cleared debug print statements and UI clutter.
4. Mono-repo alignment: Standardized Data Connect usage and aliasing ('dc.') for better maintainability.

Signed-off-by: Suriya <suriya@tenext.in>
2026-02-06 13:28:57 +05:30
3924801f70 feat(mobile): implement centralized error handling and project cleanup
- Implemented centralized error handling system (#377)
- Unified UIErrorSnackbar and BlocErrorHandler mixin
- Migrated ClientAuthBloc and ClientHubsBloc
- Consolidated documentation
- Addresses Mobile Apps: Project Cleanup (#378)
2026-02-05 15:35:35 +05:30
Achintha Isuru
3b11c49d90 Refactor navigation and remove unused navigator extensions across staff features
- Removed background color from CreateOrderView, OneTimeOrderView, and RapidOrderView.
- Updated navigation paths in OneTimeOrderView and other staff authentication pages to use new constants.
- Deleted unused navigator extensions for staff authentication, home, profile, and shifts.
- Refactored navigation in StaffMainModule to use new path constants.
- Cleaned up imports and adjusted navigation calls in various staff-related pages and widgets.
2026-02-04 18:22:39 -05:00
Achintha Isuru
b5c3af580c refactor: enhance child route management in ClientPaths and StaffPaths; ensure proper handling of empty child paths 2026-02-04 17:58:37 -05:00
Achintha Isuru
fa6fa90bb8 feat: implement child route management for client and staff modules; enhance routing structure for better navigation 2026-02-04 17:13:55 -05:00
Achintha Isuru
bb09925668 feat: update client routing paths for order creation; streamline navigation and remove deprecated routes 2026-02-04 17:04:03 -05:00
Achintha Isuru
c05261ddd7 feat: address missing features and bugs identified during Milestone 3 demo; improve localization, error handling, and navigation 2026-02-04 16:45:16 -05:00
Achintha Isuru
9f48ed40d7 Use krow_core routes; remove navigator
Replace the local navigation extension with centralized helpers from krow_core: add krow_core dependency and imports, remove src/presentation/navigation/client_auth_navigator.dart and its export, and update Module routes to use ClientPaths constants. Update page callbacks to use Modular.to.toClientSignIn/toClientSignUp/toClientHome instead of the old push/navigate extension and replace hard-coded route strings with ClientPaths. This centralizes route definitions and removes duplicated navigation logic.
2026-02-04 16:27:44 -05:00
Achintha Isuru
c63ea40ce9 feat: Combine logic of count calculations in ViewOrdersCubit and update date handling for order filtering 2026-02-04 09:04:11 -05:00
Achintha Isuru
ad48d47ded feat: Update NEXT_SPRINT_TASKS with new tasks and modify ViewOrdersCubit to remove debug print statements 2026-02-04 09:01:05 -05:00
Achintha Isuru
a86a5d9e77 feat: Update NEXT_SPRINT_TASKS with new tasks and modify ViewOrdersCubit to handle null selectedDate 2026-02-04 08:51:34 -05:00
Achintha Isuru
e3268d4722 refactor: Replace HubsConstants.googlePlacesApiKey with AppConfig.googlePlacesApiKey for better configuration management 2026-02-04 08:47:43 -05:00
1ba83e3ea6 feat: Implement Google Places Autocomplete for Staff Location
- Implemented strictly filtered Google Places Autocomplete (cities only) for Staff Profile Setup.
- Centralized Google Places API Key configuration in Core AppConfig.
- Updated Client Hubs to use the centralized AppConfig.
- Verified ViewOrdersCubit logic for weekly order summaries.
2026-02-04 12:30:54 +05:30
Achintha Isuru
2083b5dbff refactor: replace Navigator with Modular for dialog dismissal in client hubs and settings actions 2026-02-03 22:59:00 -05:00
José Salazar
90bacf6695 adding dialog box before delete a hub 2026-02-04 11:16:54 +09:00
Achintha Isuru
c2cb0bd82a Enhance Makefile help output with improved formatting and additional commands; update NEXT_SPRINT_TASKS with new improvement points; fix location fallback logic in CoverageRepositoryImpl 2026-02-03 12:15:57 -05:00
Achintha Isuru
81a9e2cfb0 feat: update coverage display logic to show status only when applicable 2026-02-02 21:55:33 -05:00
Achintha Isuru
2f6ad5578e fix: update version to 0.0.1-M3+2 and adjust divider height in ClientHomePage 2026-02-02 21:45:53 -05:00
José Salazar
8cc20a09ff Merge branch '312-feature-integrate-google-maps-places-autocomplete-for-hub-address-validation' into fix_staff_app_bugs 2026-02-02 22:33:10 +09:00
José Salazar
818fc1759a solving problem adding checkin time 2026-02-02 20:45:12 +09:00
Achintha Isuru
476d697dc3 feat: Integrate ShiftAdapter for mapping application data to Shift entities and update status handling in Coverage and Shifts repositories 2026-02-01 22:18:07 -05:00
Achintha Isuru
3489ae4060 feat: Add checkCircle icon and update ViewOrderCard and ViewOrdersHeader for improved date handling and UI feedback 2026-02-01 21:23:58 -05:00
Achintha Isuru
e7d5c29c00 feat: Integrate ViewOrdersHeader and ViewOrdersFilterTab components for improved UI in ViewOrdersPage 2026-02-01 21:14:01 -05:00
Achintha Isuru
82e479b4c0 feat: Add spacing between invoice history and spending breakdown card in billing view 2026-02-01 21:07:15 -05:00
Achintha Isuru
08b96cea6f feat: Introduce CoverageWorker entity and update coverage repository
- Added CoverageWorker entity to represent worker status and check-in information.
- Updated CoverageRepositoryImpl to utilize CoverageWorker and its status.
- Removed legacy coverage_entities.dart file and replaced references with krow_domain imports.
- Enhanced coverage statistics calculations based on new worker status logic.
- Updated UI components to reflect changes in worker status representation.
- Modified acceptance of shifts to align with new status definitions.
- Cleaned up QA testing checklist to remove outdated items and clarify requirements.
2026-02-01 21:05:14 -05:00
Achintha Isuru
109ed5375d Refactor UI components: update button size to large and adjust profile header margin 2026-02-01 20:28:29 -05:00
Achintha Isuru
5c15db1695 Integrate Google Maps Places Autocomplete for hub address validation and enhance UI button styles 2026-02-01 20:22:14 -05:00
Achintha Isuru
9f8b60d571 feat: Update application status handling and improve build configuration
- Added handling for the COMPLETED application status in the CoverageRepositoryImpl to return 'confirmed'.
- Updated mobile client build and run commands in the makefile to include `--dart-define-from-file=../../config.dev.json` for better configuration management.
2026-02-01 13:20:24 -05:00
Achintha Isuru
4b5a3d1304 feat: Refactor imports and enhance navigation for shift details in staff home feature 2026-02-01 02:06:28 -05:00
bwnyasse
caac050ac9 feat(core_localization): add error translation utility and new error messages
feat(client_auth): implement error handling with localized messages
feat(client_hubs): implement error handling with localized messages
feat(client_billing): navigate to home after billing
feat(client_coverage): navigate to home after coverage
feat(client_create_order): navigate to home after create order
feat(client_settings): navigate to home after settings
feat(client_view_orders): show hub name in order card
fix(client_auth): handle existing firebase accounts during sign-up

This commit introduces a new utility function, `translateErrorKey`,
to translate error message keys to localized strings. It also adds
new error messages to the localization files for both English and
Spanish.

The commit also implements error handling with localized messages in
the client authentication and hubs features. This makes it easier for
users to understand what went wrong and how to fix it.

Additionally, the commit updates the navigation flow for the billing,
coverage, create order, and settings features to navigate to the home
page after the user completes the action.

Finally, the commit fixes a bug where the hub name was not being
displayed in the order card.
2026-01-31 18:56:48 -05:00
José Salazar
7ebe3c33f8 filled problem solved 2026-01-30 22:05:02 -05:00
Achintha Isuru
cbc9166aba refactor: remove mock financial repository from BillingModule bindings 2026-01-30 17:57:57 -05:00
Achintha Isuru
1806096f23 Merge branch '312-feature-integrate-google-maps-places-autocomplete-for-hub-address-validation' of https://github.com/Oloodi/krow-workforce into 312-feature-integrate-google-maps-places-autocomplete-for-hub-address-validation 2026-01-30 10:47:24 -05:00
Achintha Isuru
3bb0f22524 refactor: update navigation method in CreateOrderView and ViewOrdersNavigator for improved routing 2026-01-30 10:47:00 -05:00
José Salazar
0c06ca18bf validation user role 2026-01-30 09:08:44 -05:00
Achintha Isuru
fad1b2dc69 refactor: enhance date handling and cubit initialization in ViewOrders components 2026-01-30 02:52:20 -05:00
Achintha Isuru
2531e7b29e refactor: update navigation method in OneTimeOrderView and adjust dependency injection in ViewOrdersModule 2026-01-30 02:41:01 -05:00
Achintha Isuru
0f9b39e750 refactor: conditionally render the create order button based on filtered orders state 2026-01-30 02:18:03 -05:00
Achintha Isuru
d07183b6ac refactor: enhance widget visibility logic and improve UI consistency across multiple components 2026-01-30 02:12:29 -05:00
Achintha Isuru
ed71d2b4a3 refactor: add optional subtitle to various widgets for enhanced context 2026-01-30 01:59:41 -05:00
Achintha Isuru
1e8d6ae65b refactor: update CoveragePage layout to use fixed height for shift list spacing 2026-01-30 01:36:19 -05:00
Achintha Isuru
dd5b58b7bc refactor: enhance invoice display logic and add empty state in BillingView 2026-01-30 01:34:21 -05:00
Achintha Isuru
d38cb07326 refactor: optimize layout spacing in BillingView for improved UI consistency 2026-01-30 00:43:07 -05:00
Achintha Isuru
4fce8f9a57 refactor: convert BillingView to StatefulWidget and implement scroll listener for dynamic UI updates 2026-01-30 00:40:19 -05:00
Achintha Isuru
bfe00a700a refactor: update CoveragePage to use StatefulWidget and implement scroll listener 2026-01-30 00:24:12 -05:00
José Salazar
1e505c806a hidding collapse and showing start rate of staff 2026-01-30 00:00:44 -05:00
José Salazar
bc44153458 status of staff 2026-01-29 23:51:08 -05:00
José Salazar
8c813b403e calling number 2026-01-29 23:45:52 -05:00
José Salazar
24eabc3192 hiding staff data 2026-01-29 23:42:20 -05:00
José Salazar
3d82f4d4d4 fixing numbers workers by shift 2026-01-29 22:59:39 -05:00