Commit Graph

16 Commits

Author SHA1 Message Date
Achintha Isuru
7cea81e99e fix(routes): update worker home route to worker main
feat(localization): add benefits and auto-match sections in English and Spanish
fix(staff_main): handle route changes safely in StaffMainCubit
2026-01-24 12:30:53 -05:00
Achintha Isuru
e2e7ad5567 fix(navigation): ensure default route loads content
- Updated AuthNavigator to push /worker-main/home/ explicitly
- Updated StaffMainNavigator to navigate to home by default
- Fixes blank screen issue by ensuring RouterOutlet has a child route
2026-01-24 12:26:50 -05:00
Achintha Isuru
b16d0733de fix(staff): resolve dependency injection and navigation issues
- Registered HomeRepository in StaffHomeModule to fix UnregisteredInstance error
- Updated WorkerHomePage to use Modular DI for HomeCubit
- Added trailing slash to home navigation to resolve Modular warning
2026-01-24 12:23:15 -05:00
Achintha Isuru
5c82ea0483 fix(staff_home): fix compilation errors
- Removed flutter_riverpod dependency and usage
- Removed go_router dependency and usage (replaced with Modular)
- Fixed syntax errors in WorkerHomePage
- Updated dependencies (google_fonts, intl)
- Fixed undefined identifier errors by moving localization access
- Removed unused methods in ShiftCard
2026-01-24 12:19:32 -05:00
Achintha Isuru
13265d844e feat(staff): integrate staff_home feature
- Created staff_main package with module, bloc, and pages
- Integrated staff_home into staff_main
- Updated route constants to use /worker-main
- Fixed intl version conflict
2026-01-24 12:11:25 -05:00
Achintha Isuru
faa2b2b0a6 fix(staff): align worker home route paths
- Updated staff_main modulePath to /worker-home
- Updated main.dart to mount staff_main at /worker-home
- Fixes RouteNotFoundException when navigating from auth
2026-01-24 12:00:41 -05:00
Achintha Isuru
24da0a4d04 refactor(staff_main): enforce strict architecture and clean code
- Added StaffMainRoutes constants to avoid magic strings
- Enhanced StaffMainNavigator with typed tab navigation
- Updated StaffMainCubit to use typed navigation
- Updated StaffMainModule to use route constants
2026-01-24 11:48:40 -05:00
Achintha Isuru
cdc0344280 feat(staff): implement staff home screen shell (staff_main)
- Created staff_main package structure
- Implemented StaffMainPage, StaffMainBottomBar, StaffMainCubit
- Added localization for staff_main tabs
- Added typed navigation extension
- Registered package in workspace
2026-01-24 11:43:09 -05:00
Achintha Isuru
084ef8b025 refactor: simplify FirebaseAuth and dataConnect usage for clarity and consistency 2026-01-24 10:35:20 -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
4ea9bd95f8 Update pubspec.yaml 2026-01-24 10:02:06 -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
9ddb0435ed auth repo imp for staff 2026-01-22 17:38:23 -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
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