Skip to content
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: Add NumberControl #16

Merged
merged 27 commits into from
Mar 5, 2024
Merged

feat: Add NumberControl #16

merged 27 commits into from
Mar 5, 2024

Conversation

NathanFarmer
Copy link
Contributor

@NathanFarmer NathanFarmer commented Feb 29, 2024

Add NumberControl

Corresponding tests

@NathanFarmer NathanFarmer self-assigned this Feb 29, 2024
@NathanFarmer NathanFarmer marked this pull request as ready for review February 29, 2024 21:22
@NathanFarmer NathanFarmer marked this pull request as draft February 29, 2024 21:23
@NathanFarmer NathanFarmer changed the title [FEATURE] Add NumericControl [FEATURE] Add NumberControl Mar 1, 2024
@NathanFarmer NathanFarmer marked this pull request as ready for review March 1, 2024 16:55
@NathanFarmer NathanFarmer marked this pull request as draft March 4, 2024 17:53
@NathanFarmer NathanFarmer changed the title [FEATURE] Add NumberControl feat: Add NumberControl Mar 4, 2024
@NathanFarmer NathanFarmer marked this pull request as ready for review March 5, 2024 16:39
@NathanFarmer NathanFarmer marked this pull request as draft March 5, 2024 17:07
@NathanFarmer NathanFarmer marked this pull request as ready for review March 5, 2024 18:52
@NathanFarmer NathanFarmer merged commit 1186933 into main Mar 5, 2024
2 of 3 checks passed
@NathanFarmer NathanFarmer deleted the f/FE-48/number-renderer branch March 5, 2024 19:43
uischema,
}: ControlProps & RendererProps) {
const arialLabelWithFallback = label || schema.description || "Value"
const isRequired = required || uischema.options?.required as boolean
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this reads better if you type the options object separately, e.g.

const options: NumberControlOptions = uischema.options as NumberControlOptions

and then casts like

 const addonAfter = uischema.options?.addonAfter as string | undefined

are not necessary

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need to add NumberControlOptions on that line twice?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, yeah we don't!

Copy link

🎉 This PR is included in version 1.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants