Commit Graph

153 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
Achintha Isuru
ccf8930126 Use StaffPaths and core imports across staff modules
Centralize and standardize routing by introducing StaffPaths constants (shiftDetailsRoute, formI9, formW4) and using StaffPaths.childRoute in multiple staff feature modules instead of hardcoded paths. Add package:krow_core/core.dart imports where needed, clean up minor formatting/constructor spacing, make some route callbacks explicitly typed, replace shiftDetails string interpolation with the new constant, and remove a debug print from phone verification. These changes unify route definitions and add explicit tax-form routes (I-9 and W-4).
2026-02-04 18:36:37 -05:00
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
e5e0b6e7bb feat: Add error message field to ProfileSetupState and update ProfileSetupLocation widget imports 2026-02-04 09:11:21 -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
José Salazar
91e14a258e adding redirection if user already has a staff 2026-02-04 15:21:13 +09:00
José Salazar
467d936c5b solving problem with login loop and sending code time 2026-02-04 14:10:02 +09:00
José Salazar
0c44ec4a39 fixing bug of count my shift 2026-02-04 10:44:07 +09:00
José Salazar
cf2433774d solving problem to move to search from home 2026-02-04 10:37:12 +09:00
Achintha Isuru
065af4fd7f Integrate Google Maps Places Autocomplete for hub address validation; update demo plan and Firebase configurations 2026-02-03 12:59:44 -05:00
José Salazar
306994a223 solving problem with taxForm 2026-02-04 00:41:53 +09:00
José Salazar
470749501b solving problems of the seed 2026-02-04 00:12:05 +09:00
Achintha Isuru
8c1e67cf00 feat: enhance date parsing for shift start time in CommuteTracker 2026-02-02 15:30:15 -05:00
Achintha Isuru
ee49eb931a feat: integrate query parameters for initial tab selection in ShiftsPage 2026-02-02 14:23:11 -05:00
Achintha Isuru
5625e353c8 feat: update navigation paths for worker profile and shifts in HomeNavigator 2026-02-02 13:58:12 -05:00
Achintha Isuru
94ad1d66fb fix: update SDK constraints to ensure compatibility across multiple pubspec files 2026-02-02 10:30:50 -05:00
José Salazar
304f827341 changing a way of search my shifts 2026-02-02 23:07:25 +09: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
78a57df67b fixing bug of search 2026-02-02 22:21:58 +09:00
José Salazar
0ab6bf8470 prints 2026-02-02 22:05:29 +09:00
José Salazar
33ad8e2f17 check in status solved 2026-02-02 21:46:12 +09:00
José Salazar
b1ad6f118a checkin status v1, working"
"
2026-02-02 21:32:22 +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
6d0d7dcbd2 feat: Refactor PhoneInput to use StatefulWidget and improve phone number handling 2026-02-01 21:45:40 -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
José Salazar
d951b0a95d chaging id for application 2026-02-02 08:30:56 +09:00
José Salazar
279544930c solving bugs in check in 2026-02-02 08:25:13 +09:00
José Salazar
b7b7709386 history ready 2026-02-02 07:26:07 +09:00
José Salazar
761830b380 adding validations for apply 2026-02-02 07:14:54 +09:00
José Salazar
136993caec converting and desconverting all dates to utc 2026-02-02 06:22:05 +09:00
José Salazar
a2020f9f98 little advance and corrections 2026-02-02 06:00:39 +09:00
Achintha Isuru
4830d72d48 feat: Update test phone numbers for authentication flow 2026-02-01 14:07:04 -05:00
Achintha Isuru
23a346200a feat: Integrate phone number verification handling for test numbers in authentication flow 2026-02-01 14:06:02 -05:00
Achintha Isuru
6d70bcc5d0 feat: update shift action buttons to conditionally display decline and book options based on shift status 2026-02-01 12:54:50 -05:00
Achintha Isuru
54f28a85ce feat: enhance shift booking flow with date selection and navigation updates 2026-02-01 12:35:42 -05:00
Achintha Isuru
5d561ff825 refactor: improve code readability and formatting in shifts repository and shift details page 2026-02-01 12:25:45 -05:00
Achintha Isuru
989a1d3f84 refactor: update spacing in Find, History, and My Shifts tabs for consistency 2026-02-01 12:06:35 -05:00
Achintha Isuru
1a7e06d8cc refactor: update navigation methods in ShiftDetailsPage for improved user experience 2026-02-01 12:04:41 -05:00
Achintha Isuru
1bc308d90f feat: integrate Google Maps Places autocomplete for hub address validation and remove activity log functionality 2026-02-01 11:57:57 -05:00
Achintha Isuru
0dfe7a4e6d refactor: streamline date conversion logic in repository implementations 2026-02-01 11:28:50 -05:00
José Salazar
6277b9f5e2 changes 2026-02-01 22:39:40 +09:00
Achintha Isuru
1625f81ce6 feat: Integrate profile setup use case and repository for profile submission 2026-02-01 03:47:39 -05:00
Achintha Isuru
56dbf7728f feat: Enhance shift filtering logic and update header text style for improved UI 2026-02-01 02:46:30 -05:00
Achintha Isuru
3ed1add2cc feat: Integrate staff name retrieval and display in home header 2026-02-01 02:38:28 -05:00
Achintha Isuru
3ecc89fcb2 feat: Update Timestamp extension to use DateTimeUtils for improved date conversion 2026-02-01 02:24:39 -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
Achintha Isuru
820f475c51 feat: Add required and filled slots to Shift entity and update ShiftDetailsPage for capacity display 2026-01-31 21:48:42 -05:00
Achintha Isuru
144976de00 feat: Update roleId assignment and filter past shifts in ShiftsBloc 2026-01-31 21:04:08 -05:00
Achintha Isuru
0b38383aab feat: Add DateTimeUtils for converting UTC to device local time and update imports 2026-01-31 20:46:34 -05:00