-
Notifications
You must be signed in to change notification settings - Fork 5
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
make phone number field editable #804
Conversation
…ect into development_make_phone_editable
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.
- Please add
edit icon
so the user can know that he can edit the phone number - Prevent using the same old phone number
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.
- Search term color is not compatible with dark theme.
-
Search result is not accurate. I tried searching with eg and got the following result.
-
Also, notice at the bottom of the page, an overflow happens.
-
Padding all should be increased in the dialogue
- While editing the phone, the username and icon shows at the bottom again. Maybe we can check a better UI for this?
As for the overflow, I opened an issue for it here |
app/lib/widgets/phone_widget.dart
Outdated
child: Padding( | ||
padding: const EdgeInsets.symmetric(horizontal: 16), | ||
child: Text( | ||
'Changing your phone will require you to go through the phone verification process again.', |
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.
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.
- All applied except the space under
Cancel
button, It's a custom dialog used everywhere. They should be all consistent.
The phone number is unique per app ? |
|
|
I think we can find a better package for the mobile field. If it is not in this PR, can we open an issue for it?
I understand this is the KYC verification, but the UI feels repetitive. Perhaps we could open an issue to explore a better design? One idea could be removing this section and adding a 'Not verified' label next to the username at the top. |
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.
Adding a negative transform to the action buttons and changing the height of the dialogue will fix the spaces issue as shown below.
threefold_connect/app/lib/widgets/phone_widget.dart
Lines 170 to 178 in ef2dcf1
TextButton( | |
child: const Text( | |
'Cancel', | |
), | |
onPressed: () { | |
Navigator.pop(context); | |
}), | |
if (valid) | |
TextButton(onPressed: verifyButton, child: const Text('Add')) |
Transform.translate(
offset: const Offset(0, -20),
child:
Row(children: [
TextButton(
child: const Text(
'Cancel',
),
onPressed: () {
Navigator.pop(context);
}),
if (valid)
TextButton(onPressed: verifyButton, child: const Text('Add'))
],)
),
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.
I tried verifying with the old phone and no error msg appeared.
Lets add these test scenarios:
|
…ect into development_make_phone_editable
|
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.
I still don't see an error message when the old phone number is the same as the new one.
document_6039827747461670918.mp4
Please disregard this comment; I forgot to pull the latest changes. It's working fine now. |
…ect into development_make_phone_editable
Changes
Related Issues
Tested Scenarios
2024-12-22.15.49.57.mp4
2024-12-22.15.50.41.mp4
2024-12-22.15.51.09.mp4