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-4084] Add security shield details screen #1342

Merged
merged 10 commits into from
Feb 26, 2025

Conversation

giannis-rdx
Copy link
Contributor

@giannis-rdx giannis-rdx commented Feb 24, 2025

Description

This PR solves adds the Security Shield details screen. (read commit messages for more details).
This PR is on top of this PR. So you can apply a shield and test the details screen.

Future tasks (NOT for this PR):

  • rename shield functionality
  • edit factors functionality
  • security shield status functionality

How to test

  1. Build shields and navigate to details screen

Video

here

PR submission checklist

  • I have tested security shield details screen with multiple shields.

@giannis-rdx giannis-rdx self-assigned this Feb 24, 2025
Base automatically changed from feature/ABW-4064-transaction-review-screen to main February 25, 2025 11:22

@Composable
fun Threshold.display(): String = when (this) {
is Threshold.All -> "ALL"
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this exists in crowdin, although with a different screen name.

Copy link
Contributor

Choose a reason for hiding this comment

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

Right, and it's not all caps: shieldWizardRegularAccess_thresholdDescription_all, but still it might be ok to reuse it I think.

@@ -0,0 +1,100 @@
package com.babylon.wallet.android.presentation.common.securityshields
Copy link
Contributor

@micbakos-rdx micbakos-rdx Feb 25, 2025

Choose a reason for hiding this comment

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

I would split the composables on their own files. since they are already in a common.securityshields package.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good point but in which way though?


@Composable
fun Threshold.display(): String = when (this) {
is Threshold.All -> "ALL"
Copy link
Contributor

Choose a reason for hiding this comment

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

A reminder to add this to crowdin.


@Composable
fun Threshold.display(): String = when (this) {
is Threshold.All -> "ALL"
Copy link
Contributor

Choose a reason for hiding this comment

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

Right, and it's not all caps: shieldWizardRegularAccess_thresholdDescription_all, but still it might be ok to reuse it I think.

@giannis-rdx giannis-rdx force-pushed the feature/ABW-4084-security-shield-details-screen branch from 9d78d43 to 25f7052 Compare February 25, 2025 13:21
@giannis-rdx giannis-rdx force-pushed the feature/ABW-4084-security-shield-details-screen branch from 25f7052 to 075fc98 Compare February 25, 2025 17:25
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 40%)
8.9% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

@giannis-rdx giannis-rdx merged commit f10abc5 into main Feb 26, 2025
10 of 11 checks passed
@giannis-rdx giannis-rdx deleted the feature/ABW-4084-security-shield-details-screen branch February 26, 2025 09:45
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