Skip to content

Tags: IRedDragonICY/portal-uad

Tags

2024-03-19-08-46-07

Toggle 2024-03-19-08-46-07's commit message
feat: improve home view layout and add games activity dependency

This commit revamps the home view layout for better user experience by adding more interactive elements such as clickable cards and icon buttons. It also includes a new dependency for games activity. The changes include:

- Replaced text elements with cards to display user IPK and total SKS.
- Added clickable functionality to the IPK card to toggle visibility.
- Replaced navigation buttons with icon buttons for better visual appeal.
- Added games-activity:3.0.0 to the app dependencies in the build.gradle file.

2024-03-19-07-09-54

Toggle 2024-03-19-07-09-54's commit message
feat: add AttendanceService for handling attendance notifications

This commit introduces AttendanceService.java which handles the attendance notifications in the app. It also includes necessary changes in AttendanceWorker.kt and updates in AndroidManifest.xml to declare the service.

2024-03-18-02-28-46

Toggle 2024-03-18-02-28-46's commit message
Merge remote-tracking branch 'origin/main'

2024-03-17-19-46-15

Toggle 2024-03-17-19-46-15's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Update issue templates

2024-03-17-19-22-40

Toggle 2024-03-17-19-22-40's commit message
feat: implement NetworkHandler to manage network status

This commit introduces the `NetworkHandler` class which is now responsible for managing network status. This new implementation simplifies the `MainViewModel` class as the network status related logic is now moved to `NetworkHandler`.

The `MainViewModel` now has a `networkHandler` property and it registers/unregisters the network callback in the `MainActivity`'s lifecycle methods.

The `LoginView` and `AttendanceService` have been updated to use the `networkHandler`.

This change enhances the readability of the code and ensures a clear separation of concerns.

2024-03-17-18-39-33

Toggle 2024-03-17-18-39-33's commit message
feat: enhance network availability check in MainViewModel and MainAct…

…ivity

This commit introduces enhancement in network availability checks in MainViewModel.kt and MainActivity.kt. The application now correctly observes network changes and reacts accordingly. A toast message is displayed to indicate the network status.

2024-03-17-18-32-08

Toggle 2024-03-17-18-32-08's commit message
feat: add network availability check in MainViewModel

This commit includes changes in MainViewModel and MainActivity. In MainViewModel, a method was added to check if the network was previously available. The checkNetworkAvailability method was also refactored to improve readability and efficiency. In MainActivity, a coroutine was added to observe the network availability and show a toast message accordingly.

2024-03-17-18-16-53

Toggle 2024-03-17-18-16-53's commit message
feat: refactor network availability observer in MainActivity

This commit moves the observer for network availability from the `onCreate` method to the `onStart` method in the MainActivity. The observer is also removed when the activity stops. This ensures the observer only runs when the activity is in the foreground, improving the app's performance and user experience.

2024-03-17-18-07-20

Toggle 2024-03-17-18-07-20's commit message
feat(SessionManager): refactor session management

Improve efficiency and code readability in the SessionManager class. This update includes:
- Using lazy initialization for masterKey, sharedPref, and gson.
- Replacing hardcoded keys with constants.
- Refactoring saveSession and loadSession to use generic types for better reusability.
- Updating save and load methods for portal session, reglab session, and credentials to use new saveSession and loadSession methods.

2024-03-17-17-54-13

Toggle 2024-03-17-17-54-13's commit message
feat: Add network availability check and error handling

This commit introduces the following changes:

- Enabled login button only when network is available.
- Improved error handling in AttendanceWorker.
- Added ACCESS_NETWORK_STATE permission in the AndroidManifest file.
- Implemented network availability check using BroadcastReceiver in MainViewModel.
- Registered and unregistered BroadcastReceiver in MainActivity onStart() and onStop() respectively.