Skip to content

Conversation

@gonfff
Copy link
Owner

@gonfff gonfff commented Jan 13, 2026

No description provided.

Copy link

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 adds functionality to refresh overdue next payments when the app resumes from background. When users return to the app, the system will recount and update subscription payment statuses to ensure they reflect the current state.

Changes:

  • Added refreshOverdueNextPayments() public method to SubscriptionsViewModel with guards for loading and empty states
  • Implemented WidgetsBindingObserver in SubscriptionsScreen to detect app lifecycle changes
  • Added test coverage for the new refresh method

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
lib/presentation/viewmodels/subscriptions_view_model.dart Adds public method to trigger refresh of overdue payments using current subscriptions
lib/presentation/screens/subscriptions_screen.dart Implements lifecycle observer to call refresh method when app resumes
test/presentation/viewmodels/subscriptions_view_model_test.dart Adds test verifying the refresh method uses current subscriptions

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

Copilot AI commented Jan 13, 2026

@gonfff I've opened a new pull request, #13, to work on those changes. Once the pull request is ready, I'll request review from you.

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: gonfff <42554983+gonfff@users.noreply.github.com>
@gonfff gonfff merged commit b8c471b into master Jan 13, 2026
1 check passed
@gonfff gonfff deleted the recount-subscribes-on-resume branch January 13, 2026 09:03
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.

2 participants