Commit Graph

73 Commits

Author SHA1 Message Date
Achintha Isuru
4d935cd80c feat: Implement language selection feature in staff profile onboarding 2026-02-19 15:45:24 -05:00
Achintha Isuru
8578723fb3 feat: Implement FAQs feature for staff application with updated routing and UI components 2026-02-18 23:21:26 -05:00
Achintha Isuru
316a010779 feat: Implement FAQs feature for staff application
- Created a modular package for Frequently Asked Questions (FAQs) functionality.
- Established Clean Architecture with Domain, Data, and Presentation layers.
- Implemented BLoC for state management with events and states.
- Developed search functionality with real-time filtering of FAQs.
- Designed an accordion UI for displaying FAQs by category.
- Added localization support for English and Spanish.
- Included comprehensive documentation and testing checklist.
- Integrated dependency injection for repositories and use cases.
- Configured routing for seamless navigation to FAQs page.
2026-02-18 22:21:18 -05:00
Achintha Isuru
11a9a7800c feat: Implement Privacy & Security Settings Module for Staff
- Add PrivacySettingsRepositoryImpl to handle backend communication for privacy settings.
- Create PrivacySettingsEntity to represent user privacy preferences.
- Define PrivacySettingsRepositoryInterface for repository operations.
- Implement use cases for fetching and updating profile visibility, terms of service, and privacy policy.
- Create PrivacyPolicyCubit and TermsCubit for managing legal document states.
- Develop PrivacySecurityBloc to manage privacy and security settings state.
- Create UI pages for Privacy Policy and Terms of Service with corresponding widgets.
- Implement PrivacySectionWidget and LegalSectionWidget for displaying privacy settings and legal documents.
- Add settings action tiles and section headers for better UI organization.
- Update pubspec.yaml with necessary dependencies and asset paths.
2026-02-18 20:58:49 -05:00
Achintha Isuru
3f3579067c feat: Implement profile visibility update feedback and localization updates 2026-02-18 16:30:22 -05:00
Achintha Isuru
6b43a570d6 Replace location sharing with profile visibility
Replace the previous location-sharing privacy model with a profile-visibility feature. Renamed localization keys (en/es) and updated UI widget text. Added repository methods to get/update profile visibility using Data Connect, wired new GraphQL query (getStaffProfileVisibility) and mutation (UpdateStaffProfileVisibility), and added corresponding use cases (GetProfileVisibilityUseCase, UpdateProfileVisibilityUseCase). Updated BLoC, events, and state to use boolean isProfileVisible instead of PrivacySettingsEntity and removed old location-sharing usecases/entities. Also updated module DI and public exports accordingly; asset loading for legal docs kept with minor error logging.
2026-02-18 16:16:49 -05:00
Achintha Isuru
cce1b75fc0 feat: Update asset paths for legal documents and adjust dependency injection in Privacy Security module 2026-02-18 14:53:24 -05:00
Achintha Isuru
abf50796fa feat: Implement legal sections for Terms of Service and Privacy Policy, including navigation and content loading 2026-02-18 14:40:38 -05:00
Achintha Isuru
369151ee29 feat: Implement privacy and legal sections in staff privacy settings page 2026-02-18 14:05:42 -05:00
Achintha Isuru
e05fe01a2d feat: Implement privacy and security feature in staff profile, including navigation and module setup 2026-02-18 13:56:44 -05:00
Achintha Isuru
96849baf46 Add staff privacy & security feature and routes 2026-02-18 13:40:49 -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
d2cb05fe2e fix: Update documentation to reflect correct backend communication via DataConnectService 2026-02-16 16:54:59 -05:00
Achintha Isuru
17423c5d66 feat: Refactor repositories to utilize DataConnectService and remove FirebaseAuth dependency 2026-02-16 16:54:20 -05:00
Achintha Isuru
3c5987bde4 feat(bank-account-repository): Refactor BankAccountRepositoryImpl to utilize DataConnectService and remove FirebaseAuth dependency 2026-02-16 16:43:00 -05:00
Achintha Isuru
8889b8876e feat(time-card-repository): Refactor TimeCardRepositoryImpl to utilize DataConnectService and simplify authentication handling 2026-02-16 16:35:26 -05:00
Achintha Isuru
24a13488da feat(certificates-documents-repositories): Refactor Certificates and Documents repositories to utilize DataConnectService and simplify dependency management 2026-02-16 16:27:09 -05:00
Achintha Isuru
572ade95b9 feat(tax-forms-repository): Refactor TaxFormsRepositoryImpl to simplify initialization and utilize DataConnectService for data operations 2026-02-16 16:22:14 -05:00
4e1a41ebff Fix build errors: localization syntax, key paths, and ViewOrderCard widget 2026-02-14 16:26:10 +05:30
Achintha Isuru
368f28f354 fix: compilation issues in the staff app 2026-02-12 16:29:14 -05:00
ad6db7d851 chore: refactor UI consistency using design system tokens and remove LucideIcons 2026-02-12 18:37:31 +05:30
c1112ac01c feat: Centralized Error Handling & Crash Fixes 2026-02-11 18:52:23 +05:30
ea06510474 Merge branch 'dev' into feature/centralized-data-error-handling and resolve conflicts 2026-02-11 12:34:29 +05:30
3e212220c7 feat: complete centralized error handling system with documentation 2026-02-11 10:36:08 +05:30
Achintha Isuru
4c38013c10 Standardize UI to design system tokens
Refactor multiple UI components to use design system tokens and primitives. Added new UiIcons (coffee, wifi, xCircle, ban) and typography color getters (primary, accent). Replaced hardcoded paddings, spacings, radii, borderRadius, and icon imports (lucide_icons -> UiIcons) with UiConstants, UiColors, UiTypography and UiIcons, and switched to UiColors.withValues for opacity. Changes apply across authentication, availability, clock_in (and its widgets), commute tracker, lunch break modal, location map placeholder, attendance card, date selector, and related presentation files to improve visual consistency.
2026-02-10 17:17:56 -05:00
7570ffa3b9 Fix: Resolve critical linting issues and bugs (concurrency, syntax, dead code) 2026-02-10 19:12:01 +05:30
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
José Salazar
306994a223 solving problem with taxForm 2026-02-04 00:41:53 +09:00
José Salazar
136993caec converting and desconverting all dates to utc 2026-02-02 06:22:05 +09:00
Achintha Isuru
4fb2f17ea5 feat: integrate TimeCard feature with Firebase support and restructure related components 2026-01-30 15:29:19 -05:00
Achintha Isuru
772d59a7dd feat: integrate bank account addition with user input for bank name and success notification 2026-01-30 14:59:53 -05:00
Achintha Isuru
4ccc838371 refactor: integrate email field with controller for dynamic updates in PersonalInfoForm 2026-01-30 14:47:35 -05:00
Achintha Isuru
8c8951ff51 fix: update package versions and dependencies across multiple pubspec.yaml files 2026-01-29 10:51:16 -05:00
Achintha Isuru
960aa9f003 chore: update pubspec files to include workspace resolution and remove unnecessary pubspec.lock 2026-01-28 23:17:17 -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
ec8fca7ef9 feat: enhance tax form handling by adding fields and initializing forms in cubits 2026-01-28 13:26:23 -05:00
Achintha Isuru
710421a832 Refactor code structure for improved readability and maintainability 2026-01-28 12:56:35 -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
c91155ee61 feat: add success and error feedback for experience submission in ExperiencePage 2026-01-27 15:13:24 -05:00
Achintha Isuru
47ecad5a63 feat: add new skills to localization files and update experience repository methods 2026-01-27 15:07:43 -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
8e7caeed48 Refactor staff data models to use List<String> for skills and industries
- Updated GetStaffByIdStaff, GetStaffByUserIdStaffs, ListStaffStaffs, and UpdateStaffVariablesBuilder classes to replace AnyValue with List<String> for skills and industries.
- Modified JSON serialization and deserialization logic accordingly.
- Adjusted ExperienceRepositoryImpl to handle List<String> for industries and skills.
- Updated GraphQL mutations and schema to reflect changes in data types for skills and industries.
2026-01-27 14:05:32 -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
2f5c736c20 feat: implement emergency contact management with BLoC, including event and state handling 2026-01-27 13:07:31 -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