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

Feature/discrete continuous simple #85

Merged
merged 7 commits into from
Jul 14, 2021
Merged

Conversation

j-or
Copy link
Contributor

@j-or j-or commented Jul 14, 2021

No description provided.

@j-or j-or requested a review from langdal July 14, 2021 10:29
Copy link
Member

@langdal langdal left a comment

Choose a reason for hiding this comment

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

Looks good, and works as expected.

One issue though, when resizing width of window "Next" is placed in its own column as shown in this screenshot.

image

types/common.ts Outdated
name: string
description: string
minVal: number
maxVal: number
minVal: string
Copy link
Member

Choose a reason for hiding this comment

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

I think we should try to preserve the type as number and rely on the "discrete" flag

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The text field returns a string to useForm (even with type="number") and in this simple version the discrete flag is set by checking for "." in the string. You can force useForm to return a number but 1.0 becomes 1 before the check, so I'm not sure how we would check for that without having the explicitly set "discrete" option from the UI. So... maybe change it back to number, when we make the better version with an option to set it from the UI?

Copy link
Member

Choose a reason for hiding this comment

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

Agreed - we should change it back when discrete becomes an explicit option

@j-or
Copy link
Contributor Author

j-or commented Jul 14, 2021

Moved next experiments to always be above data points

nextexp

@j-or j-or merged commit a580758 into main Jul 14, 2021
@j-or j-or deleted the feature/discrete_continuous_simple branch July 14, 2021 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants