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

194 feature request shareing through email identifier instead of subject identifier sub #195

Conversation

aiAdrian
Copy link
Collaborator

@aiAdrian aiAdrian commented Jul 24, 2024

Description

This pull request requires as well the backend pull request SchweizerischeBundesbahnen/netzgrafik-editor-backend#16

User can now enter partner's email adresse to share projects.

Examples

image

aiAdrian and others added 4 commits July 24, 2024 08:58
Copy link
Contributor

@chenkins chenkins left a comment

Choose a reason for hiding this comment

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

Main design comments in backend pr review , only two minor change requests here.

@@ -49,11 +49,11 @@ const userIdsValidator = (control: UntypedFormControl) => {
return null;
}
const userIds: string[] = control.value;
const invalidIds = userIds.filter((id) => !id.match(/^(u|ue|e)\d+$/));
const invalidIds = userIds.filter((id) =>
Copy link
Contributor

Choose a reason for hiding this comment

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

@aiAdrian rename variable to invalidEmails. Also rename userIdsValidator

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

@aiAdrian aiAdrian requested review from chenkins and louisgreiner and removed request for chenkins July 25, 2024 12:19
Copy link
Collaborator

@louisgreiner louisgreiner left a comment

Choose a reason for hiding this comment

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

Lgtm, translation will have to take this PR in account too

// email adresse validator: regex to match emails using the expression
const invalidEmailPattern = userIds.filter((id) => {
const retVal =
id.match(/^([a-z0-9_\\.-]+)@([\da-z\\.-]+)\.([a-z\\.]{2,6})|(u|ue|e)\d+$/);
Copy link
Collaborator

Choose a reason for hiding this comment

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

@aiAdrian aiAdrian merged commit 41341ca into main Jul 31, 2024
6 checks passed
@aiAdrian aiAdrian deleted the 194-feature-request-shareing-through-email-identifier-instead-of-subject-identifier-sub branch July 31, 2024 13:24
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 request]: Shareing through email identifier instead of subject Identifier (sub).
4 participants