Skip to content

Conversation

vegaro
Copy link
Contributor

@vegaro vegaro commented Jul 18, 2025

The Customer Center was closing when switching between light and dark mode

@@ -98,7 +98,7 @@ internal interface CustomerCenterViewModel {

// trigger state refresh
fun refreshStateIfLocaleChanged()
fun refreshStateIfColorsChanged(colorScheme: ColorScheme, isDark: Boolean)
fun refreshStateIfColorsChanged(currentColorScheme: ColorScheme, isSystemInDarkTheme: Boolean)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this was just renames because I found them confusing

@vegaro vegaro requested a review from facumenzella July 18, 2025 10:45
Copy link
Contributor

@tonidero tonidero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good! I think there might have been an easier fix, but I'm ok keeping it like this!

@@ -50,21 +50,22 @@ fun AppInfoScreen(
),
) {
var isDebugBottomSheetVisible by remember { mutableStateOf(false) }
var isCustomerCenterVisible by remember { mutableStateOf(false) }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe we could have just used rememberSaveable... But I'm ok to move the state to the View model :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh right! I overcomplicated it lol

Thank you!

@vegaro vegaro enabled auto-merge July 18, 2025 10:48
@vegaro vegaro disabled auto-merge July 18, 2025 11:00
@vegaro vegaro enabled auto-merge July 18, 2025 11:06
@vegaro vegaro added this pull request to the merge queue Jul 18, 2025
Copy link

codecov bot commented Jul 18, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.26%. Comparing base (b762577) to head (8a8b51c).
Report is 4 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2550   +/-   ##
=======================================
  Coverage   78.26%   78.26%           
=======================================
  Files         291      291           
  Lines       10782    10782           
  Branches     1507     1507           
=======================================
  Hits         8439     8439           
  Misses       1691     1691           
  Partials      652      652           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Merged via the queue into main with commit 05ff2ce Jul 18, 2025
14 checks passed
@vegaro vegaro deleted the fix-dark-mode-changes-in-pawyall-tester branch July 18, 2025 12:14
github-merge-queue bot pushed a commit that referenced this pull request Jul 23, 2025
**This is an automatic release.**

## RevenueCat SDK
### 🐞 Bugfixes
* Resubscribe if cancelled (#2487) via Cesar de la Vega (@vegaro)
### Virtual Currency
#### 🐞 Bugfixes
* Update VC Caching Log Message (#2552) via Will Taylor (@fire-at-will)

## RevenueCatUI SDK
### Customer Center
#### 🐞 Bugfixes
* Update design of No Active subscriptions screen in Customer Center
(#2559) via Cesar de la Vega (@vegaro)

### 🔄 Other Changes
* [AUTOMATIC][Paywalls V2] Updates paywall-preview-resources submodule
(#2561) via RevenueCat Git Bot (@RCGitBot)
* [AUTOMATIC][Paywalls V2] Updates paywall-preview-resources submodule
(#2560) via RevenueCat Git Bot (@RCGitBot)
* Bump danger from 9.5.1 to 9.5.3 (#2556) via dependabot[bot]
(@dependabot[bot])
* Bump fastlane from 2.227.2 to 2.228.0 (#2557) via dependabot[bot]
(@dependabot[bot])
* Bump fastlane-plugin-revenuecat_internal from `9a29f63` to `7d97553`
(#2558) via dependabot[bot] (@dependabot[bot])
* [AUTOMATIC][Paywalls V2] Updates paywall-preview-resources submodule
(#2555) via RevenueCat Git Bot (@RCGitBot)
* Bump nokogiri from 1.18.8 to 1.18.9 (#2553) via dependabot[bot]
(@dependabot[bot])
* [AUTOMATIC][Paywalls V2] Updates paywall-preview-resources submodule
(#2551) via RevenueCat Git Bot (@RCGitBot)
* Fix paywall tester so customer center doesn't close when changing to
dark mode (#2550) via Cesar de la Vega (@vegaro)

Co-authored-by: revenuecat-ops <ops@revenuecat.com>
tonidero pushed a commit that referenced this pull request Aug 25, 2025
…dark mode (#2550)

The Customer Center was closing when switching between light and dark
mode
@tonidero tonidero mentioned this pull request Aug 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants