[CORL-183] Invite Users (#2349)

* feat: initial UI impl

* feat: attach react devtools hook in development

* feat: working mutations

* feat: polished the invite modal with mutation

Co-authored-by: Vinh <vinh@wikiwi.io>

* feat: added check

* feat: improve the invite server impl

* feat: admin invite interface improvements

* fix: update tests

* feat: moved invite UI to admin

* fix: include email enabled as condition for invite

* feat: added admin tests

* feat: added tests for invite complete flow

* fix: review
This commit is contained in:
Wyatt Johnson
2019-06-28 22:51:42 +00:00
committed by GitHub
co-authored by Vinh
parent 76033118e5
commit 51b142035e
96 changed files with 3647 additions and 847 deletions
@@ -53,11 +53,19 @@ export type ConfirmEmailTemplate = UserNotificationContext<
}
>;
export type InviteEmailTemplate = UserNotificationContext<
"invite",
{
inviteURL: string;
}
>;
type Templates =
| ForgotPasswordTemplate
| BanTemplate
| SuspendTemplate
| ConfirmEmailTemplate
| ForgotPasswordTemplate
| InviteEmailTemplate
| PasswordChangeTemplate
| ConfirmEmailTemplate;
| SuspendTemplate;
export { Templates as Template };
@@ -0,0 +1,6 @@
{% extends "layouts/user-notification.html" %}
{% block content %}
You have been invited to join the {{ context.organizationName }} team on Coral. Finish
setting up your account <a data-l10n-name="invite" href="{{ context.inviteURL }}">here</a>.
{% endblock %}