fix(courses): Refresh store cache and study courses after purchase - #277
Merged
Conversation
Why: Purchased courses remained visible in the store and missing from the study library until a manual pull-to-refresh due to stale in-memory cache and un-invalidated providers. What: - Evict StoreRepository cache and invalidate store/course providers upon payment success. - Return redirectRoute on payment completion so eviction runs before navigating away. - Add widget tests for product detail and installment sheet purchase flows.
|
Claude finished @pugal66's task in 4m 4s —— View job PR Review Summary
✅ What's good
🔴 CRITICAL — Must fix before merge
🟡 WARNING — Should fix
🔵 SUGGESTION — Nice to have
Notes
VerdictCHANGES REQUESTED |
- Trigger explicit study course sync via courseListProvider on payment success. - Handle redirect routing in caller after cache invalidation. - Update widget tests to verify course sync alongside store cache eviction.
Contributor
Author
|
@claude review |
|
Claude finished @pugal66's task in 1m 37s —— View job Claude finished @pugal66's task in 3m 12s PR Review Summary
✅ What's good
🔴 CRITICAL — Must fix before mergeNone. The previous CRITICAL finding (study courses not actually resyncing) has been resolved. 🟡 WARNING — Should fixNone. Both previous WARNINGs (missing refresh test coverage, spec drift) have been resolved. 🔵 SUGGESTION — Nice to have
Notes
VerdictAPPROVED Branch · |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why:
Purchased courses remained visible in the store and missing from the study library until a manual pull-to-refresh due to stale in-memory cache and un-invalidated providers.
What:
StoreRepositorycache and invalidate store/course providers upon payment success.redirectRouteon payment completion so eviction runs before navigating away.ProductDetailScreenandProductInstallmentSheetpurchase flows.