From f6d0aca413c71643c7240c1b0e18f31c2f838d71 Mon Sep 17 00:00:00 2001 From: GeoffCoxMSFT Date: Tue, 13 Apr 2021 12:29:52 -0700 Subject: [PATCH 1/4] fix: 6566 Update provision handoff copy --- .../ProvisionHandoff/ProvisionHandoff.tsx | 23 +++++++++++++++---- .../src/components/azureProvisionDialog.tsx | 14 ++++++++--- 2 files changed, 30 insertions(+), 7 deletions(-) diff --git a/Composer/packages/lib/ui-shared/src/components/ProvisionHandoff/ProvisionHandoff.tsx b/Composer/packages/lib/ui-shared/src/components/ProvisionHandoff/ProvisionHandoff.tsx index 2027abab73..33ebcbbd7f 100644 --- a/Composer/packages/lib/ui-shared/src/components/ProvisionHandoff/ProvisionHandoff.tsx +++ b/Composer/packages/lib/ui-shared/src/components/ProvisionHandoff/ProvisionHandoff.tsx @@ -11,12 +11,14 @@ import { IconButton } from 'office-ui-fabric-react/lib/components/Button'; import { FontSizes, NeutralColors } from '@uifabric/fluent-theme/lib/fluent'; import { useRef } from 'react'; import { ITextField, TextField } from 'office-ui-fabric-react/lib/components/TextField'; +import { Link } from 'office-ui-fabric-react/lib/Link'; import { DialogTypes, DialogWrapper } from '../DialogWrapper'; type ProvisionHandoffProps = { title: string; developerInstructions: string; + learnMoreLink?: string; handoffInstructions: string; hidden: boolean; onBack: () => void; @@ -43,12 +45,23 @@ export const ProvisionHandoff = (props: ProvisionHandoffProps) => { + {props.developerInstructions && ( +
+ {props.developerInstructions}   + {props.learnMoreLink && ( + + {formatMessage('Learn More')} + + )} +
+ )}
- {formatMessage('Instructions for your Azure admin:')} + + {formatMessage('Instructions for your Azure admin')} + { />
diff --git a/extensions/azurePublish/src/components/azureProvisionDialog.tsx b/extensions/azurePublish/src/components/azureProvisionDialog.tsx index e3865830b6..8a943edfd6 100644 --- a/extensions/azurePublish/src/components/azureProvisionDialog.tsx +++ b/extensions/azurePublish/src/components/azureProvisionDialog.tsx @@ -326,7 +326,12 @@ export const AzureProvisionDialog: React.FC = () => { `; const instructions = formatMessage( - 'A hosting environment and some Azure cognitive services are required for this bot project to be published. You can find instructions for creating the necessary resources and communicating them back to me at the link below: \n\nSOME LINK GOES HERE\n\nIn addition, here is a customized command that you can use to automatically create the required resources:\n\n {command}', + '1. Run the following command and provision Azure resources on my behalf.\n' + + '2. Copy and paste the output JSON file, and securely share with me.\n\n' + + 'PROVISIONING COMMAND\n' + + '{command}' + + '\n\n' + + 'Learn more: https://aka.ms/how-to-complete-provision-handoff', { command: provisionComposer } ); @@ -1102,10 +1107,13 @@ export const AzureProvisionDialog: React.FC = () => { return (