PM-38356 PM-37177: Bug: Update premium subscription trouble-states#7073
Conversation
🤖 Bitwarden Claude Code ReviewOverall Assessment: APPROVE This PR refactors the premium action-card logic, replacing the boolean Code Review DetailsNo outstanding findings. Two previously flagged 🎨 SUGGESTED findings (KDoc on |
ff7f032
e13afd8 to
ff7f032
Compare
ff7f032 to
0ba58b3
Compare
0ba58b3 to
6ca6d51
Compare
6ca6d51 to
4e49b96
Compare
| * Emits a [PremiumCard] for the current user indicating what Premium card should be displayed. | ||
| */ | ||
| val isPremiumUpgradeBannerEligibleFlow: StateFlow<Boolean> | ||
| val premiumCardStateFlow: StateFlow<PremiumCard> |
| override val premiumCardStateFlow: StateFlow<PremiumCard> = | ||
| combine( | ||
| authDiskSource.userStateFlow, | ||
| authDiskSource.userStateFlow.map { it?.activeAccount }, |
|
Thanks @SaintPatrck |
🎟️ Tracking
PM-38356
PM-37177
📔 Objective
This PR updates the logic for determining which premium card should be displayed to the user. The two options are
Upgrade to Premiumcard or the newly addedNeeds Attentioncard.📸 Screenshots