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

Replace frontend jquery validations with html5 #2264

Merged
merged 7 commits into from
Nov 21, 2017

Conversation

cbrunsdon
Copy link
Contributor

This rebases #1548 to remove the pattern regex (which we don't expect to get right), and kill the validations on the state (which is checked in the backend and too complicated to do right in this PR).

Copy link
Contributor

@jhawthorn jhawthorn left a comment

Choose a reason for hiding this comment

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

👍

Copy link
Member

@tvdeyen tvdeyen left a comment

Choose a reason for hiding this comment

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

We need a changelog because stores might rely on jQuery validate

Otherwise I am very much pro this 🚀

@jhawthorn jhawthorn changed the title Add html validations from #1548 Replace frontend jquery validations with html5 Oct 26, 2017
Mihalis Fthenos and others added 7 commits November 20, 2017 13:25
Also only "require" it if its required in the schema.
Its a nice-to-have, but we validate it in the backend and the
accompanying javascript is too zaney to want to deal with here.
As we've switched to html5 vlaidations, this is no longer necessary.
We have validations now, so we need it.
When other payment options (or methods) are rendered, these fields might
not be used, but it would block the submission of the form.

We're opting to rip this out entirely and leaving it up to stores. They
can include jquery-validate, ignore this, or handle it otherwise.
@jhawthorn jhawthorn merged commit 93aff01 into solidusio:master Nov 21, 2017
kennyadsl added a commit to nebulab/solidus that referenced this pull request Nov 22, 2017
We didn't have required on lastname before solidusio#2264. Also, we don't need
the required span with * since that field is not actually required.
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.

3 participants