-
Notifications
You must be signed in to change notification settings - Fork 984
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
[#19406] fix: add min char validation for nickname #19517
Conversation
Jenkins BuildsClick to see older builds (4)
|
94% of end-end tests have passed
Failed tests (2)Click to expandClass TestOneToOneChatMultipleSharedDevicesNewUi:
Class TestCommunityMultipleDeviceMerged:
Expected to fail tests (1)Click to expandClass TestCommunityOneDeviceMerged:
Passed tests (45)Click to expandClass TestActivityMultipleDevicePRTwo:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
Class TestCommunityMultipleDeviceMergedTwo:
Class TestDeepLinksOneDevice:
Class TestActivityMultipleDevicePR:
Class TestCommunityMultipleDeviceMerged:
Class TestGroupChatMultipleDeviceMergedNewUI:
Class TestActivityCenterContactRequestMultipleDevicePR:
Class TestOneToOneChatMultipleSharedDevicesNewUiTwo:
Class TestCommunityOneDeviceMerged:
|
@mohsen-ghafouri displaying the red error "Minimum 5 characters" as soon as the user starts typing feels odd to me as the user have not yet tried to submit anything. I think simply having the button disabled until the user types 5 characters at least would get the message across. Maybe check with design team about this detail |
We should have something like you described in create profile page? So probably should be consistent to that usage. Same for create wallet account |
@OmarBasem @J-Son89 we have debounce and validation start after 300ms, the logic is the same as validation for bio and name in edit profile screen. please let me about any suggestion changes Simulator.Screen.Recording.-.iPhone.13.-.2024-04-04.at.14.50.37.mp4 |
@mohsen-ghafouri thank you for the fix. The issue below is not related to your changes but I am wondering if it can be handled in this PR. WDYT? If you consider that it should be logged separately that's okay. ISSUE 1 User is able to set invalid nickname'Update nickname' button appears enabled for a moment after user enters first symbol despite validation is failed. In such way user can set up invalid nickname: less than 5 chars / emoji / special symbols Steps:
Actual result: telegram-cloud-document-2-5222116027852145681.mp4 |
Hey @pavloburykh, yes i will address it in the current PR |
d5481e4
to
db519a8
Compare
@pavloburykh could you please check again? thanks |
@mohsen-ghafouri thanks a lot for your fixes. PR is ready to be merged. |
db519a8
to
d884324
Compare
fixes #19406
Summary
'Minimum 5 characters' validation message should be shown
Areas that maybe impacted
Steps to test
Result
Simulator.Screen.Recording.-.iPhone.13.-.2024-04-04.at.08.58.36.mp4
status: ready