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

Allow non-ASCII email domains in Chrome #2402

Merged
merged 7 commits into from
Jul 19, 2023
Merged

Allow non-ASCII email domains in Chrome #2402

merged 7 commits into from
Jul 19, 2023

Conversation

imnasnainaec
Copy link
Collaborator

@imnasnainaec imnasnainaec commented Jul 18, 2023

Resolves #2230


This change is Reviewable

@imnasnainaec imnasnainaec self-assigned this Jul 18, 2023
@codecov-commenter
Copy link

codecov-commenter commented Jul 18, 2023

Codecov Report

Patch coverage: 70.58% and project coverage change: +0.12 🎉

Comparison is base (61631c5) 61.21% compared to head (07ea74e) 61.34%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2402      +/-   ##
==========================================
+ Coverage   61.21%   61.34%   +0.12%     
==========================================
  Files         239      239              
  Lines        8403     8405       +2     
  Branches      523      524       +1     
==========================================
+ Hits         5144     5156      +12     
+ Misses       2876     2866      -10     
  Partials      383      383              
Flag Coverage Δ
backend 73.71% <ø> (ø)
frontend 47.68% <70.58%> (+0.27%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...rc/components/Login/SignUpPage/SignUpComponent.tsx 50.00% <66.66%> (+2.17%) ⬆️
src/components/UserSettings/UserSettings.tsx 75.86% <71.42%> (+38.82%) ⬆️

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@imnasnainaec imnasnainaec marked this pull request as draft July 18, 2023 20:29
@imnasnainaec imnasnainaec marked this pull request as ready for review July 18, 2023 22:40
Copy link
Collaborator

@jmgrady jmgrady left a comment

Choose a reason for hiding this comment

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

Reviewed 2 of 4 files at r1, 4 of 4 files at r2, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @imnasnainaec)


src/components/Login/SignUpPage/SignUpComponent.tsx line 23 at r2 (raw file):

// Chrome silently converts non-ASCII characters in a Textfield of type="email".
// Use punycode.toUnicode() to convert them from punycode back to Unicode.
const punycode = require("punycode/");

Why the JavaScript style import instead of

import punycode from "punycode/";

Code quote:

const punycode = require("punycode/");

src/components/PasswordReset/tests/ResetPage.test.tsx line 54 at r2 (raw file):

};

const customRender = async (ui: ReactElement): Promise<void> => {

I think we want to keep the option to pass additional rendering options. This will make extending these tests less of a mystery to future maintainers. See https://testing-library.com/docs/react-testing-library/setup#custom-render

Copy link
Collaborator Author

@imnasnainaec imnasnainaec left a comment

Choose a reason for hiding this comment

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

Reviewable status: 5 of 6 files reviewed, 1 unresolved discussion (waiting on @jmgrady)


src/components/Login/SignUpPage/SignUpComponent.tsx line 23 at r2 (raw file):

Previously, jmgrady (Jim Grady) wrote…

Why the JavaScript style import instead of

import punycode from "punycode/";

It doesn't have es6 module import support: mathiasbynens/punycode.js#116


src/components/PasswordReset/tests/ResetPage.test.tsx line 54 at r2 (raw file):

Previously, jmgrady (Jim Grady) wrote…

I think we want to keep the option to pass additional rendering options. This will make extending these tests less of a mystery to future maintainers. See https://testing-library.com/docs/react-testing-library/setup#custom-render

Done.

Copy link
Collaborator

@jmgrady jmgrady left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r3, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @imnasnainaec)

Copy link
Collaborator

@jmgrady jmgrady left a comment

Choose a reason for hiding this comment

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

Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @imnasnainaec)

@imnasnainaec imnasnainaec enabled auto-merge (squash) July 19, 2023 14:59
@imnasnainaec imnasnainaec merged commit c0f57c0 into master Jul 19, 2023
14 checks passed
@imnasnainaec imnasnainaec deleted the punycode branch July 19, 2023 15:05
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.

Can't handle international email addresses
3 participants