-
Notifications
You must be signed in to change notification settings - Fork 210
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
Map types in info.json
files to valid HTML types
#570
Comments
GitMate.io thinks the contributor most likely able to help you is @ccpandhare. Possibly related issues are #408 (Typo in info.json), #27 (add fisheyegl module), #113 (Add a Brightness module), #157 (Add a Contrast module), and #158 (Add a Saturation Module). |
1 similar comment
GitMate.io thinks the contributor most likely able to help you is @ccpandhare. Possibly related issues are #408 (Typo in info.json), #27 (add fisheyegl module), #113 (Add a Brightness module), #157 (Add a Contrast module), and #158 (Add a Saturation Module). |
@harshkhandeparkar what values would |
|
If no one is working on this issue, can I take up this issue? |
Absolutely. That will be awesome! |
@harshkhandeparkar we cannot keep htmltype to be Number for input type float because it will not allow us to enter values like 1.5. So what should we keep htmltype when input type is float? |
@Mridul97 range will be good for float type inputs |
@harshkhandeparkar Actually I am almost done with this one, opening a pr! |
Hmm actually even I had worked on this. Should we collab?
…On Tue 8 Jan, 2019, 6:32 PM Mridul97 ***@***.*** wrote:
@harshkhandeparkar <https://github.com/HarshKhandeparkar> Actually I am
almost done with this one, opening a pr!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#570 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AhKOnyFc98ETgH6T-J4ACLEGyMOLYgnmks5vBJb5gaJpZM4Zk6ch>
.
|
Tell me your branch name. We will compare our changes. I will open a pr to your branch. Lets merge our changes. |
Branch name is htmltypes, I just opened a pr #633. |
Look at my branch |
There are multiple commits to see changes like this becomes a bit inefficient, you can see my changes here #633. |
I have opened a pr to your branch. Please check it out. Also please |
Hi, I'd like to suggest a slightly different approach, i'm sorry I didn't earlier but the rate of contribution is making my inbox a bit wild, apologies! What if we maintain a utility function which maps the We could create types = {
'string': 'input',
'text': 'textarea',
'range': ...
} And the util module could provide a method like: inputTypeConversion.typeToHtmlType('string'); What do you think of this? |
I appreciate all your work on this! I think it's a great idea. Thanks for considering my suggestion. |
@jywarren The idea you suggested is cool but same type of input can have more than one htmlType like e.g. 'integer' can have both 'range' and 'number' as input. What can we do in that case? Update: opened a new pr |
Update: opened a new pr |
New pr #674 |
ah, actually wouldn't the lookup would go from both range and number to
integer, and not the other way?
…On Tue, Jan 15, 2019 at 1:33 AM Harsh Khandeparkar ***@***.***> wrote:
New pr #674 <#674>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#570 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABfJ2LZq01JomzE5H9f3YvGeYd4cPSCks5vDXYHgaJpZM4Zk6ch>
.
|
info.json
files to valid HTML types
@jywarren I think your rebase caused some problem in the pr and no changes were made. Any thoughts? I will probably open a new pr by force pushing from local. I still have the changes there. Thanks |
Oh sorry! Yes please do.
…On Sat, Feb 9, 2019, 2:52 AM Harsh Khandeparkar ***@***.*** wrote:
@jywarren <https://github.com/jywarren> I think your rebase caused some
problem in the pr and no changes were made. Any thoughts? I will probably
open a new pr by force pushing from local. I still have the changes there.
Thanks
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#570 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABfJ3wpKD8lw8sjzqJSGMLFOoGcYOyYks5vLn4IgaJpZM4Zk6ch>
.
|
Ok will do in a few minutes |
Please describe the problem (or idea)
Input types in some module info.json files are not valid html input types. This makes typing number type values inconvenient and invalid values can be submitted. Types like integer and string should be replaced with number, range or string.
image-sequencer/src/modules/Rotate/info.json
Line 6 in 611016b
Possible Fixes
Add a new function in
examples/lib
which maps different types to valid HTML typesThank you!
The text was updated successfully, but these errors were encountered: