-
Notifications
You must be signed in to change notification settings - Fork 102
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
feat: implement floating point number field #421
Conversation
58f3395
to
d6a86cc
Compare
@Skaiir can you please summarize the current requirements of the (decimal) number field in the respective issue? I know there was a back-and-forth via Slack, and we should make sure we track these things so we can get all the details later. It would also help me to review as I'm not 100% up to date with the requirements (e.g. I saw labels changed and so on, missing the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Already left a couple of comments. Looks pretty promising 👍 I will have a deeper look at the number parsing in a second round.
packages/form-js-editor/src/features/properties-panel/entries/NumberEntry.js
Outdated
Show resolved
Hide resolved
packages/form-js-editor/src/features/properties-panel/entries/NumberEntry.js
Outdated
Show resolved
Hide resolved
packages/form-js-viewer/src/render/components/form-fields/Number.js
Outdated
Show resolved
Hide resolved
packages/form-js-viewer/test/spec/render/components/form-fields/Number.spec.js
Outdated
Show resolved
Hide resolved
packages/form-js-viewer/test/spec/render/components/form-fields/util/NumberFieldUtil.spec.js
Outdated
Show resolved
Hide resolved
packages/form-js-editor/src/features/properties-panel/PropertiesPanel.js
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple of more comments for the number field itself.
packages/form-js-viewer/test/spec/render/components/form-fields/Number.spec.js
Show resolved
Hide resolved
packages/form-js-viewer/src/render/components/form-fields/Number.js
Outdated
Show resolved
Hide resolved
packages/form-js-viewer/src/render/components/form-fields/Number.js
Outdated
Show resolved
Hide resolved
packages/form-js-viewer/src/render/components/form-fields/Number.js
Outdated
Show resolved
Hide resolved
packages/form-js-viewer/test/spec/render/components/form-fields/Number.spec.js
Show resolved
Hide resolved
packages/form-js-viewer/test/spec/render/components/form-fields/util/NumberFieldUtil.spec.js
Outdated
Show resolved
Hide resolved
2e49aa3
to
476758a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the follow-up and the extensive test coverage 🚀 Looks good to me now, just one minor formatting comment. Afterward, let's merge 👍
/cc @vsgoulart as heads up that this includes now custom styling for number fields that would need to be handled in the tasklist makeover.
Thanks, @pinussilvestrus I was waiting for this PR, it will make it possible to completely style the number inputs |
Closes #285
Please try and break this one, I've been on it for a while so I might have developed some blindspots.