Skip to content

Commit

Permalink
Feature: import from seed password strength (#639)
Browse files Browse the repository at this point in the history
* add password strength to import from seed

* snapshots

* padding and jump to password
  • Loading branch information
estebanmino authored May 7, 2019
1 parent 23d50a3 commit e89984d
Show file tree
Hide file tree
Showing 4 changed files with 407 additions and 111 deletions.
171 changes: 143 additions & 28 deletions app/components/Views/ImportFromSeed/__snapshots__/index.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ exports[`ImportFromSeed should render correctly 1`] = `
style={
Object {
"flex": 1,
"padding": 20,
"paddingHorizontal": 20,
}
}
viewIsInsideTabBar={false}
Expand Down Expand Up @@ -90,95 +90,208 @@ exports[`ImportFromSeed should render correctly 1`] = `
style={
Object {
"marginBottom": 10,
"marginTop": 20,
}
}
>
<Text
<AnimatedComponent
style={
Object {
"fontSize": 16,
"marginBottom": 10,
"marginTop": 10,
}
Array [
Object {
"color": "#999999",
"fontFamily": "Roboto",
"fontSize": 16,
"fontWeight": "400",
"marginLeft": 5,
"marginTop": -35,
"position": "absolute",
"textAlign": "left",
},
Object {
"transform": Array [
Object {
"scale": 1,
},
Object {
"translateX": 0,
},
Object {
"translateY": 50,
},
],
},
]
}
>
New Password (min. 8 characters)
</Text>
New Password
</AnimatedComponent>
<TextInput
allowFontScaling={true}
autoCapitalize="none"
onBlur={[Function]}
onChangeText={[Function]}
onFocus={[Function]}
onSubmitEditing={[Function]}
placeholder=""
rejectResponderTermination={true}
returnKeyType="next"
secureTextEntry={true}
style={
Object {
"borderColor": "#d6d9dc",
"borderBottomColor": "#d6d9dc",
"borderBottomWidth": 1,
"borderRadius": 4,
"borderWidth": 1,
"fontFamily": "Roboto",
"fontSize": 20,
"fontWeight": "400",
"padding": 10,
"paddingLeft": 0,
"paddingVertical": 10,
}
}
testID="input-password"
underlineColorAndroid="#d6d9dc"
value=""
/>
<TouchableOpacity
activeOpacity={0.2}
onPress={[Function]}
style={
Object {
"alignSelf": "flex-end",
"backgroundColor": "#FFFFFF",
"marginTop": 8,
"position": "absolute",
}
}
>
<Text
style={
Object {
"color": "#999999",
"fontFamily": "Roboto",
"fontSize": 12,
"fontWeight": "400",
"height": 20,
"marginLeft": 5,
"marginTop": 10,
"textAlign": "left",
}
}
>
Show
</Text>
</TouchableOpacity>
<Text
style={
Object {
"color": "#999999",
"fontFamily": "Roboto",
"fontSize": 12,
"fontWeight": "400",
"height": 20,
"marginLeft": 5,
"marginTop": 10,
"textAlign": "left",
}
}
/>
</View>
<View
style={
Object {
"marginBottom": 10,
"marginTop": 20,
}
}
>
<Text
<AnimatedComponent
style={
Object {
"fontSize": 16,
"marginBottom": 10,
"marginTop": 10,
}
Array [
Object {
"color": "#999999",
"fontFamily": "Roboto",
"fontSize": 16,
"fontWeight": "400",
"marginLeft": 5,
"marginTop": -35,
"position": "absolute",
"textAlign": "left",
},
Object {
"transform": Array [
Object {
"scale": 1,
},
Object {
"translateX": 0,
},
Object {
"translateY": 50,
},
],
},
]
}
>
Confirm Password
</Text>
</AnimatedComponent>
<TextInput
allowFontScaling={true}
autoCapitalize="none"
onBlur={[Function]}
onChangeText={[Function]}
onFocus={[Function]}
onSubmitEditing={[Function]}
placeholder=""
rejectResponderTermination={true}
returnKeyType="done"
secureTextEntry={true}
style={
Object {
"borderColor": "#d6d9dc",
"borderBottomColor": "#d6d9dc",
"borderBottomWidth": 1,
"borderRadius": 4,
"borderWidth": 1,
"fontFamily": "Roboto",
"fontSize": 20,
"fontWeight": "400",
"padding": 10,
"paddingLeft": 0,
"paddingVertical": 10,
}
}
testID="input-password-confirm"
underlineColorAndroid="#d6d9dc"
value=""
/>
<View
style={
Object {
"alignSelf": "flex-end",
"marginTop": 8,
"position": "absolute",
}
}
/>
<Text
style={
Object {
"color": "#999999",
"fontFamily": "Roboto",
"fontSize": 12,
"fontWeight": "400",
"height": 20,
"marginLeft": 5,
"marginTop": 10,
"textAlign": "left",
}
}
>
Must be at least 8 characters
</Text>
</View>
<View
style={
Object {
"alignItems": "center",
"flexDirection": "row",
"alignItems": "flex-start",
"marginBottom": 30,
"marginTop": 20,
"marginTop": 30,
}
}
>
Expand All @@ -200,6 +313,7 @@ exports[`ImportFromSeed should render correctly 1`] = `
style={
Object {
"flex": 0,
"marginTop": 10,
}
}
trackColor={
Expand All @@ -219,6 +333,7 @@ exports[`ImportFromSeed should render correctly 1`] = `
}
>
<StyledButton
disabled={true}
disabledContainerStyle={
Object {
"opacity": 0.6,
Expand All @@ -239,7 +354,7 @@ exports[`ImportFromSeed should render correctly 1`] = `
<View
style={
Object {
"paddingTop": 30,
"paddingVertical": 30,
}
}
>
Expand Down
Loading

0 comments on commit e89984d

Please sign in to comment.