Skip to content

fix: expose set pin error message#6219

Merged
crossle merged 1 commit intomasterfrom
ix/set-pin-error-handling
Mar 13, 2026
Merged

fix: expose set pin error message#6219
crossle merged 1 commit intomasterfrom
ix/set-pin-error-handling

Conversation

@SeniorZhai
Copy link
Member

No description provided.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR improves the PIN setup “loading” UI by wiring TIP flow step updates from TipFlowInteractor into SetupPinViewModel and rendering more granular status/error messages in the Compose loading page. It also removes an unused ConversationRepository.create(...) wrapper in favor of the suspend API.

Changes:

  • Add tipStep LiveData to SetupPinViewModel and update it via TipFlowInteractor.process(onStepChanged=...).
  • Update SetPinLoadingPage to display step-specific progress/error messages and colors based on TipStep.
  • Remove the non-suspend ConversationRepository.create(...) method.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
app/src/main/java/one/mixin/android/ui/landing/SetupPinViewModel.kt Publishes TIP step changes (TipStep) alongside existing setup state for UI consumption.
app/src/main/java/one/mixin/android/ui/landing/components/SetPinLoadingPage.kt Maps TipStep to user-facing status text/color during loading and failure states.
app/src/main/java/one/mixin/android/repository/ConversationRepository.kt Cleans up a removed/unused non-suspend create wrapper.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment on lines +86 to +92
is RetryConnect -> buildString {
if (step.reason.isNotBlank()) {
append(step.reason)
append('\n')
}
append(stringResource(R.string.Connect_to_TIP_network_failed))
}
val errorMessage by viewModel.errorMessage.observeAsState("")
val context = LocalContext.current

@crossle crossle merged commit ecdea49 into master Mar 13, 2026
6 checks passed
@crossle crossle deleted the ix/set-pin-error-handling branch March 13, 2026 15:39
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.

3 participants