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

Refactor the validation logic #138

Closed
bfabio opened this issue Nov 25, 2020 · 0 comments · Fixed by #187
Closed

Refactor the validation logic #138

bfabio opened this issue Nov 25, 2020 · 0 comments · Fixed by #187
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@bfabio
Copy link
Member

bfabio commented Nov 25, 2020

The validation logic is kinda weird, we should refactor it.

@bfabio bfabio added enhancement New feature or request good first issue Good for newcomers labels Nov 25, 2020
@bfabio bfabio self-assigned this Apr 11, 2021
bfabio added a commit to bfabio/developers-italia-onboarding that referenced this issue May 26, 2021
fix: centered layout in home page

fix: phone number, don't mention E.164
fix: correctly validate phone numbers
feat: accept spaces in phone numbers

fix: better PA picker (italia#158)
* debounced
* properly aligned
* doesn't flicker
* no unintuitive readonly fields

fix: ability to edit the form on error (italia#159)

refactor: simplify the validators (italia#138)

feat: detect wrong urls (TODO)

TODO: tests
bfabio added a commit to bfabio/developers-italia-onboarding that referenced this issue May 26, 2021
* fix: centered layout in home page

* fix: don't mention E.164 in phone number validation
  E.164 is unknown to most users.
  Besides, the validation never checked for it anyway and the
  majority of past onboardings were performed with no international
  prefix.

* feat: accept spaces in phone numbers to lower the chance for
  error and improve the UX.

* feat: better PA picker (Fixes italia#158)
  The PA picker in home page does not flicker when typing,
  it's properly aligned and doesn't rely on the readonly support
  fields anymore.

  The result are shown in a more intuitive way.

  Also, the input is debounced and makes less calls to Elasticsearch.

* fix: ability to edit the form on error (Fixes italia#159)
  When the server side validation fails, the user can now fix what's
  wrong right there instead of starting over.

* refactor: simplify the validators (Fixes italia#138)

* feat: code hosting URL validation
  The validation now rejects non HTTPS URLs and URLs that don't
  look like a code hosting organization.

  (ie. https://github.com/foobar/repo will be rejected, but
  https://github.com/foobar won't)
bfabio added a commit to bfabio/developers-italia-onboarding that referenced this issue May 26, 2021
* fix: centered layout in home page

* fix: don't mention E.164 in phone number validation
  E.164 is unknown to most users.
  Besides, the validation never checked for it anyway and the
  majority of past onboardings were performed with no international
  prefix.

* feat: accept spaces in phone numbers to lower the chance for
  error and improve the UX.

* feat: better PA picker (Fixes italia#158)
  The PA picker in home page does not flicker when typing, provides
  loading feedback, it's properly aligned and doesn't rely on the
  readonly support fields anymore.

  The result are shown in a more intuitive way.

  Also, the input is debounced and makes less calls to Elasticsearch.

* fix: ability to edit the form on error (Fixes italia#159)
  When the server side validation fails, the user can now fix what's
  wrong right there instead of starting over.

* refactor: simplify the validators (Fixes italia#138)

* feat: code hosting URL validation
  The validation now rejects non HTTPS URLs and URLs that don't
  look like a code hosting organization.

  (ie. https://github.com/foobar/repo will be rejected, but
  https://github.com/foobar won't)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant