Skip to content

Conversation

@requilence
Copy link
Contributor

No description provided.

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 enhances the membership provider to support force-refreshing membership status and tiers, and implements a reactive system for tier updates through event observation. The changes enable the UI to immediately refresh membership data after critical user actions like purchases or email verification.

  • Added forceRefresh parameter to MembershipProvider.status() to bypass cache when needed
  • Implemented observeTiers() channel to reactively observe tier updates from server events
  • Integrated force refresh mechanism in MembershipViewModel triggered by purchases and email verification

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
MembershipProvider.kt Added forceRefresh parameter and implemented reactive tier observation through combine()
MembershipViewModel.kt Added forceRefreshTrigger flow to trigger cache bypass after purchases and email verification
MembershipMiddlewareChannel.kt Implemented observeTiers() to listen for membership tier update events
MembershipChannel.kt Added observeTiers() interface method to support tier event observation
MembershipRemoteChannel.kt Added observeTiers() interface and delegate implementation in MembershipDateChannel
MembershipModels.kt Added MembershipTiers.Event data class to represent tier update events

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

@konstantiniiv konstantiniiv changed the base branch from main to release/0-41-0 October 30, 2025 15:26
@konstantiniiv konstantiniiv merged commit 3e5b123 into release/0-41-0 Oct 30, 2025
3 checks passed
@konstantiniiv konstantiniiv deleted the droid-4080-membership-data-fetching-refactoring-integration-android branch October 30, 2025 16:27
@github-actions github-actions bot locked and limited conversation to collaborators Oct 30, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants