MM-50963 - enhance onboarding self-hosted telemetry (#23051)
Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
b4f974377c
Коммит
a85a7c8422
@@ -38,8 +38,8 @@ type Props = PreparingWorkspacePageProps & {
|
|||||||
setInviteId: (inviteId: string) => void;
|
setInviteId: (inviteId: string) => void;
|
||||||
}
|
}
|
||||||
|
|
||||||
const reportValidationError = debounce(() => {
|
const reportValidationError = debounce((error: string) => {
|
||||||
trackEvent('first_admin_setup', 'validate_organization_error');
|
trackEvent('first_admin_setup', 'admin_onboarding_organization_submit_fail', {error});
|
||||||
}, 700, {leading: false});
|
}, 700, {leading: false});
|
||||||
|
|
||||||
const Organization = (props: Props) => {
|
const Organization = (props: Props) => {
|
||||||
@@ -123,7 +123,7 @@ const Organization = (props: Props) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (validation.error || teamApiError.current) {
|
if (validation.error || teamApiError.current) {
|
||||||
reportValidationError();
|
reportValidationError(validation.error ? validation.error : teamApiError.current! as string);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
props.next?.();
|
props.next?.();
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ type Props = PreparingWorkspacePageProps & {
|
|||||||
setOption: (option: keyof Form['plugins']) => void;
|
setOption: (option: keyof Form['plugins']) => void;
|
||||||
className?: string;
|
className?: string;
|
||||||
isSelfHosted: boolean;
|
isSelfHosted: boolean;
|
||||||
|
handleVisitMarketPlaceClick: () => void;
|
||||||
}
|
}
|
||||||
const Plugins = (props: Props) => {
|
const Plugins = (props: Props) => {
|
||||||
const {formatMessage} = useIntl();
|
const {formatMessage} = useIntl();
|
||||||
@@ -178,6 +179,7 @@ const Plugins = (props: Props) => {
|
|||||||
<ExternalLink
|
<ExternalLink
|
||||||
href='https://mattermost.com/marketplace/'
|
href='https://mattermost.com/marketplace/'
|
||||||
location='preparing_workspace_plugins'
|
location='preparing_workspace_plugins'
|
||||||
|
onClick={props.handleVisitMarketPlaceClick}
|
||||||
>
|
>
|
||||||
{chunks}
|
{chunks}
|
||||||
</ExternalLink>
|
</ExternalLink>
|
||||||
|
|||||||
@@ -267,6 +267,7 @@ const PreparingWorkspace = (props: Props) => {
|
|||||||
const goToChannels = () => {
|
const goToChannels = () => {
|
||||||
dispatch({type: GeneralTypes.SHOW_LAUNCHING_WORKSPACE, open: true});
|
dispatch({type: GeneralTypes.SHOW_LAUNCHING_WORKSPACE, open: true});
|
||||||
props.history.push(`/${team.name}/channels${Constants.DEFAULT_CHANNEL}`);
|
props.history.push(`/${team.name}/channels${Constants.DEFAULT_CHANNEL}`);
|
||||||
|
trackEvent('first_admin_setup', 'admin_setup_complete');
|
||||||
};
|
};
|
||||||
|
|
||||||
const sendFormEnd = Date.now();
|
const sendFormEnd = Date.now();
|
||||||
@@ -460,6 +461,9 @@ const PreparingWorkspace = (props: Props) => {
|
|||||||
show={shouldShowPage(WizardSteps.Plugins)}
|
show={shouldShowPage(WizardSteps.Plugins)}
|
||||||
transitionDirection={getTransitionDirection(WizardSteps.Plugins)}
|
transitionDirection={getTransitionDirection(WizardSteps.Plugins)}
|
||||||
className='child-page'
|
className='child-page'
|
||||||
|
handleVisitMarketPlaceClick={() => {
|
||||||
|
trackEvent('first_admin_setup', 'click_visit_marketplace_link');
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
<InviteMembers
|
<InviteMembers
|
||||||
onPageView={onPageViews[WizardSteps.InviteMembers]}
|
onPageView={onPageViews[WizardSteps.InviteMembers]}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user