-
-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(organizations): Add button and modal for inviting new org member…
…s TASK-1373 (#5460) ### 📣 Summary <!-- Delete this section if changes are internal only. --> <!-- One sentence summary for the public changelog, worded for non-technical seasoned Kobo users. --> Adds UI to invite members to an MMO. ### 💭 Notes <!-- Delete this section if empty. --> <!-- Anything else useful that's not said above,worded for reviewers, testers, and future git archaeologist collegues. Examples: - screenshots, copy-pasted logs, etc. - what was tried but didn't work, - conscious short-term vs long-term tradeoffs, - proactively answer likely questions, --> Just the UI itself, currently does not send or receive any requests. Made with mantine components. ### 👀 Preview steps <!-- Delete this section if behavior can't change. --> <!-- If behavior changes or merely may change, add a preview of a minimal happy path. --> Bug template: 1. Have a user in an MMO and has either a Owner or Admin role 2. Enable the feature flag with `ff_inviteOrgMembers=true` 3. See the new section 4. Click on Invite members and see the new modal --------- Co-authored-by: James Kiger <[email protected]>
- Loading branch information
1 parent
c33f9a8
commit 12ecd57
Showing
6 changed files
with
83 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import {Group, Modal, Stack, Text, TextInput, ModalProps} from '@mantine/core'; | ||
import ButtonNew from 'jsapp/js/components/common/ButtonNew'; | ||
import {Select} from 'jsapp/js/components/common/Select'; | ||
|
||
export default function InviteModal(props: ModalProps) { | ||
return ( | ||
<Modal | ||
opened={props.opened} | ||
onClose={props.onClose} | ||
title={t('Invite memebrs to your team')} | ||
> | ||
<Stack> | ||
<Text> | ||
{t('Enter the username or email address of the person you wish to invite to your team. They will receive an invitation in their inbox.')} | ||
</Text> | ||
<Group w='100%' gap='xs'> | ||
<TextInput | ||
flex={3} | ||
placeholder={t('Enter username or email address')} | ||
/> | ||
<Select | ||
flex={2} | ||
placeholder={'Role'} | ||
data={['Owner', 'Admin', 'Member']} | ||
/> | ||
</Group> | ||
<Group w='100%' justify='flex-end'> | ||
<ButtonNew size='lg'>{t('Send invite')}</ButtonNew> | ||
</Group> | ||
</Stack> | ||
</Modal> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import {Divider} from '@mantine/core'; | ||
|
||
export const DividerThemeKobo = Divider.extend({ | ||
defaultProps: { | ||
color: 'gray.7', | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters