2022-06-21 17:19:12 +05:30
import { s _ _ } from '~/locale' ;
2021-09-30 23:02:18 +05:30
2022-07-23 23:45:48 +05:30
export const CLOSE _TO _LIMIT _COUNT = 2 ;
2021-04-17 20:07:23 +05:30
export const SEARCH _DELAY = 200 ;
2021-12-11 22:18:48 +05:30
export const INVITE _MEMBERS _FOR _TASK = {
minimum _access _level : 30 ,
name : 'invite_members_for_task' ,
view : 'modal_opened_from_email' ,
submit : 'submit' ,
} ;
2021-09-04 01:27:46 +05:30
export const GROUP _FILTERS = {
ALL : 'all' ,
DESCENDANT _GROUPS : 'descendant_groups' ,
} ;
2021-09-30 23:02:18 +05:30
2021-10-27 15:23:28 +05:30
export const USERS _FILTER _ALL = 'all' ;
export const USERS _FILTER _SAML _PROVIDER _ID = 'saml_provider_id' ;
2021-12-11 22:18:48 +05:30
export const TRIGGER _ELEMENT _BUTTON = 'button' ;
export const TRIGGER _ELEMENT _SIDE _NAV = 'side-nav' ;
2022-07-23 23:45:48 +05:30
export const TRIGGER _DEFAULT _QA _SELECTOR = 'invite_members_button' ;
2021-12-11 22:18:48 +05:30
export const MEMBERS _MODAL _DEFAULT _TITLE = s _ _ ( 'InviteMembersModal|Invite members' ) ;
export const MEMBERS _MODAL _CELEBRATE _TITLE = s _ _ (
'InviteMembersModal|GitLab is better with colleagues!' ,
) ;
export const MEMBERS _MODAL _CELEBRATE _INTRO = s _ _ (
'InviteMembersModal|How about inviting a colleague or two to join you?' ,
) ;
export const MEMBERS _TO _GROUP _DEFAULT _INTRO _TEXT = s _ _ (
"InviteMembersModal|You're inviting members to the %{strongStart}%{name}%{strongEnd} group." ,
) ;
export const MEMBERS _TO _PROJECT _DEFAULT _INTRO _TEXT = s _ _ (
"InviteMembersModal|You're inviting members to the %{strongStart}%{name}%{strongEnd} project." ,
) ;
export const MEMBERS _TO _PROJECT _CELEBRATE _INTRO _TEXT = s _ _ (
"InviteMembersModal|Congratulations on creating your project, you're almost there!" ,
) ;
2022-07-16 23:28:13 +05:30
export const MEMBERS _SEARCH _FIELD = s _ _ ( 'InviteMembersModal|Username or email address' ) ;
2021-12-11 22:18:48 +05:30
export const MEMBERS _PLACEHOLDER = s _ _ ( 'InviteMembersModal|Select members or type email addresses' ) ;
2022-07-16 23:28:13 +05:30
export const MEMBERS _PLACEHOLDER _DISABLED = s _ _ (
'InviteMembersModal|This feature is disabled until this group has space for more members.' ,
) ;
2021-12-11 22:18:48 +05:30
export const MEMBERS _TASKS _TO _BE _DONE _TITLE = s _ _ (
'InviteMembersModal|Create issues for your new team member to work on (optional)' ,
) ;
export const MEMBERS _TASKS _TO _BE _DONE _NO _PROJECTS = s _ _ (
'InviteMembersModal|To assign issues to a new team member, you need a project for the issues. %{linkStart}Create a project to get started.%{linkEnd}' ,
) ;
export const MEMBERS _TASKS _PROJECTS _TITLE = s _ _ (
'InviteMembersModal|Choose a project for the issues' ,
) ;
export const GROUP _MODAL _DEFAULT _TITLE = s _ _ ( 'InviteMembersModal|Invite a group' ) ;
export const GROUP _MODAL _TO _GROUP _DEFAULT _INTRO _TEXT = s _ _ (
"InviteMembersModal|You're inviting a group to the %{strongStart}%{name}%{strongEnd} group." ,
) ;
export const GROUP _MODAL _TO _PROJECT _DEFAULT _INTRO _TEXT = s _ _ (
"InviteMembersModal|You're inviting a group to the %{strongStart}%{name}%{strongEnd} project." ,
) ;
export const GROUP _SEARCH _FIELD = s _ _ ( 'InviteMembersModal|Select a group to invite' ) ;
export const GROUP _PLACEHOLDER = s _ _ ( 'InviteMembersModal|Search for a group to invite' ) ;
export const ACCESS _LEVEL = s _ _ ( 'InviteMembersModal|Select a role' ) ;
export const ACCESS _EXPIRE _DATE = s _ _ ( 'InviteMembersModal|Access expiration date (optional)' ) ;
export const TOAST _MESSAGE _SUCCESSFUL = s _ _ ( 'InviteMembersModal|Members were successfully added' ) ;
export const INVALID _FEEDBACK _MESSAGE _DEFAULT = s _ _ ( 'InviteMembersModal|Something went wrong' ) ;
export const READ _MORE _TEXT = s _ _ (
` InviteMembersModal|%{linkStart}Read more%{linkEnd} about role permissions ` ,
) ;
export const INVITE _BUTTON _TEXT = s _ _ ( 'InviteMembersModal|Invite' ) ;
2022-07-16 23:28:13 +05:30
export const INVITE _BUTTON _TEXT _DISABLED = s _ _ ( 'InviteMembersModal|Manage members' ) ;
2021-12-11 22:18:48 +05:30
export const CANCEL _BUTTON _TEXT = s _ _ ( 'InviteMembersModal|Cancel' ) ;
2022-07-16 23:28:13 +05:30
export const CANCEL _BUTTON _TEXT _DISABLED = s _ _ ( 'InviteMembersModal|Explore paid plans' ) ;
2021-12-11 22:18:48 +05:30
export const HEADER _CLOSE _LABEL = s _ _ ( 'InviteMembersModal|Close invite team members' ) ;
2022-08-13 15:12:31 +05:30
export const MEMBER _ERROR _LIST _TEXT = s _ _ (
'InviteMembersModal|Review the invite errors and try again:' ,
) ;
2021-12-11 22:18:48 +05:30
2022-04-04 11:22:00 +05:30
export const MEMBER _MODAL _LABELS = {
modal : {
default : {
title : MEMBERS _MODAL _DEFAULT _TITLE ,
2021-12-11 22:18:48 +05:30
} ,
2022-04-04 11:22:00 +05:30
celebrate : {
title : MEMBERS _MODAL _CELEBRATE _TITLE ,
intro : MEMBERS _MODAL _CELEBRATE _INTRO ,
2021-12-11 22:18:48 +05:30
} ,
} ,
2022-04-04 11:22:00 +05:30
toGroup : {
default : {
introText : MEMBERS _TO _GROUP _DEFAULT _INTRO _TEXT ,
2021-12-11 22:18:48 +05:30
} ,
2022-04-04 11:22:00 +05:30
} ,
toProject : {
default : {
introText : MEMBERS _TO _PROJECT _DEFAULT _INTRO _TEXT ,
2021-12-11 22:18:48 +05:30
} ,
2022-04-04 11:22:00 +05:30
celebrate : {
introText : MEMBERS _TO _PROJECT _CELEBRATE _INTRO _TEXT ,
2021-12-11 22:18:48 +05:30
} ,
} ,
2022-04-04 11:22:00 +05:30
searchField : MEMBERS _SEARCH _FIELD ,
placeHolder : MEMBERS _PLACEHOLDER ,
2022-07-16 23:28:13 +05:30
placeHolderDisabled : MEMBERS _PLACEHOLDER _DISABLED ,
2022-04-04 11:22:00 +05:30
tasksToBeDone : {
title : MEMBERS _TASKS _TO _BE _DONE _TITLE ,
noProjects : MEMBERS _TASKS _TO _BE _DONE _NO _PROJECTS ,
} ,
tasksProject : {
title : MEMBERS _TASKS _PROJECTS _TITLE ,
} ,
toastMessageSuccessful : TOAST _MESSAGE _SUCCESSFUL ,
2022-08-13 15:12:31 +05:30
memberErrorListText : MEMBER _ERROR _LIST _TEXT ,
2022-04-04 11:22:00 +05:30
} ;
export const GROUP _MODAL _LABELS = {
title : GROUP _MODAL _DEFAULT _TITLE ,
toGroup : {
introText : GROUP _MODAL _TO _GROUP _DEFAULT _INTRO _TEXT ,
} ,
toProject : {
introText : GROUP _MODAL _TO _PROJECT _DEFAULT _INTRO _TEXT ,
} ,
searchField : GROUP _SEARCH _FIELD ,
placeHolder : GROUP _PLACEHOLDER ,
2021-12-11 22:18:48 +05:30
toastMessageSuccessful : TOAST _MESSAGE _SUCCESSFUL ,
} ;
2022-01-26 12:08:38 +05:30
export const LEARN _GITLAB = 'learn_gitlab' ;
2022-07-16 23:28:13 +05:30
export const ON _SHOW _TRACK _LABEL = 'locked_modal_viewed' ;
export const ON _CLOSE _TRACK _LABEL = 'explore_paid_plans_clicked' ;
export const ON _SUBMIT _TRACK _LABEL = 'manage_members_clicked' ;
export const WARNING _ALERT _TITLE = s _ _ (
'InviteMembersModal|You only have space for %{count} more %{members} in %{name}' ,
) ;
2022-07-23 23:45:48 +05:30
export const WARNING _ALERT _TITLE _PERSONAL _NAMESPACE = s _ _ (
'InviteMembersModal|You only have space for %{count} more %{members} in your personal projects' ,
) ;
2022-07-16 23:28:13 +05:30
export const DANGER _ALERT _TITLE = s _ _ (
"InviteMembersModal|You've reached your %{count} %{members} limit for %{name}" ,
) ;
2022-07-23 23:45:48 +05:30
export const DANGER _ALERT _TITLE _PERSONAL _NAMESPACE = s _ _ (
"InviteMembersModal|You've reached your %{count} %{members} limit for your personal projects" ,
) ;
2022-07-16 23:28:13 +05:30
export const REACHED _LIMIT _MESSAGE = s _ _ (
'InviteMembersModal|You cannot add more members, but you can remove members who no longer need access.' ,
) ;
export const REACHED _LIMIT _UPGRADE _SUGGESTION _MESSAGE = REACHED _LIMIT _MESSAGE . concat (
s _ _ (
'InviteMembersModal| To get more members and access to additional paid features, an owner of this namespace can start a trial or upgrade to a paid tier.' ,
) ,
) ;
export const CLOSE _TO _LIMIT _MESSAGE = s _ _ (
'InviteMembersModal|To get more members an owner of this namespace can %{trialLinkStart}start a trial%{trialLinkEnd} or %{upgradeLinkStart}upgrade%{upgradeLinkEnd} to a paid tier.' ,
) ;
2022-07-23 23:45:48 +05:30
export const CLOSE _TO _LIMIT _MESSAGE _PERSONAL _NAMESPACE = s _ _ (
'InviteMembersModal|To make more space, you can remove members who no longer need access.' ,
) ;