Commit Graph

47 Commits

Author SHA1 Message Date
Achintha Isuru
bb27e3f8fe refactor: extract attire UI components from pages into dedicated widgets for improved modularity. 2026-02-24 16:06:42 -05:00
Achintha Isuru
566b4e9839 feat: Add xSmall size and destructive variant to UiChip, refactor AttireItemCard to use these new chip features, and adjust body4r font size. 2026-02-24 15:58:49 -05:00
Achintha Isuru
e084dad4a7 feat: Refactor client hubs to centralize hub actions and update UI styling. 2026-02-24 13:59:55 -05:00
Achintha Isuru
e78d5938dd client hub bloc updated 2026-02-24 13:53:36 -05:00
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
Achintha Isuru
fa00a0bf75 feat: Display order event name with a new calendar check icon and update associated styles in the order card. 2026-02-22 21:13:17 -05:00
Achintha Isuru
68d6e7c5e3 refactor: Standardize shift details UI by adopting UiButton and UiChip components, adjusting layout, and refining chip styling. 2026-02-22 19:59:22 -05:00
Achintha Isuru
216076f753 feat: Enhance UiAppBar and UiIconButton with customizable shapes and border radius 2026-02-21 18:27:59 -05:00
Achintha Isuru
f3eb33a303 feat: Implement permanent and recurring order features with BLoC architecture
- Added PermanentOrderEvent and PermanentOrderState to manage permanent order events and states.
- Created RapidOrderBloc, RapidOrderEvent, and RapidOrderState for handling rapid order creation.
- Introduced RecurringOrderBloc, RecurringOrderEvent, and RecurringOrderState for managing recurring orders.
- Developed utility classes for order types and UI metadata for styling order type cards.
- Enhanced validation logic for order states to ensure data integrity.
- Integrated vendor and hub loading functionalities for both permanent and recurring orders.
2026-02-21 18:11:47 -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
1ca3f714c8 Merge branch 'dev' of https://github.com/Oloodi/krow-workforce into feature/session-persistence-424 2026-02-19 12:55:47 +05:30
Achintha Isuru
963fc05f9f fix: Correct primaryInverse color value and improve code formatting in WorkerHomePage 2026-02-19 00:39:24 -05:00
Achintha Isuru
f0453f267b feat: Update color definitions and improve PlaceholderBanner widget styling 2026-02-18 23:43:33 -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
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
f5a23c3aaa feat: Add comprehensive documentation for Krow Platform architecture, including system bible, web application use cases, and mobile agent development rules
- Introduced the Krow Platform System Bible detailing the executive summary, system vision, ecosystem overview, architecture, application responsibilities, use cases, and security model.
- Created a detailed use case overview for the Krow Web Application, outlining workflows for Admin, Client, and Vendor roles.
- Established non-negotiable agent development rules for mobile applications, emphasizing file structure, naming conventions, logic placement, localization, and error handling.
- Defined architecture principles for the Krow mobile platform, focusing on clean architecture, dependency direction, and session management.
- Documented design system usage guidelines to ensure UI consistency and adherence to design tokens across applications.
2026-02-18 10:23:07 -05:00
d589c9bca2 reports page implementation 2026-02-18 15:10:01 +05:30
Achintha Isuru
2a0b39926a refactor: Update UI theme and shift details layout for improved consistency 2026-02-16 13:09:10 -05:00
Achintha Isuru
e6b512ee84 feat: Add Headline 1 Bold style and refactor ShiftDetailsPage and FindShiftsTab layout 2026-02-16 12:58:05 -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
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
Achintha Isuru
2730277075 Refactor UI components to use design system tokens for consistency
- Removed the UiSuccessSnackbar widget as it is no longer needed.
- Updated WorkerHomePage to replace hardcoded spacing with UiConstants.
- Refactored HomeHeader to use UiConstants for dimensions and colors.
- Modified PlaceholderBanner to utilize UiConstants for sizes and colors.
- Adjusted QuickActionItem to apply UiConstants for dimensions and icon sizes.
- Updated RecommendedShiftCard to use design system typography and constants.
- Refined SectionHeader to implement design system styles and spacing.
- Enhanced ShiftCard to adopt design system tokens for colors and spacing.
- Updated AutoMatchToggle to use design system colors and dimensions.
- Refactored BenefitsWidget to apply design system styles and constants.
- Improved ImproveYourselfWidget to utilize design system tokens for styling.
- Updated MoreWaysToUseKrowWidget to implement design system styles and constants.
2026-02-10 16:25:54 -05:00
Achintha Isuru
77370a7688 refactor: Replace Lucide icons with UiIcons across various widgets to ensure consistency with the design system 2026-02-10 16:12:13 -05:00
Achintha Isuru
4f94bf6835 feat: Refactor mobile UI components to adhere to design system tokens and improve loading and snackbar functionalities 2026-02-10 15:34:52 -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
3924801f70 feat(mobile): implement centralized error handling and project cleanup
- Implemented centralized error handling system (#377)
- Unified UIErrorSnackbar and BlocErrorHandler mixin
- Migrated ClientAuthBloc and ClientHubsBloc
- Consolidated documentation
- Addresses Mobile Apps: Project Cleanup (#378)
2026-02-05 15:35:35 +05:30
Achintha Isuru
94ad1d66fb fix: update SDK constraints to ensure compatibility across multiple pubspec files 2026-02-02 10:30:50 -05:00
Achintha Isuru
3489ae4060 feat: Add checkCircle icon and update ViewOrderCard and ViewOrdersHeader for improved date handling and UI feedback 2026-02-01 21:23:58 -05:00
Achintha Isuru
109ed5375d Refactor UI components: update button size to large and adjust profile header margin 2026-02-01 20:28:29 -05:00
Achintha Isuru
5c15db1695 Integrate Google Maps Places Autocomplete for hub address validation and enhance UI button styles 2026-02-01 20:22:14 -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
9dae80e66e feat: add staff certificates feature with pubspec configuration
- Created pubspec.yaml for the staff_certificates feature with dependencies including flutter_bloc, equatable, get_it, and flutter_modular.
- Established paths for KROW dependencies: design_system, core_localization, krow_domain, krow_core, and krow_data_connect.
- Added firebase_auth and firebase_data_connect as dependencies.
- Generated pubspec.lock file to lock dependency versions.
2026-01-25 10:28:43 -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
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
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
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
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
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
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
1b8a6466b0 chore: Refactor imports and update architecture package structure
Reorganized and clarified dependency sections in multiple pubspec.yaml files, grouping architecture and feature packages. Updated import statements in AuthRepositoryImpl for direct usage of types. Added missing dependencies to client authentication. Removed obsolete documentation and summary files from design_system and client home packages.
2026-01-22 12:28:10 -05:00
Achintha Isuru
7d3b4da8d4 Centralize and update analysis options configuration
Replaces the old analytics_options.yaml with a new analysis_options.yaml at the workspace root, consolidating lint rules and analyzer settings. Updates all references in subprojects to use the new file, and adds flutter_lints as a direct dev dependency in pubspec.yaml for consistent linting across the workspace.
2026-01-22 12:19:05 -05:00
Achintha Isuru
5bc5530540 chore: Redesign settings profile header UI
Updated the SettingsProfileHeader widget to use a lighter background, reduced the expanded height, and adjusted layout to a horizontal row with updated avatar and text styles. Added new spacing constants to UiConstants for improved layout control.
2026-01-22 11:59:17 -05:00
Achintha Isuru
cf59935ec8 Move apps to mobile directory structure
Relocated all app directories (client, design_system_viewer, staff) and their contents under the new 'apps/mobile' path. This change improves project organization and prepares for future platform-specific structuring.
2026-01-22 10:17:19 -05:00