Commit Graph

5 Commits

Author SHA1 Message Date
Dani B
d4006d73ce feat(01-10): add logout functionality to home page
- Updated HomePage to use AuthProvider instead of direct Supabase calls
- Added confirmation dialog before logout
- Added loading state display during logout
- Added error display for auth errors with dismiss functionality
- Added success message for successful logout
- Enhanced accessibility and user feedback
2026-01-28 12:57:02 -05:00
Dani B
0f23dd9ea0 fix(01-11): fix null safety issues in HomePage
- Fixed null safety issues with email access
- Resolved isNotEmpty null safety warning
- Fixed conditional operator usage for null safety
- Cleaned up syntax and validation warnings

Files modified:
- lib/features/home/presentation/pages/home_page.dart
2026-01-28 11:38:49 -05:00
Dani B
7233996293 fix(01-11): resolve Flutter analysis errors and API issues
- Fixed GoRouter state.location -> state.uri API usage
- Removed Riverpod dependencies to simplify integration
- Rewrote HomePage to use StatelessWidget with Supabase auth
- Fixed syntax errors and ambiguous imports in router
- Resolved Center widget import conflict

Files modified:
- lib/core/router/app_router.dart (API fixes)
- lib/features/home/presentation/pages/home_page.dart (syntax fixes)
2026-01-28 11:36:28 -05:00
Dani B
37139bdb06 feat(01-11): integrate router into main app with error handling
- Updated main.dart to use ProviderScope and MaterialApp.router
- Integrated AppRouter with proper GoRouter configuration
- Added comprehensive error handling with ErrorBoundary widget
- Updated HomePage to use auth provider for logout functionality
- Fixed SplashPage to use GoRouter navigation
- Implemented router provider for Riverpod integration
- Added proper resource disposal and restart functionality

Files modified:
- lib/main.dart (complete app structure)
- lib/core/router/app_router.dart (router integration)
- lib/features/authentication/presentation/pages/splash_page.dart (navigation fix)
- lib/features/home/presentation/pages/home_page.dart (logout implementation)
2026-01-28 11:22:56 -05:00
Dani B
be4607e0eb feat(01-11): create authenticated home page
- Created HomePage widget with user welcome message
- Added logout button placeholder
- Displays user email and avatar when authenticated
- Includes placeholder for future inventory features
- Responsive design with proper styling

- Files modified: lib/features/home/presentation/pages/home_page.dart
2026-01-28 10:56:32 -05:00