Commit Graph

534 Commits

Author SHA1 Message Date
Achintha Isuru
0cfc19fa60 feat: Implement Staff Profile Info feature with onboarding capabilities
- Added StaffProfileInfoModule for managing personal information onboarding.
- Created PersonalInfoRepositoryImpl and PersonalInfoRepositoryMock for data handling.
- Developed use cases for fetching and updating staff profile information.
- Implemented PersonalInfoBloc for state management using BLoC pattern.
- Designed UI components including PersonalInfoPage, PersonalInfoContent, and form widgets.
- Integrated navigation for onboarding steps and added necessary routes.
- Updated pubspec.yaml files to include new dependencies and feature packages.
2026-01-24 19:28:14 -05:00
Achintha Isuru
5039743c03 Revert "feat: Add placeholder for unimplemented features in Get Started, Home, and Profile modules"
This reverts commit 8f8c6ff2d2.
2026-01-24 15:36:09 -05:00
Achintha Isuru
8f8c6ff2d2 feat: Add placeholder for unimplemented features in Get Started, Home, and Profile modules
feat: Add placeholder for Rapid Order success view and comment out Rapid action card
2026-01-24 15:35:11 -05:00
Achintha Isuru
a38afb1940 feat: Refactor Staff Profile page to use ProfileCubit and improve loading logic 2026-01-24 14:46:35 -05:00
Achintha Isuru
96ab07b58d feat: Add localization for staff main tabs and enhance profile UI components 2026-01-24 14:38:06 -05:00
Achintha Isuru
6c72c2d9fd feat: Implement Staff Profile feature with BLoC architecture
- Added ProfileRepositoryInterface for staff profile operations.
- Created StaffProfileUI to represent extended profile information for the UI.
- Developed GetProfileUseCase to fetch staff profiles and map to UI entities.
- Implemented SignOutUseCase for user sign-out functionality.
- Introduced ProfileCubit to manage profile state and loading logic.
- Created ProfileState to represent various states of the profile feature.
- Developed ProfileNavigator for type-safe navigation within the profile feature.
- Built StaffProfilePage to display staff member's profile and statistics.
- Added various widgets for profile display, including reliability stats and menu items.
- Established StaffProfileModule for dependency injection and routing.
- Configured pubspec.yaml for feature package dependencies.
2026-01-24 14:25:17 -05:00
Achintha Isuru
633af6fab0 feat: enhance staff home page with new widgets and improved UI consistency 2026-01-24 13:26:44 -05:00
Achintha Isuru
bcd3a9d670 refactor: replace model with entity for shift and update imports 2026-01-24 12:58:21 -05:00
Achintha Isuru
67749ba1a8 refactor(staff_home): refactor worker home page
- Extracted widgets to smaller components in presentation/widgets/home_page
- Converted WorkerHomePage to StatelessWidget
- Moved local state (autoMatchEnabled) to HomeCubit
- Improved code organization and readability
2026-01-24 12:34:56 -05:00
Achintha Isuru
7cea81e99e fix(routes): update worker home route to worker main
feat(localization): add benefits and auto-match sections in English and Spanish
fix(staff_main): handle route changes safely in StaffMainCubit
2026-01-24 12:30:53 -05:00
Achintha Isuru
e2e7ad5567 fix(navigation): ensure default route loads content
- Updated AuthNavigator to push /worker-main/home/ explicitly
- Updated StaffMainNavigator to navigate to home by default
- Fixes blank screen issue by ensuring RouterOutlet has a child route
2026-01-24 12:26:50 -05:00
Achintha Isuru
b16d0733de fix(staff): resolve dependency injection and navigation issues
- Registered HomeRepository in StaffHomeModule to fix UnregisteredInstance error
- Updated WorkerHomePage to use Modular DI for HomeCubit
- Added trailing slash to home navigation to resolve Modular warning
2026-01-24 12:23:15 -05:00
Achintha Isuru
5c82ea0483 fix(staff_home): fix compilation errors
- Removed flutter_riverpod dependency and usage
- Removed go_router dependency and usage (replaced with Modular)
- Fixed syntax errors in WorkerHomePage
- Updated dependencies (google_fonts, intl)
- Fixed undefined identifier errors by moving localization access
- Removed unused methods in ShiftCard
2026-01-24 12:19:32 -05:00
Achintha Isuru
13265d844e feat(staff): integrate staff_home feature
- Created staff_main package with module, bloc, and pages
- Integrated staff_home into staff_main
- Updated route constants to use /worker-main
- Fixed intl version conflict
2026-01-24 12:11:25 -05:00
Achintha Isuru
faa2b2b0a6 fix(staff): align worker home route paths
- Updated staff_main modulePath to /worker-home
- Updated main.dart to mount staff_main at /worker-home
- Fixes RouteNotFoundException when navigating from auth
2026-01-24 12:00:41 -05:00
Achintha Isuru
24da0a4d04 refactor(staff_main): enforce strict architecture and clean code
- Added StaffMainRoutes constants to avoid magic strings
- Enhanced StaffMainNavigator with typed tab navigation
- Updated StaffMainCubit to use typed navigation
- Updated StaffMainModule to use route constants
2026-01-24 11:48:40 -05:00
Achintha Isuru
cdc0344280 feat(staff): implement staff home screen shell (staff_main)
- Created staff_main package structure
- Implemented StaffMainPage, StaffMainBottomBar, StaffMainCubit
- Added localization for staff_main tabs
- Added typed navigation extension
- Registered package in workspace
2026-01-24 11:43:09 -05:00
Achintha Isuru
084ef8b025 refactor: simplify FirebaseAuth and dataConnect usage for clarity and consistency 2026-01-24 10:35:20 -05:00
Achintha Isuru
2e54014501 refactor: reorder field declarations for improved readability and add explicit type parameters 2026-01-24 10:11:00 -05:00
Achintha Isuru
e95b9a0b36 refactor: update import paths for consistency and clarity across multiple files 2026-01-24 10:07:22 -05:00
Achintha Isuru
4ea9bd95f8 Update pubspec.yaml 2026-01-24 10:02:06 -05:00
Achintha Isuru
f57f41c508 Add explicit types and improve type safety across codebase
This commit adds explicit type annotations to variables, function parameters, and return types throughout the codebase, particularly in widget trees, Bloc logic, and repository implementations. The changes improve code readability, maintainability, and type safety, and align with Dart best practices. No business logic was changed.
2026-01-24 10:00:36 -05:00
José Salazar
ff93bfa4bd Merge pull request #289 from Oloodi/view_orders
view shits of ordes by date
2026-01-23 21:15:35 -05:00
José Salazar
afba0e64df view shits of ordes by date 2026-01-23 20:43:18 -05:00
Achintha Isuru
9614f191e5 feat(client_home): remove 'reorder' widget from initial state and visibility 2026-01-23 17:45:06 -05:00
Achintha Isuru
1aae3c2733 feat(client_home): simplify widget order and visibility in ClientHomeState 2026-01-23 17:36:20 -05:00
Achintha Isuru
1320fcfc6a feat(hub_card): remove NFC button from HubCard widget 2026-01-23 17:31:10 -05:00
Achintha Isuru
857b541ec5 feat(settings): refactor SettingsRepositoryImpl and update client settings page UI 2026-01-23 17:28:56 -05:00
Achintha Isuru
387e47865c feat(authentication): remove social sign-in buttons and add TODO for future implementation
feat(billing): update billing module routes to indicate feature not yet implemented
feat(coverage): update coverage module routes to indicate feature not yet implemented
feat(sign_up_form): set full width for create account button in sign-up form
2026-01-23 17:24:30 -05:00
Achintha Isuru
15ff467294 feat(blockers): add blockers and deviations documentation for client application issues 2026-01-23 17:15:52 -05:00
Achintha Isuru
de0b7b1f07 feat(shift_order_form): enhance shift order form with vendor selection, date and location fields, and improved position management 2026-01-23 16:44:34 -05:00
Achintha Isuru
b3b5799c2a 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-23 16:25:54 -05:00
Achintha Isuru
2b331e356b feat(client_coverage): add client coverage feature with user session data use case and dashboard widgets
- Created `client_coverage` feature with necessary dependencies in `pubspec.yaml`.
- Implemented `GetUserSessionDataUseCase` for retrieving user session data.
- Developed `ClientHomeEditBanner` for edit mode instructions and reset functionality.
- Added `ClientHomeHeader` to display user information and action buttons.
- Built `DashboardWidgetBuilder` to render various dashboard widgets based on state.
- Introduced `DraggableWidgetWrapper` for managing widget visibility and drag handles in edit mode.
- Created `HeaderIconButton` for interactive header actions with optional badge support.
2026-01-23 16:25:01 -05:00
José Salazar
5c159493dd Merge pull request #288 from Oloodi/rapid_order_client
Rapid order client
2026-01-23 16:23:26 -05:00
José Salazar
f0f8128625 creation one order time 2026-01-23 16:03:43 -05:00
José Salazar
2643037c0b getting informatin of vendor and vendorroles 2026-01-23 15:33:15 -05:00
Achintha Isuru
597028436d Refactor billing repository interface and update usage
Renamed IBillingRepository to BillingRepository and updated all references across data, domain, and use case layers for consistency. Improved documentation and comments for repository and use cases. Adjusted typography letter spacing in design system and made minor UI tweaks to the spending breakdown card.
2026-01-23 14:47:06 -05:00
José Salazar
ee56985f42 Merge branch '208-p0-auth-05-get-started-screen' into rapid_order_client 2026-01-23 14:31:25 -05:00
Achintha Isuru
ff9ad58b8c Add client billing feature module
Introduces the client billing feature with domain, data, and presentation layers. Adds billing BLoC, navigation, UI widgets, and integrates with mock financial repository. Updates localization files for billing-related strings, adds new icons and typography, and registers url_launcher plugins for Linux, macOS, and Windows platforms.
2026-01-23 14:18:56 -05:00
José Salazar
5918bd8435 rapid order 2026-01-23 13:35:30 -05:00
Achintha Isuru
45d6710183 Add vendor selection and rates to order creation flow
Introduces a Vendor entity and integrates vendor selection into the one-time order creation and order editing flows. Vendor-specific rates are now displayed and used for position roles, and UI components have been updated to allow users to select a vendor and see corresponding rates. Mock vendor data is used for demonstration purposes.
2026-01-23 12:42:26 -05:00
Achintha Isuru
4e8373b2e5 Update view_order_card.dart 2026-01-23 12:23:01 -05:00
Achintha Isuru
d928dfb645 Refactor order creation and edit UI for consistency
Refactored BLoC and widget code for order creation flows to improve code style, readability, and consistency. Unified the edit order bottom sheet to follow the Unified Order Flow prototype, supporting multiple positions, review, and confirmation steps. Updated UI components to use more concise widget tree structures and standardized button implementations.
2026-01-23 12:05:04 -05:00
Achintha Isuru
868688fb02 Enhance UI button and order card features
Added fullWidth support to UiButton and updated usages to ensure buttons span container width. Improved ViewOrderCard with expanded worker details, avatar stack, formatted date/time, and an order edit bottom sheet. Introduced new icons and typography style in the design system.
2026-01-23 11:53:36 -05:00
Achintha Isuru
960b21ec8c Add client view orders feature module
Introduces the client 'View Orders' feature, including domain entity, repository, use case, Cubit, state, navigation extension, UI page, and widget. Integrates the feature into the client main module, updates localization files for English and Spanish, and adds supporting icons to the design system. Also updates the mock repository to provide sample order data.
2026-01-23 11:28:51 -05:00
José Salazar
a320bece0c adding schema from datac 2026-01-23 09:54:05 -05:00
José Salazar
3a6d1077f6 Merge branch '208-p0-auth-05-get-started-screen' into rapid_order_client 2026-01-23 09:42:40 -05:00
José Salazar
21931f4402 modification orders schema 2026-01-23 09:40:38 -05:00
Achintha Isuru
a964fcabd7 feat: Add client main shell with bottom navigation
Introduces the new client_main feature package, providing a main shell with bottom navigation for the client app. Updates routing to use /client-main instead of /client-home, adds localization for new tabs, and implements navigation logic, UI, and tests for the main shell. Also refactors create_order module bindings and cleans up unused dependencies.
2026-01-23 09:35:46 -05:00
Achintha Isuru
f5a57c7208 Add break labels and UI tweaks to order creation
Added new Spanish localization strings for break types in orders. Updated rapid order bloc to use explicit Future<void> in delay. Adjusted one-time order section header button with fixed size styling for improved UI consistency.
2026-01-23 02:07:23 -05:00