Commit Graph

927 Commits

Author SHA1 Message Date
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
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
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
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
José Salazar
41175109ee modification hubs to dont call businees again and use session 2026-01-22 18:21:44 -05:00
José Salazar
a70468ceb4 session creation and show business information 2026-01-22 18:17:24 -05:00
José Salazar
9ddb0435ed auth repo imp for staff 2026-01-22 17:38:23 -05:00
José Salazar
d73c914813 Merge branch '208-p0-auth-05-get-started-screen' of github.com:Oloodi/krow-workforce into 208-p0-auth-05-get-started-screen 2026-01-22 17:37:01 -05:00
José Salazar
9b1d4fce78 configuration for staff firebase and auth login 2026-01-22 17:36:12 -05:00
José Salazar
1b8bdf6bfe first steps for auth in staff app 2026-01-22 17:09:13 -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
José Salazar
6e8578c3d7 validation userrole 2026-01-22 16:04:10 -05:00
José Salazar
c341638d73 Merge branch '208-p0-auth-05-get-started-screen' of github.com:Oloodi/krow-workforce into 208-p0-auth-05-get-started-screen 2026-01-22 16:03:35 -05:00
José Salazar
b557b5874d validation when the user is not a businnes user 2026-01-22 15:55:51 -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
Achintha Isuru
772a1ba53f chore: Add documentation and improve UI styles in settings
Added doc comments to widget build methods and constructors for better code clarity. Updated text styles in SettingsProfileHeader to use textPrimary and headline1m for improved UI consistency.
2026-01-22 14:57:37 -05:00
Achintha Isuru
df52c12aa4 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-22 14:43:13 -05:00
Achintha Isuru
4022b6d1f3 chore: Replace TextButton with UiButton.secondary in settings actions
Updated the log out and cancel actions in SettingsActions to use UiButton.secondary instead of TextButton for consistency with the UI component library.
2026-01-22 14:42:04 -05:00
Achintha Isuru
4bbe77cf3e Merge branch 'dev' into 208-p0-auth-05-get-started-screen 2026-01-22 14:41:22 -05:00
Achintha Isuru
3d18395a09 Adjust top margin in SettingsProfileHeader
Updated the top margin from UiConstants.space14 to UiConstants.space16 in the SettingsProfileHeader widget for improved layout consistency.
2026-01-22 14:04:18 -05:00
Achintha Isuru
a7540954cb chore: Refactor navigation and button actions in settings page
Replaced Navigator calls with Modular navigation for consistency. Updated button order and styling in the logout dialog, and added comments for clarity. The Hubs button now uses Modular navigation to push the Hubs page.
2026-01-22 13:49:00 -05:00
Achintha Isuru
5da56eb769 feat: Add sign out confirmation dialog and success snackbar
Introduces a confirmation dialog before signing out in the client settings page and displays a snackbar upon successful sign out. Also updates a slivers list to use explicit type annotation for consistency.
2026-01-22 13:43:04 -05:00
Achintha Isuru
b73abc5487 chore: Add floating action button for adding client hubs
Replaces the primary button for adding hubs with a floating action button and sets the background color of the Scaffold. This improves the UI by providing a more standard and accessible way to add new hubs.
2026-01-22 13:35:30 -05:00
Achintha Isuru
cd0b591c5c feat: Refactor hub widgets to use design system styles
Replaced hardcoded colors, icons, and spacing in hub-related widgets with values from the design system (UiColors, UiTypography, UiIcons, UiConstants). This improves consistency and maintainability across the UI components.
2026-01-22 13:20:39 -05:00
Achintha Isuru
d2770d2d29 chore: Refactor ClientHubsPage to use design system constants
Replaced hardcoded color, spacing, and icon values with UiColors, UiConstants, UiIcons, and UiTypography from the design system for improved consistency and maintainability. Removed unused lucide_icons import and updated widget styles to use design system typography.
2026-01-22 13:08:39 -05:00
Achintha Isuru
c3f0282109 Refactor settings to use FirebaseAuth for sign out
Replaces the previous mock-based authentication in client settings with FirebaseAuth for sign out functionality. Updates dependencies and imports accordingly, and adds firebase_auth to the settings package and firebase_core to the client app. Also includes minor Dart type improvements and dependency reordering.
2026-01-22 12:50:42 -05:00
Achintha Isuru
2325ba4032 Merge pull request #286 from Oloodi/hub_creation
Hub creation
2026-01-22 12:39:38 -05:00