This repository was archived by the owner on Jul 9, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 374
feat: new skill manifest creation experience #6661
Merged
Merged
Changes from all commits
Commits
Show all changes
82 commits
Select commit
Hold shift + click to select a range
e5c2ed8
add skill select profile component
c86693e
manifest file cud api
alanlong9278 0873dfc
add skill select page and publish logic
4d7cc96
folder rename
alanlong9278 b51339e
add lu files writing logic
b92eafa
add redirect to publishing page action
45be7cd
change folder name
97584b1
add lu file parsing and intents filtering
8cebf58
Merge remote-tracking branch 'origin' into qika/skill
73a802a
Support .lu and .qna for static files
luhan2017 b4da411
'notification'
alanlong9278 9c56475
manifest file name
alanlong9278 6739924
add skill add callers logic
914484d
Merge branch 'qika/skill' of https://github.com/microsoft/BotFramewor…
4fdd237
Merge branch 'julong/skill' into qika/skill
alanlong9278 5426207
add manifest path to BotStructureFilesPatterns
alanlong9278 63a04c6
fix e2e
10c31c4
Merge branch 'qika/skill' of https://github.com/microsoft/BotFramewor…
11be116
notification
alanlong9278 9a4ed99
add publish skill settings update
f81a1a4
Merge branch 'qika/skill' of https://github.com/microsoft/BotFramewor…
46e6817
pop auth
alanlong9278 87261fb
add skill hostendpoint
ff68438
Merge branch 'qika/skill' of https://github.com/microsoft/BotFramewor…
62b2be5
fix comments
ac3d987
Merge remote-tracking branch 'origin' into qika/skill
46bb687
Merge branch 'main' into qika/skill
f03067a
title change
alanlong9278 ebbcd1c
fix copy url wrong
alanlong9278 98e3d5c
fix filtered lu files
4b1f128
merge selectManifest & fetchManifest & description popup
alanlong9278 defdfc0
Merge branch 'qika/skill' of https://github.com/microsoft/BotFramewor…
alanlong9278 7a23ae9
next bugfix
alanlong9278 7ced73d
bugfix
alanlong9278 a9ee69f
Merge branch 'main' into qika/skill
alanlong9278 7e602eb
merge main & popup err
alanlong9278 6ba07c2
Fix endpoint not update issue
luhan2017 d3a0396
Fix new adaptive runtime copy skill manifests to wwwroot folder
luhan2017 4ba00b2
skip step revert
alanlong9278 318c7d4
Merge branch 'main' into qika/skill
alanlong9278 77950bc
Merge branch 'main' into qika/skill
alanlong9278 b57aac1
tooltip
alanlong9278 52f06ac
add back button & fix url color
alanlong9278 77cfd5c
Merge branch 'main' into qika/skill
luhan2017 2c51c07
Update the logic of updating skill host endpoint
luhan2017 9314af5
callers set
alanlong9278 143178d
Merge branch 'qika/skill' of https://github.com/microsoft/BotFramewor…
alanlong9278 a634daa
remove the physical file provider
luhan2017 b29bdfb
back button
alanlong9278 fc14b0c
Merge branch 'qika/skill' of https://github.com/microsoft/BotFramewor…
alanlong9278 8bd1ff5
default select publish profie
alanlong9278 897e6d7
disabled generated & publish button when no profie
alanlong9278 ec3dd79
url wrong
alanlong9278 42ff19e
Merge branch 'qika/skill' of https://github.com/microsoft/BotFramewor…
alanlong9278 07f0ebb
default publish target
alanlong9278 738a163
callers error
alanlong9278 b2e5301
add create publish profile dialog
alanlong9278 2beddcf
Merge branch 'main' into qika/skill
luhan2017 39c6543
comments
alanlong9278 c45e63b
callers
alanlong9278 517286f
lint
alanlong9278 ff5ef57
lint fix
alanlong9278 c9777ac
Merge branch 'main' into qika/skill
alanlong9278 c1539fa
lint ignore
alanlong9278 a56ec8c
test case
alanlong9278 4a8b25c
remove manifest folder from read patterns
alanlong9278 08335a3
Merge branch 'main' into qika/skill
cwhitten 6ff0cdf
comments
alanlong9278 3c56e61
Merge branch 'main' into qika/skill
alanlong9278 79ac9cf
comments & conflict
alanlong9278 ecd2711
type
alanlong9278 3d7937c
Merge branch 'main' into qika/skill
hatpick 56e1a13
bugfix
alanlong9278 3132e03
Merge branch 'qika/skill' of https://github.com/microsoft/BotFramewor…
alanlong9278 7aa94b4
Merge branch 'main' into qika/skill
alanlong9278 72855ea
Fix the logic of updating skill settings
luhan2017 bec3056
delete duplicate manifest url
alanlong9278 ea9372e
add profile popup logic
alanlong9278 0e8711b
Merge branch 'main' into qika/skill
luhan2017 0d50e5b
Merge branch 'main' into qika/skill
luhan2017 98604c8
Merge branch 'main' into qika/skill
cwhitten 92fec91
Merge branch 'main' into qika/skill
cwhitten File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
109 changes: 109 additions & 0 deletions
109
Composer/packages/client/src/pages/botProject/CreatePublishProfileDialog.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,109 @@ | ||
| // Copyright (c) Microsoft Corporation. | ||
| // Licensed under the MIT License. | ||
|
|
||
| /** @jsx jsx */ | ||
| import React, { Fragment, useState, useEffect } from 'react'; | ||
| import { jsx } from '@emotion/core'; | ||
| import { useRecoilValue } from 'recoil'; | ||
| import { PublishTarget } from '@bfc/shared'; | ||
| import formatMessage from 'format-message'; | ||
| import { ActionButton, DefaultButton } from 'office-ui-fabric-react/lib/Button'; | ||
| import { useBoolean } from '@uifabric/react-hooks'; | ||
| import Dialog, { DialogFooter } from 'office-ui-fabric-react/lib/Dialog'; | ||
|
|
||
| import { dispatcherState, settingsState, publishTypesState } from '../../recoilModel'; | ||
| import { AuthDialog } from '../../components/Auth/AuthDialog'; | ||
| import { isShowAuthDialog } from '../../utils/auth'; | ||
|
|
||
| import { PublishProfileDialog } from './create-publish-profile/PublishProfileDialog'; | ||
| import { actionButton } from './styles'; | ||
|
|
||
| // -------------------- CreatePublishProfileDialog -------------------- // | ||
|
|
||
| type CreatePublishProfileDialogProps = { | ||
| projectId: string; | ||
| }; | ||
|
|
||
| export const CreatePublishProfileDialog: React.FC<CreatePublishProfileDialogProps> = (props) => { | ||
| const { projectId } = props; | ||
| const { publishTargets } = useRecoilValue(settingsState(projectId)); | ||
| const { getPublishTargetTypes, setPublishTargets } = useRecoilValue(dispatcherState); | ||
| const publishTypes = useRecoilValue(publishTypesState(projectId)); | ||
|
|
||
| const [dialogHidden, setDialogHidden] = useState(true); | ||
| const [showAuthDialog, setShowAuthDialog] = useState(false); | ||
| const [hideDialog, { toggle: toggleHideDialog }] = useBoolean(false); | ||
|
|
||
| const dialogTitle = { | ||
| title: formatMessage('Create a publish profile to continue'), | ||
| subText: formatMessage( | ||
| 'To make your bot available as a remote skill you will need to provision Azure resources . This process may take a few minutes depending on the resources you select.' | ||
| ), | ||
| }; | ||
| const [currentPublishProfile, setCurrentPublishProfile] = useState<{ index: number; item: PublishTarget } | null>( | ||
| null | ||
| ); | ||
|
|
||
| useEffect(() => { | ||
| if (projectId) { | ||
| getPublishTargetTypes(projectId); | ||
| } | ||
| }, [projectId]); | ||
|
|
||
| return ( | ||
| <Fragment> | ||
| <Dialog | ||
| dialogContentProps={{ | ||
| title: dialogTitle.title, | ||
| subText: dialogTitle.subText, | ||
| }} | ||
| hidden={hideDialog} | ||
| minWidth={960} | ||
| modalProps={{ | ||
| isBlocking: true, | ||
| }} | ||
| onDismiss={toggleHideDialog} | ||
| > | ||
| <div css={{ height: '430px' }}> | ||
| <ActionButton | ||
| data-testid={'addNewPublishProfile'} | ||
| styles={actionButton} | ||
| onClick={() => { | ||
| isShowAuthDialog(true) ? setShowAuthDialog(true) : setDialogHidden(false); | ||
| toggleHideDialog(); | ||
| }} | ||
| > | ||
| {formatMessage('Create new publish profile')} | ||
| </ActionButton> | ||
| </div> | ||
| <DialogFooter> | ||
| <DefaultButton text={formatMessage('Cancel')} onClick={toggleHideDialog} /> | ||
| </DialogFooter> | ||
| </Dialog> | ||
| {showAuthDialog && ( | ||
| <AuthDialog | ||
| needGraph | ||
| next={() => { | ||
| setDialogHidden(false); | ||
| }} | ||
| onDismiss={() => { | ||
| setShowAuthDialog(false); | ||
| }} | ||
| /> | ||
| )} | ||
| {!dialogHidden ? ( | ||
| <PublishProfileDialog | ||
| closeDialog={() => { | ||
| setDialogHidden(true); | ||
| setCurrentPublishProfile(null); | ||
| }} | ||
| current={currentPublishProfile} | ||
| projectId={projectId} | ||
| setPublishTargets={setPublishTargets} | ||
| targets={publishTargets || []} | ||
| types={publishTypes} | ||
| /> | ||
| ) : null} | ||
| </Fragment> | ||
| ); | ||
| }; | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.