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

Form Field Validation #85

Merged
merged 10 commits into from
Jul 12, 2019
Merged

Form Field Validation #85

merged 10 commits into from
Jul 12, 2019

Conversation

kyleknighted
Copy link
Contributor

@kyleknighted kyleknighted commented Jun 18, 2019

Provides help message and validation to each field.

Could add a list of errors at the top of the form as well, but this should work for the time being.
Feel free to share anything that may already exist for field validation.

@kyleknighted kyleknighted changed the base branch from aws to react_hook_state June 20, 2019 19:59
@kyleknighted kyleknighted changed the base branch from react_hook_state to aws June 20, 2019 19:59
@@ -2,12 +2,12 @@ import React, { useContext } from 'react';

import Wizard from 'components/common/Wizard';
import FormUtils from 'util/FormsUtils.js';
import formValidation from 'utils/formValidation';
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Maybe this stuff moves to core FormUtils?

src/web/aws-cloudwatch/StepAuthorize.jsx Outdated Show resolved Hide resolved
src/web/utils/formValidation.js Show resolved Hide resolved
src/web/aws-cloudwatch/StepAuthorize.jsx Show resolved Hide resolved
Copy link
Contributor

@danotorrey danotorrey 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 to @ceruleancee and I.

Only one thing we noticed (not a big deal right now): The API Key and API Secret accept values with just spaces. Should it be doing a not blank check there (require a value with non-space chars)? We can also just take care of this later.

Copy link
Contributor

@cobaltclaudia cobaltclaudia 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 to me.
One thing I did notice was that the the "setting up your CloudWatch Log Group" and "Pipeline Rules" links open in the same tab, and it may be easier on the users to open in a new tab rather than start the process over.

@dennisoelkers dennisoelkers merged commit ad2826c into aws Jul 12, 2019
@dennisoelkers dennisoelkers deleted the form_validation branch July 12, 2019 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants