-
-
Notifications
You must be signed in to change notification settings - Fork 443
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 nutrition input numeric #2605
Comments
We can't have a numeric input type for nutritional fact because we need to type the following characters as well "<", ">"and "~". It is not possible to type these on a numeric input type. |
Sorry for the late answer. |
@MauroMombelli Your suggestion looks good to me! I am reopening this issue. |
@MauroMombelli @huzaifaiftikhar Can I please take this Issue if you are not working on it? |
@vanshikaarora go ahead :) |
Thanks @huzaifaiftikhar for assigning the work to me:) Well before working upon I would mention all the changes that I'll be making. As I see in nutrition fact only Serving size has a numeric keyboard while all other fields have full keyboard. So I need to change input type for all of them as numeric. Well, if there anything else you would like to add then please inform here:) |
Hey @huzaifaiftikhar I have raised a PR here #2650 Can you please review :) |
@vanshikaarora I have gone through the PR, I guess you didn't get the issue exactly. Anyway, I'll try to explain to my best. |
@huzaifaiftikhar I am sorry for not understanding the exact issue before. And thanks for explaining it as well:) .
While fixing this, I felt that this is disturbing the UI and adding two spinners for each field makes it a big congested. So, how about adding a single spinner just next to the radio boxes. Whenever the user taps on edit text numeric keyboard pops up and the spinner,next to radio boxes for these characters becomes visible? |
@vanshikaarora I guess the spinner beside the radio boxes won't be visible when we are inputting the last nutrient for a long list of nutrients. Can you post screenshots for both the approaches? |
Hey @huzaifaiftikhar here are the screenshots for both the states
|
@teolemon @deniger @brandenfung @Karljoones Can you take a look at this? Which UI seems appropriate? |
My 5 cent:
I see you ask for "NUMERIC", in my opinion the possible sign would have to
be hardcoded (><~ and no simbol).
A second phase of this PR would could be to update the DB field structure
to break the filed into 2 field, numeric and symbols(char? Enum?).
I like the one spinner for field, but maybe placing them both on the right?
[....number...][simbol][unit]
…On Fri, May 24, 2019, 10:46 Huzaifa Iftikhar ***@***.***> wrote:
@teolemon <https://github.com/teolemon> @deniger
<https://github.com/deniger> @brandenfung <https://github.com/brandenfung>
@Karljoones <https://github.com/Karljoones> Can you take a look at this?
Which UI seems appropriate?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2605?email_source=notifications&email_token=ABQTZUKZAQY5ES3X553N4YTPW6TNBA5CNFSM4HK4HKH2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWESG6Y#issuecomment-495526779>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABQTZUKEWED2KXDLRMJG2QTPW6TNBANCNFSM4HK4HKHQ>
.
|
@huzaifaiftikhar Are the symbols very frequently used while filling these fields? If not, then I think that just one spinner for all could a better option(position of this can be decided according to convenience). Rest I leave it upon the opinion of other community members, to decide. And I'll modify accordingly:) |
I'm pretty sure that these symbols are not used often. Keeping a single spinner can work provided that it doesn't create any confusion for the user. |
@teolemon @deniger @brandenfung @Karljoones Can you please pitch in your suggestions too? I'll add single spinner at the appropriate position, if you agree with it. |
IMHO, i'll try to do something like that but I will let @teolemon gives his feedback :)
If it's the chosen solution, the code should be organized to avoid duplicated block .... |
Any updates with regard to this issue? It would significantly speed up data entry to have a numeric input. I created a fork to change the input type before finding this thread. I'd personally go for a gross between @deniger and @vanshikaarora 's solutions. Have a light grey dropdown (as @vanshikaarora) and add symbols (as @deniger). |
@deniger your solution seems reasonable. This bug passed under my radar. |
Summary:
Make the input box for nutritional fact numeric
Steps to reproduce:
if you try to add the nutritional fact, the full keyboard appears instead of the numeric
The text was updated successfully, but these errors were encountered: