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 375
fix: converting bot with custom actions (ui update) #7672
Merged
Merged
Changes from 2 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
4ba0cc0
fix: converting bot with custom actions
lei9444 aa13676
fix lint
lei9444 90f6f01
Merge branch 'main' into migrateui
lei9444 f473256
fix comments
lei9444 8656929
update the show message logic
lei9444 9287b18
Merge branch 'main' into migrateui
srinaath 7ce857b
Merge branch 'main' into migrateui
hatpick 51de837
Merge branch 'main' into migrateui
hatpick 26c3fea
fix comments
lei9444 8dfb055
Merge branch 'main' into migrateui
lei9444 c514b13
fix conflict
lei9444 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
32 changes: 32 additions & 0 deletions
32
Composer/packages/client/src/components/BotConvertDialog.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,32 @@ | ||
| // Copyright (c) Microsoft Corporation. | ||
| // Licensed under the MIT License. | ||
| /** @jsx jsx */ | ||
| import { jsx, css } from '@emotion/core'; | ||
| import { OpenConfirmModal } from '@bfc/ui-shared'; | ||
| import formatMessage from 'format-message'; | ||
| import { Link } from 'office-ui-fabric-react/lib/Link'; | ||
|
|
||
| const contentContainer = css` | ||
| max-width: 444px; | ||
| `; | ||
|
|
||
| export const BotConvertConfirmDialog = () => { | ||
| return OpenConfirmModal(formatMessage('Convert your project to the latest format'), '', { | ||
| confirmText: formatMessage('Convert'), | ||
| onRenderContent: () => ( | ||
| <div css={contentContainer}> | ||
| <p> | ||
| {formatMessage( | ||
| 'This project was created in an older version of Composer. To open this project in Composer 2.0, we must copy your project and convert it to the latest format. Your original project will not be changed.' | ||
| )} | ||
| </p> | ||
| <p> | ||
| {formatMessage('If you have created custom components, you might need to rebuild them. ')} | ||
| <Link href="https://github.com/microsoft/botframework-components/blob/main/docs/overview.md" target="_blank"> | ||
| Learn more about custom components. | ||
| </Link> | ||
| </p> | ||
| </div> | ||
| ), | ||
| }); | ||
| }; | ||
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
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
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
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
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
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
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.