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

Input Box Support for User Settings + Panel Tests #1419

Draft
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

rohinp14
Copy link
Contributor

@rohinp14 rohinp14 commented Jul 4, 2024

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

Copy link

netlify bot commented Jul 4, 2024

Deploy Preview for papaya-valkyrie-395400 canceled.

Name Link
🔨 Latest commit 3180dc5
🔍 Latest deploy log https://app.netlify.com/sites/papaya-valkyrie-395400/deploys/6695c0e9ad28400008511b16

@@ -152,7 +153,7 @@ export type SettingsFormProps = SettingsProps & HTMLAttributes<HTMLDivElement>;
export const SettingsForm = ({
settingsSchema: applicationSettingsSchema,
Copy link
Contributor

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;
Copy link
Contributor

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

@rohinp14 rohinp14 changed the title Input Box Support for User Settings Input Box Support for User Settings + Panel Tests Jul 8, 2024
@rohinp14 rohinp14 added the UI user Interface label Jul 12, 2024
@rohinp14 rohinp14 self-assigned this Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
UI user Interface
Projects
Status: 🏗 In progress
Development

Successfully merging this pull request may close these issues.

None yet

2 participants