Skip to content

Commit

Permalink
fix: pva deep link in new creation (#7100)
Browse files Browse the repository at this point in the history
* removing unused commented code

* supporting client routing to defineConversation for PVA scenarios

* Ensuring runtimeType does not render as a creation dropdown for PVA scenarios

Co-authored-by: Chris Whitten <[email protected]>
  • Loading branch information
pavolum and cwhitten authored Apr 19, 2021
1 parent 20ef5de commit c0ffaf0
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,15 @@ const CreationFlowV2: React.FC<CreationFlowProps> = () => {
onDismiss={handleDismiss}
onSubmit={handleSubmit}
/>
<DefineConversationV2
createFolder={createFolder}
focusedStorageFolder={focusedStorageFolder}
path="create/:templateId"
updateFolder={updateFolder}
onCurrentPathUpdate={updateCurrentPath}
onDismiss={handleDismiss}
onSubmit={handleSubmit}
/>
<CreateOptionsV2
fetchReadMe={fetchReadMe}
path="create"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -368,17 +368,19 @@ const DefineConversationV2: React.FC<DefineConversationProps> = (props) => {
/>
</StackItem>
</Stack>
<Stack horizontal styles={stackinput} tokens={{ childrenGap: '2rem' }}>
<StackItem grow={0} styles={halfstack}>
<Dropdown
data-testid="NewDialogRuntimeType"
label={formatMessage('Runtime type')}
options={getSupportedRuntimesForTemplate()}
selectedKey={formData.runtimeType}
onChange={(_e, option) => updateField('runtimeType', option?.key.toString())}
/>
</StackItem>
</Stack>
{!isImported ?? (
<Stack horizontal styles={stackinput} tokens={{ childrenGap: '2rem' }}>
<StackItem grow={0} styles={halfstack}>
<Dropdown
data-testid="NewDialogRuntimeType"
label={formatMessage('Runtime type')}
options={getSupportedRuntimesForTemplate()}
selectedKey={formData.runtimeType}
onChange={(_e, option) => updateField('runtimeType', option?.key.toString())}
/>
</StackItem>
</Stack>
)}
{locationSelectContent}
<DialogFooter>
<DefaultButton text={formatMessage('Cancel')} onClick={onDismiss} />
Expand Down
1 change: 0 additions & 1 deletion Composer/packages/client/src/router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ const BotProjectSettings = React.lazy(() => import('./pages/botProject/BotProjec
const Diagnostics = React.lazy(() => import('./pages/diagnostics/Diagnostics'));
const ExtensionsPage = React.lazy(() => import('./pages/extensions/ExtensionsPage'));
const Publish = React.lazy(() => import('./pages/publish/Publish'));
// const BotCreationFlowRouter = React.lazy(() => import('./components/CreationFlow/CreationFlow'));
const BotCreationFlowRouterV2 = React.lazy(() => import('./components/CreationFlow/v2/CreationFlow'));
const FormDialogPage = React.lazy(() => import('./pages/form-dialog/FormDialogPage'));

Expand Down

0 comments on commit c0ffaf0

Please sign in to comment.