Skip to content

Conversation

@jvsena42
Copy link
Member

@jvsena42 jvsena42 commented Oct 10, 2025

Description

  • Moved Timed sheets from Home to the parent view
  • Remove Sheet wrapper
  • Applied other improvements from Timed sheets #413

Preview

optional_update.webm
critical_update.webm
backup_and_high_balance.webm
quick_pay_and_notifications.webm

QA Notes

  • Optional update sheet
  • Critical update screen
  • Fresh wallet> has balance > hasn't done backup > display Backup sheet
  • Notifications sheet
  • Quick pay sheet
  • High balance sheet
  • Change notifications settings > should reflect on background payments screen

@jvsena42 jvsena42 mentioned this pull request Oct 10, 2025
16 tasks
@jvsena42 jvsena42 requested a review from Copilot October 10, 2025 22:46
Copy link
Contributor

Copilot AI left a 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 HomeViewModel to AppViewModel with 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

Comment on lines -53 to -55
RequestNotificationPermissions { granted ->
settingsViewModel.setNotificationPreference(granted)
}
Copy link
Member Author

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

@jvsena42 jvsena42 self-assigned this Oct 13, 2025
@jvsena42 jvsena42 marked this pull request as ready for review October 13, 2025 11:30
@jvsena42
Copy link
Member Author

@jvsena42 jvsena42 requested a review from ovitrif October 13, 2025 12:07
@jvsena42 jvsena42 merged commit ad69db7 into feat/time-sheet-polish Oct 13, 2025
11 of 12 checks passed
@jvsena42 jvsena42 deleted the chore/move-to-parent branch October 13, 2025 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants