Commit Graph

36 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
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
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
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
2531e7b29e refactor: update navigation method in OneTimeOrderView and adjust dependency injection in ViewOrdersModule 2026-01-30 02:41:01 -05:00
José Salazar
3513cf310f Merge remote-tracking branch 'origin/312-feature-integrate-google-maps-places-autocomplete-for-hub-address-validation' into 298-bug-enhance-order-creation-flow-implement-robust-timezone-handling-in-mobile-client-app 2026-01-29 17:23:53 -05:00
José Salazar
02b0790ec3 saving name of the orders 2026-01-29 17:10:26 -05:00
José Salazar
6592462e90 hub order update ready 2026-01-29 16:33:36 -05:00
José Salazar
191ba40393 modifications for hub in create one time order 2026-01-29 16:08:44 -05:00
Achintha Isuru
1213d10bd1 feat: update order types in ClientCreateOrderRepositoryImpl and add firebase_auth dependency in pubspec.yaml 2026-01-29 14:34:19 -05:00
José Salazar
b8d65dfdde validation date as utc and converting in orders 2026-01-28 19:35:09 -05:00
José Salazar
29d839ee26 moving created order to view order 2026-01-28 17:34:05 -05:00
José Salazar
f8e44595c2 solving problem with dates and time in create order one time 2026-01-28 15:31:03 -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
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
José Salazar
bda0b441e9 update and correction of create order 2026-01-25 14:22:54 -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
e95b9a0b36 refactor: update import paths for consistency and clarity across multiple files 2026-01-24 10:07:22 -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
afba0e64df view shits of ordes by date 2026-01-23 20:43:18 -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
José Salazar
ee56985f42 Merge branch '208-p0-auth-05-get-started-screen' into rapid_order_client 2026-01-23 14:31:25 -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
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
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
Achintha Isuru
9e513d96af Refactor create order UI and improve architecture
Refactored the client create order feature to move UI logic for order type selection into a dedicated CreateOrderView widget, extracted order type UI metadata to a separate entity, and updated page widgets to delegate to new view components. Improved code documentation and structure for arguments, use cases, and repository interfaces. Added new localization keys and minor design system icon update.
2026-01-23 01:55:12 -05:00
Achintha Isuru
96ff173855 Refactor create order UI and add widget components
Refactored the client create order flow to use new modular widget components for one-time and rapid order forms, improving code organization and reusability. Updated UI colors, app bar usage, and extracted logic for date picker, location input, position card, section header, and success views. Added placeholder pages for recurring and permanent order types. Updated Spanish localization for new order types.
2026-01-22 17:03:17 -05:00
Achintha Isuru
4b3125de1a Add order entities and mocks for client order feature
Introduces new domain entities for order types and one-time orders, along with their positions. Adds a mock OrderRepository to the data_connect package and wires it into the module. Updates localization files for new order flows and refactors Equatable usage for consistency. Also adds a minus icon to the design system.
2026-01-22 16:47:39 -05:00
Achintha Isuru
7090efb583 Refactor create order feature with repository pattern
Introduced domain entities, repository interface, and use case for order types in the client create order feature. Moved order type data and logic from the Bloc to a repository implementation. Updated module bindings and imports to support the new architecture, improving separation of concerns and maintainability.
2026-01-22 15:52:28 -05:00
Achintha Isuru
22ead66f71 Add client create order feature module
Introduces the client_create_order feature with navigation, BLoC, state, and UI for selecting order types. Adds English and Spanish localization keys, updates dependencies, and integrates the new module into the client app routing.
2026-01-22 15:29:28 -05:00