Commit Graph

53 Commits

Author SHA1 Message Date
Achintha Isuru
b31a615092 feat: Migrate staff profile features from Data Connect to V2 REST API
- Removed data_connect package from mobile pubspec.yaml.
- Added documentation for V2 profile migration status and QA findings.
- Implemented new session management with ClientSessionStore and StaffSessionStore.
- Created V2SessionService for handling user sessions via the V2 API.
- Developed use cases for cancelling late worker assignments and submitting worker reviews.
- Added arguments and use cases for payment chart retrieval and profile completion checks.
- Implemented repository interfaces and their implementations for staff main and profile features.
- Ensured proper error handling and validation in use cases.
2026-03-16 22:45:06 -04:00
Achintha Isuru
4423775fa1 feat: add shimmer loading skeletons for various pages and components
- Implemented ReorderCardSkeleton and ReorderSectionSkeleton for the client home page.
- Added SpendingCardSkeleton and SpendingSectionSkeleton for spending-related UI.
- Created OrderCardSkeleton and associated skeletons for the view orders page.
- Developed MetricCardSkeleton and MetricsGridSkeleton for reports page metrics.
- Introduced HomePageSkeleton and its components for staff home page.
- Added PaymentItemSkeleton and PaymentsPageSkeleton for payments page.
- Created ShiftDetailsPageSkeleton and related components for shift details.
- Implemented ShiftsPageSkeleton and ShiftCardSkeleton for shifts page.
2026-03-10 14:25:56 -04:00
Achintha Isuru
0f0714c55b feat: add shimmer loading skeletons for various pages and components
- Implemented UiShimmer as a core shimmer wrapper for animated gradient effects.
- Created shimmer presets for list items, stats cards, section headers, and more.
- Developed specific skeletons for billing, invoices, coverage, hubs, reports, payments, shifts, and home pages.
- Enhanced user experience by providing visual placeholders during data loading.
2026-03-10 13:21:30 -04:00
Achintha Isuru
7a5c130289 refactor: change singleton registrations to lazySingleton for improved performance 2026-03-09 15:01:18 -04:00
Achintha Isuru
6902e84519 feat: Temporarily disable worker list display and refine amount widget styling on the completion review page. 2026-02-28 17:36:23 -05:00
Achintha Isuru
26c4327ec5 refactor: reload billing data and update awaiting approval navigation to be awaitable. 2026-02-28 17:31:57 -05:00
Achintha Isuru
53b612851c refactor: enhance navigation robustness by introducing popSafe and safePushNamedAndRemoveUntil methods and updating their usage. 2026-02-28 17:23:53 -05:00
Achintha Isuru
c26128f1f2 feat: Enhance navigation robustness by redirecting to the appropriate home page on navigation errors or when popping the root route. 2026-02-28 17:02:44 -05:00
Achintha Isuru
76424b1b1f refactor: extract invoice approval and dispute logic into a dedicated ShiftCompletionReviewBloc. 2026-02-28 16:02:10 -05:00
Achintha Isuru
5a79a4e517 fix: Reorder invoice title and adjust vertical spacing in the pending invoices section. 2026-02-28 15:28:46 -05:00
Achintha Isuru
8c0708d2d3 Refactor billing data parsing and filtering, update invoice queries, and remove the dedicated timesheets page. 2026-02-28 15:26:05 -05:00
Achintha Isuru
119b6cc000 feat: introduce completion review UI components for actions, amount, info, search, and worker listing. 2026-02-28 12:49:51 -05:00
Achintha Isuru
752f60405e feat: Enable the rapid order type, refactor the invoice ready page to use UiAppBar, and adjust rapid action widget colors. 2026-02-28 12:11:46 -05:00
Achintha Isuru
bba4054143 feat: Implement hub and role matching for order creation and remove payment, savings, and export sections from the billing page. 2026-02-27 21:32:12 -05:00
Achintha Isuru
f9c2d822e6 refactor: update billing module routes to use ClientPaths.childRoute and refactor PendingInvoicesPage to use UiAppBar and ListView.builder. 2026-02-26 14:37:20 -05:00
Achintha Isuru
12211e54e2 refactor: Reorder pubspec.yaml dependencies, update SavingsCard text to a hardcoded value, and add scripts/issues-to-create.md to .gitignore. 2026-02-25 09:38:13 -05:00
7e26b54c50 feat: complete client billing UI and staff benefits display (#524, #527)
- Client App: Built dedicated ShiftCompletionReviewPage  and InvoiceReadyPage
- Client App: Wired up invoice summary mapping and parsing logic from Data Connect
- Staff App: Added dynamic BenefitsOverviewPage tracking worker limits matching client mockup
- Staff App: Display progress ring values wired to real VendorBenefitPlan & BenefitsData balances
2026-02-24 16:17:19 +05:30
Achintha Isuru
f453f8aadd feat: Refine badge and status indicator styling across various client features, including updated colors, borders, and typography, and remove unused action buttons. 2026-02-23 12:14:28 -05:00
13f8003bda refactor of usecases 2026-02-23 17:18:50 +05:30
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
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
39bb17d981 feat: Refactor repositories and modules to remove FirebaseAuth dependency and utilize DataConnectService 2026-02-16 17:49:34 -05:00
Achintha Isuru
fdd40ba72c feat(data-connect): Implement caching for business ID and enhance error handling in DataConnectService 2026-02-16 17:16:29 -05:00
Achintha Isuru
78a312c8d0 chore: refactor UI components to align with design system tokens 2026-02-12 15:36:45 -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
3e212220c7 feat: complete centralized error handling system with documentation 2026-02-11 10:36:08 +05:30
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
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
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
Achintha Isuru
82e479b4c0 feat: Add spacing between invoice history and spending breakdown card in billing view 2026-02-01 21:07:15 -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
cbc9166aba refactor: remove mock financial repository from BillingModule bindings 2026-01-30 17:57:57 -05:00
Achintha Isuru
dd5b58b7bc refactor: enhance invoice display logic and add empty state in BillingView 2026-01-30 01:34:21 -05:00
Achintha Isuru
d38cb07326 refactor: optimize layout spacing in BillingView for improved UI consistency 2026-01-30 00:43:07 -05:00
Achintha Isuru
4fce8f9a57 refactor: convert BillingView to StatefulWidget and implement scroll listener for dynamic UI updates 2026-01-30 00:40:19 -05:00
José Salazar
13a3f5a007 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 14:36:43 -05:00
Achintha Isuru
a7da165fad feat: add new spacing constants and update imports in BillingPage 2026-01-29 13:59:28 -05:00
Achintha Isuru
8c8951ff51 fix: update package versions and dependencies across multiple pubspec.yaml files 2026-01-29 10:51:16 -05:00
José Salazar
9067d14475 converting all the dates to utc 2026-01-29 09:54:59 -05:00
José Salazar
36ac26411a hidding some buttons that are not working 2026-01-27 15:48:44 -05:00
Achintha Isuru
fef3289648 Update build date in localization strings and adjust dependencies in billing package 2026-01-27 12:25:42 -05:00
José Salazar
3a4fa37a56 current period $ 2026-01-26 18:42:17 -05:00
José Salazar
d67dfd6f2f disconecting expiry time and savings 2026-01-26 18:39:22 -05:00
José Salazar
57ea214871 invoices history ready 2026-01-26 18:23:52 -05:00
José Salazar
fd06391e63 brakedown by week and month 2026-01-26 17:51:30 -05:00
José Salazar
f65121a26f bringing account dataconnect 2026-01-26 16:48:32 -05:00
Achintha Isuru
f53e611d10 implement billing and coverage pages in routing 2026-01-26 14:36:06 -05:00