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

[ABW-3971] - Select factors for transactions #1283

Merged
merged 6 commits into from
Dec 20, 2024

Conversation

sergiupuhalschi-rdx
Copy link
Contributor

@sergiupuhalschi-rdx sergiupuhalschi-rdx commented Dec 16, 2024

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 and build the shield at the end. For this, I defined SecurityShieldBuilderClient, an alternative to a shared viewModel, with the benefit of keeping the UI unaware of the logic, because any viewModel can directly inject this component and perform the required operations on the same instance of the SecurityShieldBuilder. The clear/reset logic is yet to be defined (when needed).

Video

Link


data class FactorSourceInstanceCard(
val id: FactorSourceId.Hash,
Copy link
Contributor

Choose a reason for hiding this comment

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

why this change? 👀

Copy link
Contributor Author

@sergiupuhalschi-rdx sergiupuhalschi-rdx Dec 20, 2024

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.

Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 40%)

See analysis details on SonarQube Cloud

@sergiupuhalschi-rdx sergiupuhalschi-rdx merged commit d1adff8 into main Dec 20, 2024
10 of 11 checks passed
@sergiupuhalschi-rdx sergiupuhalschi-rdx deleted the feature/ABW-3971-select-factors branch December 20, 2024 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants