Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ErrorView to CustomerCenter #4574

Merged

Conversation

vegaro
Copy link
Contributor

@vegaro vegaro commented Dec 11, 2024

Added a simple error view when the Customer Center fails

@vegaro vegaro force-pushed the sdk-3704-make-customercenter-show-an-error-if-the-backend-request branch from e1c7637 to cc42021 Compare December 11, 2024 20:42
Copy link

emerge-tools bot commented Dec 11, 2024

1 build increased size

Name Version Download Change Install Change Approval
Paywalls
com.revenuecat.PaywallsTester
1.0 (1) 10.6 MB ⬆️ 23.0 kB (0.22%) 39.5 MB ⬆️ 108.6 kB (0.28%) N/A

Paywalls 1.0 (1)
com.revenuecat.PaywallsTester

⚖️ Compare build
📦 Install build
⏱️ Analyze build performance

Total install size change: ⬆️ 108.6 kB (0.28%)
Total download size change: ⬆️ 23.0 kB (0.22%)

Largest size changes

Item Install Size Change
DYLD.String Table ⬆️ 50.2 kB
Code Signature ⬆️ 2.9 kB
Other ⬆️ 55.5 kB
View Treemap

Image of diff


🛸 Powered by Emerge Tools

Comment trigger: Size diff threshold of 100.00kB exceeded

…f-the-backend-request

# Conflicts:
#	RevenueCatUI/CustomerCenter/ViewModels/CustomerCenterViewModel.swift
…f-the-backend-request

# Conflicts:
#	RevenueCatUI/CustomerCenter/ViewModels/CustomerCenterViewModel.swift
@vegaro vegaro marked this pull request as ready for review December 12, 2024 11:12
@vegaro vegaro requested a review from a team December 12, 2024 11:12
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.

LGTM! Just a comment but can be addressed in future PRs.

.localizedString(forKey: "Something went wrong",
value: "Something went wrong",
table: nil)
CompatibilityContentUnavailableView(
Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm wondering if it would make sense to have a "retry" button... It might also be worth at least displaying network errors with a different message... But we can improve that in future PRs.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I wanted to do that, but it involves checking the type of network error, and thought it would complicate things a bit. Let's leave it for a future PR. I will add it to the list of things to do

@vegaro vegaro merged commit f3ad189 into main Dec 12, 2024
10 checks passed
@vegaro vegaro deleted the sdk-3704-make-customercenter-show-an-error-if-the-backend-request branch December 12, 2024 11:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants