This repository has been archived by the owner on Jan 10, 2025. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 8 user authentication (#14) * Update README.md and dependencies * Add basic app structure and assets * Implement first models, viewmodels and api calls needed for user auth * Implement TUM-SSO authentication and update README.md and * Clean up auth_handler.dart and update routes * Update userState and userViewModel to use riverpod and rxdart * Refactor code to improve readability * Remove unused import * Clean up code, refactor models, update error-handling * 31 initial UI views (#53) * Basic tum login functionality, not yet done internal account * pushin android and yaml files also * Added some more views,course overview and setting * Added mycourses and public courses views,also solved navigation bug * added bottom bar functionality with solving navigation using route=false * removed views folder * changed names of notification file * Solved navigation bug from notification screen * Added some photos,cleared login screen and add same on 1 screen and fixed bottom nav bar * Added reusable widgets,constants,corrrected name for bookmark * changed bookmarks text to pinned * added login functionality * solved login bug --------- Co-authored-by: ge59dil <[email protected]> * 32 implement custom errors (#55) * Rename View->views and ViewModel -> view_model * Run `dart fix --apply && dart format ./lib` * Implement error handling for http requests&responses * 54 set up grpc client (#59) * Rename `lib/model` -> `lib/models` and `networking/apis` -> `networking/api` * Update error handling to work with gRPC codes * Setup proto dir structure * Implement grpc_handler.dart * Add (de-)serialization from/to proto * Implement `fetchUser()` gRPC method in `user_handler.dart` and update `user_viewmodel.dart` * Add doc * Fix args & linting in model_generator.dart * Update dependencies * Update README.md * Update `routes.dart` to automatically configure root url * Update doc * Add `setup_grpc.sh` * Tmp (#69) Update workflow with right bundle id Co-authored-by: Jakob Körber <[email protected]> * Update beta release workflow * 34 clean code base (#83) * Add config directory for better structure * Refactor ModelGenerator * Add Logging in handlers * Add Logging in handlers * Add secure storage for the token * removed Bootstrap * Add secure storage for the token * Update `main.dart` to use `StreamBuilder` instead of `StreamProvider` * Refactor UserViewModel * Replace old models with proto models * Fix linting * Improve code structure * Add Theme * Refactor 'internal_login_screen.dart' * Refactor * Refactor: Remove unused TextEditingController instances in WelcomeScreen - Eliminated declarations of usernameController and passwordController in WelcomeScreen as they were not used. - Ensured clean and optimized code by removing unnecessary Riverpod provider references. - Improved overall code readability and maintainability. * Optimize CourseOverview to Prevent Unnecessary Re-renders - Resolved issue causing re-renders of AppBar and BottomNavigationBar on tab changes. - Implemented Column layout to display 'My Courses' and 'Public Courses' sections together, ensuring consistent visibility. - Added spacing between course sections for better visual clarity and user experience. - Enhanced layout performance and overall responsiveness of the CourseOverview screen. * Add code documentation for course_overview and course_section * Refactor Course Sections for Reusability and Clarity - Introduced CourseContentScreen to centralize the display logic of course sections. - Refactored PinnedCourses and DownloadsScreen to use CourseContentScreen, enhancing code reusability. - Added in-code documentation for clarity and future maintainability. * Fix INT64 type * Fix Linting * Fix colors on TabBar not changing correctly * Added list view builder in course_view * changed list view to list view builder in course_view and addressed some trailing commas issue * added material design switch in setting * deleteing course outline * Added base_view for app bar and bottom navigatoe * Added base_view in course_Screen * added onViewAll functionality * no re rendering when click on same page * Improve the usage of the user Model view. - Added loading state when clicked on login - `handleSSOLogin()` - `handleSSOLogin()` - Added `BehaviorSubject<bool> isLoading = BehaviorSubject.seeded(false);` * Refactor `course_card_view.dart` and added documentation for `base_view.dart`, `course_card_view.dart`, `course_overview_view.dart` * Refactor `ssoAuth` and added documentation * Refactor `SettingsScreen` and added documentation to `internal_login_view` and `welcome_screen_view` * Fix in `ssoAuth` when ` Navigator.pushNamed(context, '/home');` called to set the loading state of login to false. * Fix in `ssoAuth` when ` Navigator.pushNamed(context, '/home');` called to set the loading state of login to false. * Rename `routes.dart` to `app_config.dart` and moved to the `config` package * **Refactored** `UserViewModel` and Login Handling**: Moved login logic and `TextEditingController`s into `UserViewModel` * ## Refactor: Integrate StateNotifier in UserViewModel - Refactored `UserViewModel` to extend `StateNotifier<UserState>`. - Eliminated separate `isLoading` BehaviorSubject in `UserViewModel`. All state changes, including loading states, are now handled directly through the unified `UserState` managed by the notifier. * ## Refactor: Courses views to have `List<VideoCard>` or `List<VideoCard> * ## Refactor: Courses views to have to make better use of `List.builder` and added a temporary `CourseModel` in course_model.dart that will be replaced once API courses retrieving works. --------- Co-authored-by: carlobortolan <[email protected]> Co-authored-by: ge59dil <[email protected]> * Add redirect after "Continue Without" (#87) --------- Co-authored-by: Anishyou <[email protected]> Co-authored-by: ge59dil <[email protected]> Co-authored-by: Jakob Körber <[email protected]> Co-authored-by: Achraf Labidi <[email protected]>
- Loading branch information