-
Notifications
You must be signed in to change notification settings - Fork 15
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
194 feature request shareing through email identifier instead of subject identifier sub #195
Conversation
documentation
…nstead-of-subject-identifier-sub' of https://github.com/SchweizerischeBundesbahnen/netzgrafik-editor-frontend into 194-feature-request-shareing-through-email-identifier-instead-of-subject-identifier-sub
There was a problem hiding this 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.
src/app/view/project/project-dialog/project-form/project-form.component.ts
Outdated
Show resolved
Hide resolved
@@ -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) => |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
…netzgrafik-editor-frontend into 194-feature-request-shareing-through-email-identifier-instead-of-subject-identifier-sub
There was a problem hiding this 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+$/); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as https://github.com/SchweizerischeBundesbahnen/netzgrafik-editor-backend/pull/16/files#r1698074806: this is too restrictive.
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