Commit Graph

898 Commits

Author SHA1 Message Date
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
José Salazar
c57cb65074 new schemas 2026-01-22 12:37:21 -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
José Salazar
fdf28beae4 new schemas of teams and hubs 2026-01-22 12:25:24 -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
d456bf9dc9 Update mobile app docs and add gen:all Melos script
Revised the main README to clarify the mobile app structure and added a detailed README for the mobile apps. Introduced a new 'gen:all' script in Melos to run both localization and build_runner generation, and updated the info script to reflect this addition.
2026-01-22 12:06:07 -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
6ef691881a CHORE: Update UI spacing and colors in client home widgets
Added spacing to the ClientHomePage widget column and updated icon and background colors in ActionsWidget to use theme constants. Adjusted padding and removed boxShadow from _ActionCard for a cleaner appearance.
2026-01-22 11:32:30 -05:00
Achintha Isuru
f882a0a7d0 chore: Update client navigation routes and exports
Standardized navigation route paths for client home, hubs, and settings to use '/client-home', '/client-hubs', and '/client-settings'. Added missing module imports and exports in main.dart and krow_data_connect.dart, including business_repository_mock.
2026-01-22 11:29:54 -05:00
Achintha Isuru
ecc7aece6e chore: Refactor mobile build scripts to use Melos
Updated Makefile, mobile.mk, and melos.yaml to centralize mobile app build, start, and code generation commands using Melos scripts. Added info and install-melos commands for easier onboarding and workspace setup. Documentation updated to reflect staff app naming and new command structure.
2026-01-22 10:55:46 -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
Achintha Isuru
c4918aa012 Revert "Merge pull request #284 from Oloodi/sign_up_dataconect_firebase"
This reverts commit ceacaee233, reversing
changes made to fbadd976cf.
2026-01-22 10:00:54 -05:00
Achintha Isuru
2f992ae5fa Merge branch 'dev' into 208-p0-auth-05-get-started-screen 2026-01-22 09:58:16 -05:00
José Salazar
beb3a36590 getting message of throw with invalid data 2026-01-22 09:46:39 -05:00
José Salazar
1b67bb21c8 last part of auth 2026-01-22 09:34:33 -05:00
José Salazar
e4986c2aee auth in client working 2026-01-21 22:08:51 -05:00
Achintha Isuru
61d7c08c95 feat: Implement Hubs feature with dedicated navigation, a home page action card, a settings quick link, and localization. 2026-01-21 20:11:09 -05:00
Achintha Isuru
9d9d2aa456 refactor: decompose hub arguments into separate, dedicated classes for improved modularity. 2026-01-21 19:58:22 -05:00
Achintha Isuru
0599e9b351 refactor: move dialog state management to BLoC and make client hubs page stateless. 2026-01-21 19:55:56 -05:00
Achintha Isuru
12dfde0551 feat: Implement client hubs management feature, including CRUD operations and NFC tag assignment. 2026-01-21 19:50:16 -05:00
Achintha Isuru
78917a5f84 refactor: extract UI components into dedicated widgets for the client settings page and update repository constructor. 2026-01-21 19:41:13 -05:00
Achintha Isuru
eace8a66af feat: Implement client settings and profile management feature with sign-out functionality. 2026-01-21 19:37:34 -05:00
José Salazar
4de3c44863 first steps for firebase 2026-01-21 19:13:45 -05:00
Achintha Isuru
7d5a40b7e3 refactor: introduce HomeDashboardData entity, convert ClientHomePage to StatelessWidget, and update deprecated color methods in the client home feature. 2026-01-21 16:33:55 -05:00
Achintha Isuru
eb10254757 feat: Implement CoverageWidget for daily coverage metrics on the client home page and add .gitignore. 2026-01-21 16:08:44 -05:00
Achintha Isuru
4a67b2f541 initalizing the mobile apps 2026-01-21 15:42:51 -05:00
bwnyasse
3c0488576b refactor: restructure monorepo to align with industry standards
This commit restructures the monorepo to improve organization,
maintainability, and scalability. The changes include:

- Moving mobile apps from `mobile-apps/` to `apps/mobile-*`.
- Moving the web dashboard from `admin-web/` and `frontend-web/`
 to `apps/web-dashboard/`.
- Moving Firebase-related files to the root `firebase/` directory.
- Adding a `.geminiignore` file to exclude unnecessary files from
 Gemini analysis.
- Updating `.gitignore` to reflect the new structure and exclude
 sensitive files.
- Updating `codemagic.yaml` to reflect the new app locations.
- Adding a `make help` command to the root directory.
- Adding a `make install-git-hooks` command to install git hooks.
- Adding a `docs/02-codemagic-env-vars.md` file to document
 Codemagic environment variables.
- Adding a `docs/03-contributing.md` file to document
 contribution guidelines.
- Adding prototype placeholders to the internal launchpad.
- Updating the `README.md` file to reflect the new structure and
 provide updated instructions.

These changes improve the overall structure of the monorepo and
make it easier to develop, maintain, and scale the KROW Workforce
platform.
2026-01-10 22:36:29 -05:00
bwnyasse
d43a14ee0c clean 2026-01-10 21:22:35 -05:00