-
Couldn't load subscription status.
- Fork 0
Move sheets to parent view #435
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
app/src/main/java/to/bitkit/ui/settings/backgroundPayments/BackgroundPaymentsIntroScreen.kt
Fixed
Show fixed
Hide fixed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR moves sheet management functionality from the HomeViewModel to the parent AppViewModel, centralizing sheet handling in the application architecture. This refactoring allows for better consistency and global sheet management across different screens.
Key Changes
- Sheet handling logic moved from
HomeViewModeltoAppViewModelwith timed sheet functionality - Various sheet components refactored to remove their own BottomSheet wrappers
- Updated function signatures to use named parameters for better clarity
Reviewed Changes
Copilot reviewed 15 out of 15 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| AppViewModel.kt | Added comprehensive timed sheet management with state tracking and queue processing |
| HomeViewModel.kt | Removed all sheet-related logic, keeping only core home screen functionality |
| HomeScreen.kt | Updated to use AppViewModel for sheet management instead of HomeViewModel |
| ContentView.kt | Added TimedSheet handling with specific logic for each sheet type |
| Sheet components | Refactored to remove individual BottomSheet wrappers and use modifier parameter |
| SheetHost.kt | Added TimedSheetType enum and TimedSheet sealed class |
| RequestNotificationPermissions { granted -> | ||
| settingsViewModel.setNotificationPreference(granted) | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The lint was complaining because this is a composable and this pattern is used to display content
Description
Preview
optional_update.webm
critical_update.webm
backup_and_high_balance.webm
quick_pay_and_notifications.webm
QA Notes