Tags: MoYiha/Reef
Tags
feat: Optimize app usage tracking and enhance UI navigation and design
This commit introduces a more robust usage tracking system, refactors the main navigation flow with improved transitions, and polishes the UI across several screens. Key updates include a more reliable event-based usage calculation with a fallback mechanism and the integration of daily usage stats directly into the home dashboard.
Key changes include:
* **Usage Tracking Optimization**: Refactored `ScreenUsageHelper` to prioritize `UsageEvents` (tracking `ACTIVITY_RESUMED/PAUSED` and screen states) for higher accuracy, implementing a `UsageStats` fallback for compatibility.
* **UI/UX Enhancements**:
* Added a real-time "daily usage" display to the `AppUsageCard` on the `MainScreen`.
* Improved navigation transitions using horizontal sliding animations between top-level destinations.
* Updated `TimerScreen` with vertical scrolling support and adjusted spacing for better accessibility on smaller screens.
* Integrated `TopAppBar`, `MediumTopAppBar`, and `UnifiedTopBar` more consistently across all main screens (Home, Timer, Usage, Routines, Settings).
* **ViewModel Improvements**:
* `AppUsageViewModel` now handles loading states more efficiently and uses a specific key for better lifecycle management.
* Migrated all usage calculations to use the updated `ScreenUsageHelper`.
* **Navigation**: Refined `NavHost` logic to better manage backstack and state restoration when switching between primary navigation items.
* **Changelog**: Added a new changelog for version 302, summarizing recent features like Pomodoro mode, French translations, and accessibility fixes.
Signed-off-by: invokevirtual <[email protected]>
feat: Refactor whitelist management and enhance MainScreen UI
This commit introduces a dedicated `WhitelistViewModel` to manage application whitelisting logic, decoupling it from the UI layer. It also updates the `MainScreen` to display the count of whitelisted apps and improves navigation state handling.
Key changes include:
* **Whitelist Refactoring**:
* Introduced `WhitelistViewModel` to handle app loading and toggling logic using `viewModelScope`.
* Updated `WhitelistScreenWrapper` to utilize the new ViewModel.
* Added helper methods in `AppLimits.kt` (`getWhitelistedCount` and `getWhitelistedLaunchableCount`) to accurately track whitelisted applications.
* **UI Enhancements**:
* Renamed "Time Limits" card to "Whitelist" on the `MainScreen`.
* Updated the Whitelist card icon to `Icons.Rounded.CheckCircle` and added a dynamic count of allowed apps.
* **Navigation Improvements**: Updated `MainActivity` navigation logic to include `saveState` and `restoreState`, ensuring a smoother user experience when switching between bottom bar destinations.
* **Utility Updates**: Added `getLimitedAppsCount` to `AppLimits` for better state visibility.
Signed-off-by: invokevirtual <[email protected]>
feat: Update changelog for version 2.0.5 This commit adds the English changelog for version 205, highlighting the following changes: * Added French translation. * Fixed inaccurate statistics on certain OEM devices. * Fixed an issue where system apps were being incorrectly triggered. * Introduced a new app introduction setup. * Improved routine handling and permission screen designs. * Modified the app icon. Signed-off-by: invokevirtual <[email protected]>
feat: Add reminder notifications This commit introduces a grace period and reminder notification system for app time limits. When an app's time limit is approaching (within the last 10 minutes), a reminder notification is now sent to the user. Once the time limit is reached, a grace period begins, accompanied by another notification. The app is only blocked after this grace period has expired. To support this, the `BlockerService` now checks for these conditions periodically and triggers the relevant notifications. The accessibility event triggers have also been expanded to provide more reliable app usage detection. Signed-off-by: Pranav Purwar <[email protected]>
refactor: Bump version code and name Signed-off-by: Pranav Purwar <[email protected]>
refactor: Bump version code and name Signed-off-by: Pranav Purwar <[email protected]>
feat: Improve notification handling and bump version Signed-off-by: Pranav Purwar <[email protected]>
feat: Add About screen and redesign routines screen Signed-off-by: Pranav Purwar <[email protected]>
Bump to 1.2.1 (8) Signed-off-by: Pranav Purwar <[email protected]>
add donate qr Signed-off-by: Pranav Purwar <[email protected]>
PreviousNext