-
Notifications
You must be signed in to change notification settings - Fork 27
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
Input Box Support for User Settings + Panel Tests #1419
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for papaya-valkyrie-395400 canceled.
|
@@ -152,7 +153,7 @@ export type SettingsFormProps = SettingsProps & HTMLAttributes<HTMLDivElement>; | |||
export const SettingsForm = ({ | |||
settingsSchema: applicationSettingsSchema, |
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.
no need to rename any of these props,. just refer to them in the code as-is, so
export const SettingsForm = ({
settings,
settingsSchema,
onSettingChanged,
...htmlAttributes
})
const inputHandler = useCallback<FormEventHandler>( | ||
(event) => { | ||
const fieldName = getFieldNameFromEventTarget(event); | ||
const { value } = event.target as HTMLInputElement; |
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.
this will always be a string. WIll need to convert to a numeric, if that is what the property represents
Input box change handler and validation logic for user settings form
Component cypress tests for user settings panel
Add tooltip for user prompts when validation fails