-
Notifications
You must be signed in to change notification settings - Fork 334
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 text in default language to feedbackSurveyCompleted
callback
#4625
base: main
Are you sure you want to change the base?
Conversation
Generated by 🚫 Danger |
ef87340
to
9e4df29
Compare
9e4df29
to
6f14273
Compare
1 build decreased size
Paywalls 1.0 (1)
|
Item | Install Size Change |
---|---|
DYLD.String Table | ⬇️ -190.0 kB |
Code Signature | ⬇️ -11.5 kB |
DYLD.Exports | ⬇️ -9.0 kB |
🗑 RevenueCatUI.PurchaseHistoryViewModel | ⬇️ -6.2 kB |
Strings.Unmapped | ⬇️ -1.7 kB |
🛸 Powered by Emerge Tools
Comment trigger: Size diff threshold of 100.00kB exceeded
case feedbackSurveyCompleted(_ feedbackSurveyOptionId: String) | ||
/// An option of the feedback survey has been selected | ||
/// - Parameter option: The ``CustomerCenterConfigData.HelpPath.FeedbackSurvey.Option`` that was selected | ||
case feedbackSurveyCompletedWithOption(_ option: CustomerCenterConfigData.HelpPath.FeedbackSurvey.Option) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I ended up changing the name of the case because I coudln't find a way where the Swift compiler wouldn't get confused.
I tried adding another parameter and keeping the name and got this:
I also tried returning the whole option (keeping one parameter only) and got this:
I am also concerned because Switch must be exhaustive, meaning this is a breaking change:
defaultLanguageText
to feedbackSurveyCompleted
callbackfeedbackSurveyCompleted
callback
With the changes we did to the localization UI, this callback is kinda broken since the ids are auto-generated, and mean nothing to the developer.
After this PR we'll be sending the English translation of the option as well so it's easier to understand what each option represent. It requires backend changes to send the English/default language translation to the callback as well.