MM-53028 - Swap out todo plugin with snow in onboarding (#23681)

* swap out todo plugin with snow in onboarding

* Updating servicenow svg

* update name to be single word

---------

Co-authored-by: Asaad Mahmood <asaadmahmood@users.noreply.github.com>
This commit is contained in:
Scott Bishel 2023-06-13 17:48:27 -06:00 committed by GitHub
parent 6063f51b0f
commit bc66807acc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 57 additions and 73 deletions

View File

@ -168,6 +168,7 @@ PLUGIN_PACKAGES += mattermost-plugin-jenkins-v1.1.0
PLUGIN_PACKAGES += mattermost-plugin-jira-v3.2.5
PLUGIN_PACKAGES += mattermost-plugin-jitsi-v2.0.1
PLUGIN_PACKAGES += mattermost-plugin-nps-v1.3.2
PLUGIN_PACKAGES += mattermost-plugin-servicenow-v2.3.4
PLUGIN_PACKAGES += mattermost-plugin-todo-v0.6.1
PLUGIN_PACKAGES += mattermost-plugin-welcomebot-v1.3.0
PLUGIN_PACKAGES += mattermost-plugin-zoom-v1.6.0

View File

@ -0,0 +1,22 @@
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import React from 'react';
export default () => (
<svg
width='41'
height='41'
viewBox='0 0 41 41'
fill='none'
xmlns='http://www.w3.org/2000/svg'
>
<path
fillRule='evenodd'
clipRule='evenodd'
d='M20.1337 2.5C9.05453 2.5 0 11.4255 0 22.4841C0 27.9853 2.24957 33.3182 6.2988 37.0792C7.70479 38.4265 9.89812 38.5387 11.4728 37.3599C16.5344 33.5988 23.508 33.5988 28.5696 37.3599C30.1443 38.5387 32.3376 38.4265 33.7436 37.0792C41.7858 29.4448 42.1232 16.7583 34.4747 8.731C30.7629 4.80154 25.5326 2.55614 20.1337 2.5ZM20.0212 32.5323C14.6222 32.7007 10.1231 28.4344 10.0106 23.1016C10.0106 22.9332 10.0106 22.7648 10.0106 22.5964C10.0106 17.0951 14.5097 12.6043 20.0212 12.6043C25.5326 12.6043 30.0318 17.0951 30.0318 22.5964C30.2005 27.9853 25.9263 32.42 20.5836 32.5884C20.3586 32.5323 20.1899 32.5323 20.0212 32.5323Z'
fill='#62D84E'
/>
</svg>
);

File diff suppressed because one or more lines are too long

View File

@ -12,7 +12,7 @@ import GithubSVG from 'components/common/svg_images_components/github_svg';
import GitlabSVG from 'components/common/svg_images_components/gitlab_svg';
import JiraSVG from 'components/common/svg_images_components/jira_svg';
import ZoomSVG from 'components/common/svg_images_components/zoom_svg';
import TodoSVG from 'components/common/svg_images_components/todo_svg';
import ServiceNowSVG from 'components/common/svg_images_components/servicenow_svg';
import ExternalLink from 'components/external_link';
import {Animations, mapAnimationReasonToClass, Form, PreparingWorkspacePageProps} from './steps';
@ -133,37 +133,39 @@ const Plugins = (props: Props) => {
}),
},
{
onClick: () => props.setOption('todo'),
icon: <TodoSVG/>,
id: t('onboarding_wizard.plugins.todo'),
defaultMessage: 'To do',
checked: props.options.todo,
onClick: () => props.setOption('servicenow'),
icon: <ServiceNowSVG/>,
id: t('onboarding_wizard.plugins.servicenow'),
defaultMessage: 'ServiceNow',
checked: props.options.servicenow,
tooltip: formatMessage({
id: 'onboarding_wizard.plugins.todo.tooltip',
defaultMessage: 'To do tooltip',
id: 'onboarding_wizard.plugins.servicenow.tooltip',
defaultMessage: 'ServiceNow tooltip',
}),
},
]}
/>
<div className='Plugins__marketplace'>
<FormattedMessage
id='onboarding_wizard.plugins.marketplace'
defaultMessage='More tools can be added once your workspace is set up. To see all available integrations, <a>visit the Marketplace.</a>'
values={{
a: (chunks: React.ReactNode | React.ReactNodeArray) => (
<strong>
<ExternalLink
href='https://mattermost.com/marketplace/'
location='preparing_workspace_plugins'
onClick={props.handleVisitMarketPlaceClick}
>
{chunks}
</ExternalLink>
</strong>
),
}}
/>
</div>
{props.isSelfHosted && (
<div className='Plugins__marketplace'>
<FormattedMessage
id='onboarding_wizard.plugins.marketplace'
defaultMessage='More tools can be added once your workspace is set up. To see all available integrations, <a>visit the Marketplace.</a>'
values={{
a: (chunks: React.ReactNode | React.ReactNodeArray) => (
<strong>
<ExternalLink
href='https://mattermost.com/marketplace/'
location='preparing_workspace_plugins'
onClick={props.handleVisitMarketPlaceClick}
>
{chunks}
</ExternalLink>
</strong>
),
}}
/>
</div>
)}
</PageBody>
<div>
<button

View File

@ -122,7 +122,7 @@ export const PLUGIN_NAME_TO_ID_MAP: PluginNameMap = {
gitlab: 'com.github.manland.mattermost-plugin-gitlab',
jira: 'jira',
zoom: 'zoom',
todo: 'com.mattermost.plugin-todo',
servicenow: 'mattermost-plugin-servicenow',
} as const;
export type Form = {
@ -140,7 +140,7 @@ export type Form = {
gitlab: boolean;
jira: boolean;
zoom: boolean;
todo: boolean;
servicenow: boolean;
// set if user clicks skip for now
skipped: boolean;
@ -170,7 +170,7 @@ export const emptyForm = deepFreeze({
gitlab: false,
jira: false,
zoom: false,
todo: false,
servicenow: false,
// set if user clicks skip for now
skipped: false,

View File

@ -4251,8 +4251,8 @@
"onboarding_wizard.plugins.jira": "Jira",
"onboarding_wizard.plugins.jira.tooltip": "Create Jira tickets from messages in Mattermost, get notified of important updates in Jira",
"onboarding_wizard.plugins.marketplace": "More tools can be added once your workspace is set up. To see all available integrations, <a>visit the Marketplace.</a>",
"onboarding_wizard.plugins.todo": "To do",
"onboarding_wizard.plugins.todo.tooltip": "A plugin to track Todo issues in a list and send you daily reminders about your Todo list",
"onboarding_wizard.plugins.servicenow": "ServiceNow",
"onboarding_wizard.plugins.servicenow.tooltip": "This plugin serves as an integration between Mattermost and ServiceNow.",
"onboarding_wizard.plugins.zoom": "Zoom",
"onboarding_wizard.plugins.zoom.tooltip": "Start Zoom audio and video conferencing calls in Mattermost with a single click",
"onboarding_wizard.previous": "Previous",