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

feat: extract and reuse email field as a separate component #1255

Merged
merged 1 commit into from
Dec 16, 2022
Merged

feat: extract and reuse email field as a separate component #1255

merged 1 commit into from
Dec 16, 2022

Conversation

antonmihaylov
Copy link
Contributor

Extracted an EmailField component that includes the usual good practices for email fields - type=email, inputMode="email", and autoComplete="email".

Closes #1155

Motivation and context

This makes the forms that use them a bit cleaner and enforces consistency.

Related to: #1120

Testing

Steps to test

The impact of the changes is very small, it's more of a code refactor rather than a feature.
Some things to test are if the login forms don't behave unexpected due to the browser's built-in email validation. I tested that manually and it looks good.

Affected urls

All pages that have an email field

  • /forgotten-password
  • /campaigns/[slug]/donation/[slug] - the one time donation steps
  • /profile and /profile/[slug] - the update email form in the personal info tab
  • /register
  • /contact
  • /admin/irregularities/create and /admin/irregularities/[id]

Environment

New environment variables:

None

New or updated dependencies:

None

@github-actions
Copy link

github-actions bot commented Dec 14, 2022

✅ Tests will run for this PR. Once they succeed it can be merged.

@antonmihaylov
Copy link
Contributor Author

Forgot to sync my fork, fixing the conflicts in a minute

@ani-kalpachka ani-kalpachka added the run tests Allows running the tests workflows for forked repos label Dec 15, 2022
@github-actions github-actions bot removed the run tests Allows running the tests workflows for forked repos label Dec 15, 2022
@kachar kachar merged commit 095c7aa into podkrepi-bg:master Dec 16, 2022
@kachar
Copy link
Member

kachar commented Dec 16, 2022

Kudos for the upgrade @antonmihaylov 🚀 🚀

kachar pushed a commit to dimitur2204/podkrepi-frontend that referenced this pull request Dec 19, 2022
dimitur2204 added a commit that referenced this pull request Dec 19, 2022
* 1254 - add campaign title to certificate

* 1254 - fix off imports

* 1254 - remove Certifacte-en

* 1254 - remove unecessary comments

* Remove Discord widget bot from the code (#1256)

* feat: extract email field as a separate component and reuse it in the forms (#1255)

* Improve typing of user session (#1258)

* 1129 - Add pagination to donation wishes. (#1252)

* 1129 - Add pagination to donation wishes.

* 1129 - Check if numOfPages is defined at runtime.

* Move pagination to the bottom of the wishes list

Co-authored-by: Ilko Kacharov <[email protected]>

* Create eslint.yml

* Update .all-contributorsrc

* Update .all-contributorsrc

* Update eslint.yml

* Delete eslint.yml

* Update 2.feature_request.yml

[skip ci]

* Update 1.bug_report.yml

[skip ci]

* Fetch more donation data from api and display it in the pdf

* Remove vault name from response type

Co-authored-by: Ilko Kacharov <[email protected]>
Co-authored-by: Anton Mihaylov <[email protected]>
Co-authored-by: Lyoubomir Katzarov <[email protected]>
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.

[Feature] Update login forms
3 participants