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

IOS-8687 New failed offline attestation flow #4443

Merged
merged 1 commit into from
Dec 24, 2024

Conversation

tureck1y
Copy link
Collaborator

@tureck1y tureck1y commented Dec 20, 2024

@@ -25,6 +26,7 @@ enum EmailType {
return subject
case .failedToPushTx: return Localization.feedbackSubjectTxPushFailed
case .activatedCard: return Localization.feedbackSubjectPreActivatedWallet
case .attestationFailed: return "Card attestation failed"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Думаю не стоит вообще темы писем переводить, это же неудобно анализировать

@@ -192,6 +192,8 @@ extension Analytics {

case onboardingSeedScreenCapture = "[Onboarding / Seed Phrase] Screen Capture"

case onboardingOfflineAttestationFailed = "[Onboarding] Offline Attestation Failed"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

группа такая, хоть это и не только на онбординге может быть

return Just(UserWalletRepositoryResult.error(error))
default:
failedCardScanTracker.recordFailure()
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

не трекаем, а сразу показываем ошибку

@@ -90,24 +90,3 @@ enum UserWalletRepositoryUnlockMethod {
}
}
}

enum UserWalletRepositoryError: String, Error, LocalizedError, BindableError {
Copy link
Collaborator Author

@tureck1y tureck1y Dec 20, 2024

Choose a reason for hiding this comment

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

унес без изменений логики

@@ -15,10 +15,6 @@ class AppPresenter {

private init() {}

func showError(_ error: Error) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

не использовалось больше

}

extension BindableError where Self: Error {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

из-за этого были проблемы, которые можно увидеть в DetailsViewModel, отрефачил на более простой и очевидный подход

@tureck1y tureck1y marked this pull request as ready for review December 20, 2024 19:15
@tureck1y tureck1y requested a review from a team as a code owner December 20, 2024 19:15
@tureck1y tureck1y merged commit 10d76f2 into develop Dec 24, 2024
8 checks passed
@tureck1y tureck1y deleted the IOS-8687_offline_attest_faield branch December 24, 2024 23:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants