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

feat: enter pin for biometrics ui update #1422

Conversation

LippaC-OPS
Copy link
Contributor

@LippaC-OPS LippaC-OPS commented Jan 31, 2025

Summary of Changes

Updated UI for the Enter PIN modal for the biometrics change flow. This PR also fixes the white space that was showing up on the bottom of the Enter PIN modal

Screenshots, videos, or gifs

Screenshot 2025-01-31 at 11 01 28 AM

Breaking change guide

N/A

Related Issues

N/A

Pull Request Checklist

Tick all boxes below to demonstrate that you have completed the respective task. If the item does not apply to your this PR check it anyway to make it apparent that there's nothing to do.

  • All commits contain a DCO Signed-off-by line (we use the DCO GitHub app to enforce this)
  • If applicable, screenshots, gifs, or video are included for UI changes
  • If applicable, breaking changes are described above along with how to address them
  • Updated documentation as needed for changed code and new or modified features
  • Added sufficient tests so that overall code coverage is not reduced

If you have any questions to any of the points above, just submit and ask! This checklist is here to help you, not to deter you from contributing!

Pro Tip 🤓

  • Read our contribution guide at least once; it will save you a few review cycles!
  • Your PR will likely not be reviewed until all the above boxes are checked and all automated checks have passed

@LippaC-OPS LippaC-OPS requested a review from a team as a code owner January 31, 2025 16:44
@LippaC-OPS LippaC-OPS marked this pull request as draft January 31, 2025 16:44
@LippaC-OPS LippaC-OPS force-pushed the feat/enter-pin-biometrics-ui-update branch 2 times, most recently from f97ebe7 to 38225fe Compare February 4, 2025 17:17
@LippaC-OPS LippaC-OPS marked this pull request as ready for review February 5, 2025 14:52
@jeznorth
Copy link

Update so we can review PR.

@@ -57,19 +58,19 @@ const PINEnter: React.FC<PINEnterProps> = ({ setAuthenticated, usage = PINEntryU
const [inlineMessageField, setInlineMessageField] = useState<InlineMessageProps>()
const [inlineMessages] = useServices([TOKENS.INLINE_ERRORS])
const [alertModalMessage, setAlertModalMessage] = useState('')
// Temporary until all use cases are built with the new design
Copy link
Contributor

Choose a reason for hiding this comment

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

What is meant by "all use cases" here?

Copy link
Contributor

Choose a reason for hiding this comment

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

Still have this question. Do you mean all extensions of Bifold or all uses of the PINEnter screen? Is PINEntryUsage.PINCheck eventually going to be the same as PINEntryUsage.ChangeBiometrics?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

My understanding is that this screen for all the different use cases will have similar design changes I just didn't put them through all at once in this PR.

Copy link
Contributor

Choose a reason for hiding this comment

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

oh ok so by use cases you mean the different PINEntryUsage types and the UX folks don't want to change the styles for all of them at once yet. I understand now, all good 👍

@bryce-mcmath bryce-mcmath self-requested a review February 12, 2025 01:08
Copy link
Contributor

@bryce-mcmath bryce-mcmath left a comment

Choose a reason for hiding this comment

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

Few things, sorry it took so long for a proper review

@@ -1,10 +1,11 @@
import React from 'react'
import { KeyboardAvoidingView, Platform, ScrollView } from 'react-native'
import { SafeAreaView } from 'react-native-safe-area-context'
import { ColorPallet } from '../../theme'
Copy link
Contributor

Choose a reason for hiding this comment

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

Theme items should come from useTheme so that themes from wallets that extend Bifold are used rather than just the base Bifold theme

@@ -296,7 +298,7 @@ exports[`PINEnter Screen PIN Enter renders correctly 1`] = `
"top": 0,
}
}
testID="com.ariesbifold:id/EnterPIN"
testID="com.ariesbifold:id/PINEnter.EnterPIN"
Copy link
Contributor

Choose a reason for hiding this comment

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

i18n entries should not be used for testIDs (this testID should remain the same)

@@ -761,7 +1241,7 @@ exports[`PINEnter Screen PIN Enter renders correctly when logged out message is
"top": 0,
}
}
testID="com.ariesbifold:id/EnterPIN"
testID="com.ariesbifold:id/PINEnter.EnterPIN"
Copy link
Contributor

Choose a reason for hiding this comment

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

"

accessibilityLabel={
usage === PINEntryUsage.PINCheck ? t('PINEnter.AppSettingChangedEnterPIN') : t('PINEnter.EnterPIN')
}
testID={testIdWithKey(inputLabelText[usage])}
Copy link
Contributor

Choose a reason for hiding this comment

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

A label is being used here rather than a testID, I think this is why the snapshot had that change I commented on.

@@ -57,19 +58,19 @@ const PINEnter: React.FC<PINEnterProps> = ({ setAuthenticated, usage = PINEntryU
const [inlineMessageField, setInlineMessageField] = useState<InlineMessageProps>()
const [inlineMessages] = useServices([TOKENS.INLINE_ERRORS])
const [alertModalMessage, setAlertModalMessage] = useState('')
// Temporary until all use cases are built with the new design
Copy link
Contributor

Choose a reason for hiding this comment

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

Still have this question. Do you mean all extensions of Bifold or all uses of the PINEnter screen? Is PINEntryUsage.PINCheck eventually going to be the same as PINEntryUsage.ChangeBiometrics?

@LippaC-OPS LippaC-OPS force-pushed the feat/enter-pin-biometrics-ui-update branch from 95c4854 to 900c983 Compare February 12, 2025 21:53
@bryce-mcmath bryce-mcmath mentioned this pull request Feb 13, 2025
5 tasks
@bryce-mcmath bryce-mcmath self-requested a review February 14, 2025 20:44
@bryce-mcmath bryce-mcmath force-pushed the feat/enter-pin-biometrics-ui-update branch from 3bf49e4 to b1b0c95 Compare February 18, 2025 16:44
@bryce-mcmath bryce-mcmath merged commit ebfc6a7 into openwallet-foundation:main Feb 18, 2025
6 checks passed
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