[Bug] There is no error returned/displayed when reaching the maximum characters allowed on the Device Name option
Steps to reproduce
- Launch Fenix.
- Login with valid credentials.
- Select and access
Device Nameoption. - Write until reaching the maximum characters allowed(128).
- Expected behavior When reaching the limit of maximum characters allowed there should be displayed an error informing the user that he reached the maximum characters allowed.
- Actual behavior There is no error displayed when reaching the maximum characters allowed,
- Device information
- Android device:
Samsung Galaxy Note 9(Android 8.1.0). - Fenix version:
6/19 1.0.0-rc.2- Notes
UNITO-UNDERSCORE!20190620-125807!UNITO-UNDERSCORE!Firefox Preview!
- Notes
┆Issue is synchronized with this Jira Task
Hi,
I investigated and there is indeed a limit of 128 characters, but no error message when reaching the limit. Here we need the help of UX to tell us the error message we need to display.
@ValentinTimisica two questions - 1) is there a reason there is a limit? 2) can we show a character counter instead of an error message?
- Here is the task that led to this change -> #3388
- The current API that we are using (EditTextPreference) does not support this feature. To obtain this functionality a refactorization of the code is required.
The preferred method would be to warn the person before running in to a limit (e.g. character count). But I don't know how much effort the refactor would be.
Would you be able to provide us with some options (e.g. char count, error msg, something else?) that are possible and how much effort it would take and we can take a look and provide feedback on direction? Thanks so much!
The possibilities that I think of are the following:
Show a Toastwhen this dialog first appear to the user referring to the max char count that we support. This has the big drawback that we cannot expect the user to count the characters to know when he will hit the limit. Trivial to implement.Show a Snackbarwhen the char limit is reached . This might be a better solution, the drawback would be that the user has no way of knowing beforehand. Trivial to implement.Show a char counter in the dialog. This is probably the best solution but this would require us to implement our own custom view which I expect that would entail the work of one engineer over 4-5 days.
Thanks for the info @ValentinTimisica. While I think the best experience is the character counter, I don't think this bit of UI warrants that much effort. I also think this is not going to be a super common thing people will run into and I don't love the idea of custom view for this.
I would advise #2 but would love for @mheubusch to jump in to confirm and provide thoughts on the string. Thanks!
So, I don't think we need an error message as the system prevents the user from making the error, ie they can't type more than 128 characters and then submit and have it fail.
See: https://github.com/mozilla-mobile/fenix/issues/17373 This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.