-
Notifications
You must be signed in to change notification settings - Fork 7
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
[ABW-3971] - Select factors for transactions #1283
Conversation
|
||
data class FactorSourceInstanceCard( | ||
val id: FactorSourceId.Hash, |
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.
why this change? 👀
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.
The SecurityShieldBuilder
in Sargon works with FactorSourceId
so it's easier if we use it as well to prevent unnecessary conversion operations.
Quality Gate failedFailed conditions |
ABW-3971
Description
This PR adds the factor selection screen and validation logic using the
SecurityShieldBuilder
instance. We need to hold the instance along the whole security shield setup flow andbuild
the shield at the end. For this, I definedSecurityShieldBuilderClient
, an alternative to a sharedviewModel
, with the benefit of keeping the UI unaware of the logic, because anyviewModel
can directly inject this component and perform the required operations on the same instance of theSecurityShieldBuilder
. The clear/reset logic is yet to be defined (when needed).Video
Link