Commit Graph

57 Commits

Author SHA1 Message Date
1d09e20ac8 fix: resolve duplicate fields in Shift and unreachable code in ShiftsRepositoryImpl from bad merge 2026-02-20 21:15:57 +05:30
f7284b5cfb Merge branch 'dev' into feature/session-persistence-424 2026-02-20 20:56:18 +05:30
Achintha Isuru
bfc2453363 Merge pull request #444 from Oloodi/staff_recurring_permanent_order
Staff recurring permanent order
2026-02-20 10:18:03 -05:00
474be43448 fix: add ignore_for_file to data connect Repos and modify CI to avoid analyzing deleted files 2026-02-20 19:51:44 +05:30
8849bf2273 feat: architecture overhaul, launchpad-style reports, and uber-style locations
- Strengthened Buffer Layer architecture to decouple Data Connect from Domain
- Rewired Coverage, Performance, and Forecast reports to match Launchpad logic
- Implemented Uber-style Preferred Locations search using Google Places API
- Added session recovery logic to prevent crashes on app restart
- Synchronized backend schemas & SDK for ShiftStatus enums
- Fixed various build/compilation errors and localization duplicates
2026-02-20 17:20:06 +05:30
9e9eb0f374 finalcommitform4 2026-02-19 16:09:54 +05:30
da8f9a4436 chore: restore stashed work - new order usecases and domain entities 2026-02-19 13:56:35 +05:30
José Salazar
8b6061cb30 correction of change view for recurring and permant - show permanet and recurring in find shift 2026-02-18 19:23:15 -05:00
José Salazar
bb8c5733ba Merge pull request #434 from Oloodi/recreate_validation
recurring + permanent order
2026-02-18 14:38:35 -05:00
José Salazar
75e534620d permanent order v1 2026-02-17 18:59:31 -05:00
José Salazar
85c8a09d9e first version of recurring order 2026-02-17 16:24:59 -05:00
Achintha Isuru
9e1af17328 feat: Refactor bank account handling in billing and staff modules
- Introduced new bank account entities: BusinessBankAccount and StaffBankAccount.
- Updated bank account adapter to handle new entities.
- Removed legacy BankAccount entity and its adapter.
- Implemented use case for fetching bank accounts in billing repository.
- Updated BillingBloc and BillingState to include bank accounts.
- Refactored PaymentMethodCard to display bank account information.
- Adjusted actions widget layout for better UI consistency.
- Updated staff bank account repository and use cases to utilize new entity structure.
- Ensured all references to bank accounts in the codebase are updated to the new structure.
2026-02-17 12:05:24 -05:00
Achintha Isuru
9b6cad3bde feat(breaks): Implement break functionality with Break entity and adapter 2026-02-16 13:26:04 -05:00
José Salazar
761d718ffe deleting files with accepeted status of application 2026-02-10 12:11:25 -05:00
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
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
b1ad6f118a checkin status v1, working"
"
2026-02-02 21:32:22 +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
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
6277b9f5e2 changes 2026-02-01 22:39:40 +09:00
Achintha Isuru
0794c5b4a4 Merge branch 'dev' into 312-feature-integrate-google-maps-places-autocomplete-for-hub-address-validation 2026-02-01 01:42:41 -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
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
Achintha Isuru
e85912b6cf feat: update shift repository implementation and add shift adapter 2026-01-30 17:53:28 -05:00
Achintha Isuru
452f029108 feat: integrate payment summary and adapter for staff earnings management 2026-01-30 17:37:08 -05:00
Achintha Isuru
1268da45b0 feat: integrate Clock In functionality with Firebase support and refactor attendance management 2026-01-30 17:22:51 -05:00
Achintha Isuru
0b763bae44 feat: integrate availability adapter and repository implementation for staff availability management 2026-01-30 16:04:05 -05:00
Achintha Isuru
4fb2f17ea5 feat: integrate TimeCard feature with Firebase support and restructure related components 2026-01-30 15:29:19 -05:00
José Salazar
02b0790ec3 saving name of the orders 2026-01-29 17:10:26 -05:00
José Salazar
191ba40393 modifications for hub in create one time order 2026-01-29 16:08:44 -05:00
Achintha Isuru
8040803f66 feat: implement I-9 and W-4 tax form handling with dedicated use cases and mappers 2026-01-28 15:40:39 -05:00
Achintha Isuru
078f828aad feat: introduce TaxForm entity and adapter, refactor tax forms repository and use cases for improved data handling 2026-01-27 16:25:47 -05:00
Achintha Isuru
35c0b19d6b feat: implement BankAccountAdapter for mapping data layer values to domain entity and refactor BankAccountRepositoryImpl for improved staff ID handling 2026-01-27 15:43:21 -05:00
Achintha Isuru
1870be4cb8 fix: update ExperienceAdapter to ensure consistent return type and improve null handling 2026-01-27 15:17:58 -05:00
Achintha Isuru
93779c21bb feat: enhance experience management by introducing ExperienceSkill and Industry enums, refactoring related components 2026-01-27 14:34:09 -05:00
Achintha Isuru
157ace0e77 feat: implement ExperienceAdapter and update ExperienceRepositoryImpl to use Data Connect and FirebaseAuth 2026-01-27 13:49:23 -05:00
Achintha Isuru
70f350d216 refactor: streamline emergency contact management by removing unused extensions and optimizing BLoC initialization 2026-01-27 12:38:21 -05:00
Achintha Isuru
450683c45c feat: implement emergency contact management with Firebase integration and relationship type handling 2026-01-27 12:27:22 -05:00
Achintha Isuru
536b020c52 feat: update preferredLocations field to List<String> across staff-related entities and mutations
- Changed preferredLocations from AnyValue to List<String> in GetStaffByIdStaff, GetStaffByUserIdStaffs, ListStaffStaffs, and UpdateStaffVariablesBuilder classes.
- Updated JSON serialization/deserialization for preferredLocations to handle List<String>.
- Modified Staff entity to include preferredLocations as List<String>.
- Adjusted ProfileSetupBloc and PersonalInfoBloc to accommodate changes in preferredLocations.
- Updated PersonalInfoRepositoryImpl to handle preferredLocations as List<String>.
- Refactored PersonalInfoContent and PersonalInfoForm to use locations instead of address.
- Updated GraphQL mutations and schema to reflect the new List<String> type for preferredLocations.
2026-01-27 02:17:52 -05:00
Achintha Isuru
fbebc22ad4 Merge pull request #293 from Oloodi/billing_screen
Billing screen
2026-01-26 19:00:28 -05:00
José Salazar
57ea214871 invoices history ready 2026-01-26 18:23:52 -05:00
Achintha Isuru
f4ac292c14 Enhance staff profile management by updating data structures and repository implementation
- Added new fields to the Staff entity for better profile details.
- Updated ProfileRepositoryImpl to fetch staff profiles using a connector.
- Refactored GetProfileUseCase to map staff data to UI entities.
- Improved dependency injection in StaffProfileModule.
- Cleaned up unused mock data references and streamlined profile page logic.
2026-01-26 18:03:16 -05:00
Achintha Isuru
2a820b3e4f feat: Implement staff availability feature with BLoC architecture
- Created AvailabilityPage with UI for managing staff availability.
- Integrated BLoC for state management, including LoadAvailability and ToggleDayStatus events.
- Added quick set options for availability (All Week, Weekdays, Weekends, Clear All).
- Implemented week navigation and day selection with visual feedback.
- Developed time slot management for each day, allowing toggling of availability.
- Established StaffAvailabilityModule for dependency injection and routing.
- Updated pubspec.yaml with necessary dependencies for the feature.
2026-01-25 22:35:09 -05:00
José Salazar
b41943a53c adding missing vendor line 2026-01-25 17:32:40 -05:00
Achintha Isuru
7c9252e0c3 Merge branch '208-p0-auth-05-get-started-screen' of https://github.com/Oloodi/krow-workforce into 208-p0-auth-05-get-started-screen 2026-01-25 17:01:38 -05:00
Achintha Isuru
8e429dda03 feat: add ShiftAssignmentCard widget and StaffShifts module
- Implemented ShiftAssignmentCard widget for displaying shift assignments with client details, pay calculation, and confirmation actions.
- Created StaffShiftsModule to manage dependencies, routes, and use cases related to staff shifts.
- Added necessary dependencies in pubspec.yaml and generated pubspec.lock.
2026-01-25 16:09:11 -05:00
José Salazar
a9a64caff6 reoder view working 2026-01-25 16:06:07 -05:00
José Salazar
bda0b441e9 update and correction of create order 2026-01-25 14:22:54 -05:00
Achintha Isuru
533a545da7 feat: add staff attire management feature
- Introduced localization for staff attire in English and Spanish.
- Created AttireItem entity to represent attire items.
- Implemented StaffAttireModule with repository, use cases, and BLoC for state management.
- Developed UI components including AttirePage, AttireGrid, AttireInfoCard, AttestationCheckbox, and AttireBottomBar.
- Added navigation for attire management and integrated with existing staff profile flow.
- Implemented functionality for selecting attire items, uploading photos, and saving selections with validation.
2026-01-25 12:23:28 -05:00
Achintha Isuru
753a93c24a feat: add staff documents feature with document card and progress card
- Implemented DocumentCard widget to display individual staff documents with status and actions.
- Created DocumentsProgressCard widget to show overall verification progress of documents.
- Established StaffDocumentsModule for dependency injection and routing to documents page.
- Updated pubspec.yaml and pubspec.lock for new dependencies and configurations.
2026-01-25 02:19:30 -05:00