Improve the "Reposition new cards" dialog
The "Reposition new cards" dialog
- Put a limit on the numbers.
- If either of the boxes is empty, the OK button should be disabled.
- Replace "OK" with a more useful string, such as "Reposition".
- Make the title bigger (see reference).
Reference dialog
Replace "OK" with a more useful string, such as "Reposition".
TR.actionsReposition() should be used here
I'll work on this issue. ETA: 24 hours.
Hi @david-allison I was also exploring this dialog while working on issue #18553.
I implemented the following changes locally:
- Replaced OK with TR.actionsReposition()
- Disabled the positive button when either input field is empty
- Added an
InputFilterto limit the number of digits that can be entered in the Start position and Step fields
I also tested the behavior in the Android Mobile, and these are the screenshots demonstrating the validation and input limits.
Since this issue is already assigned and a PR is open, I didn’t open a competing PR. If it would be helpful, I can submit a small follow-up PR with these changes or contribute them to the existing PR. Otherwise I’m happy to leave the implementation to the current assignee.
Thanks!
Screenshots
Let's come back to this when the linked PR is closed. No point in making a decision now
Feel free to chime in on the PR with thoughts
That was quick.
@vinay-singh-dev feel free to submit a PR, or request that you're unassigned.
Please explain the maximum number which was selected. InputFilter may not be sufficient, and you may want to use the maximum value which the backend will accept, along with testing to ensure that the backend 'max' value does not change
@vinay-singh-dev I added one more task: make the title bigger. Also, one of your screenshots shows a scrollbar in the dialog which doesn't look right.
@ZornHadNoChoice I believe they're using a custom font on their phone and the title is a 'regular size'
It still looks smaller than most dialog titles.
Right you are! Needs fixing
i will raise a pr soon with suggested changes.
@ZornHadNoChoice i will raise a pr with requested changes for review in 24 hours.