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
chore: Rebase main with 1.4.1 release #7678
Merged
Merged
Changes from 42 commits
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
e9d070b
release: 1.4.0-rc0
cwhitten 86b92bf
fix: lg create error with multi-language (#6412)
lei9444 44ca903
fix: Remove Attachment Lg template when they are deleted in the Respo…
tdurnford 3228d97
1.4.0-rc1
cwhitten 7d4b2bd
Added gray Composer icon to 'no triggers' dialog state (#6414)
tonyanziano 413a4ff
Get an ARM token only when publishing to Azure (#6418)
tonyanziano 17c2f7d
fix: composer doesn't see component dialogs that are in subfolders (#…
lei9444 e40f9bf
fix: revert yeoman-environment to 2.10.3 from 3.1.0 (#6415)
benbrown 8c279bc
1.4.0-rc2
cwhitten f80790d
fix: load feature flags if default keys have changed (#6432)
a-b-r-o-w-n 48c822e
fix: use new create flow during add skill if enabled (#6427)
pavolum 8f47bf1
Update bf-orchestrator to 4.12.0-beta.20210316.cdd0819 (#6435)
taicchoumsft cd026f8
fix: make CSS show triangles in project tree (#6428)
beyackle c40ecb0
feat: Implement layout to errorCallout (#6396)
cdonke 3ae8aaa
fis: change feature flag text (#6438)
pavolum 8a115bc
feat: update runtime package to 4.12.1 (#6441)
boydc2014 ffda715
fix: hidden showCode button when url is all & show code for form dial…
alanlong9278 830559e
Fixing projectId state by ordering state change (#6437)
pavolum d2cb11b
prepare changelog for 1.4.0
a-b-r-o-w-n 82a36c4
1.4.0-rc3
boydc2014 7a9d518
feat: take 4.12.2 runtime package (#6469)
boydc2014 1bcd96b
fix: Allow multiline variations for LG text and speech modalities (#6…
hatpick d5a04ac
fix actions (#6476)
hatpick ce64aef
release: 1.4.0
cwhitten 501336b
Update 1.4.0.md
cwhitten 2d7d9d1
RC4
cwhitten 0b0a126
Update bf-orchestrator to 4.12.0-beta.20210322.314475a (#6496)
taicchoumsft a7ceff8
Merge branch '1.4.0-rc4' of https://github.com/microsoft/BotFramework…
cwhitten 223388e
Merge branch '1.4.0' of https://github.com/microsoft/BotFramework-Com…
cwhitten 8f1694a
fix: unify runtime path from ejecting (#6520)
lei9444 037e7a7
1.4.1
cwhitten 6e75a0a
Adds 1.4.1 version
cwhitten d062a1c
1.4.1 release notes
cwhitten 27b2bfa
Publish page now populates publish types (#6544)
GeoffCoxMSFT c73176a
Update CHANGELOG
cwhitten d938ee7
ARM token for provisioning is now passed via body. (#6684)
tonyanziano bcf87f0
Update readme
cwhitten d167636
fix: added telemetry support to node runtime and adopted missing midd…
chon219 dcde81b
add retry logic for adding app password (#6703)
a7e5780
Update README.md
cwhitten 75ffa8e
feat: Breaking change upgrade UX from 1.4 to 2.0 (#7388)
srinaath 8eb5eb2
Merge branch '1.4.1' of https://github.com/microsoft/BotFramework-Com…
44f26f6
Updated migration aka.ms link
251b945
Merge branch 'main' into chore/1.4.1-rebase
srinaath 0c8b819
Revert "Updated migration aka.ms link"
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
20 changes: 20 additions & 0 deletions
20
Composer/packages/client/src/components/AppUpdater/breakingUpdates/breakingUpdatesMap.ts
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,20 @@ | ||
| // Copyright (c) Microsoft Corporation. | ||
| // Licensed under the MIT License. | ||
|
|
||
| import React from 'react'; | ||
| import { BreakingUpdateId } from '@botframework-composer/types'; | ||
|
|
||
| import { BreakingUpdateProps } from './types'; | ||
| import { Version1To2Content } from './version1To2'; | ||
|
|
||
| /** | ||
| * A map of breaking update identifiers to the React components responsible | ||
| * for showing each breaking update's special UX before proceeding to the | ||
| * standard update flow. | ||
| * | ||
| * Ex. 'Version2.5.xTo3.x.x': DialogWithDisclaimerAndDocsAboutNewChanges | ||
| */ | ||
|
|
||
| export const breakingUpdatesMap: Record<BreakingUpdateId, React.FC<BreakingUpdateProps>> = { | ||
| 'Version1.x.xTo2.x.x': Version1To2Content, | ||
| }; |
11 changes: 11 additions & 0 deletions
11
Composer/packages/client/src/components/AppUpdater/breakingUpdates/types.ts
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,11 @@ | ||
| // Copyright (c) Microsoft Corporation. | ||
| // Licensed under the MIT License. | ||
|
|
||
| export type BreakingUpdateProps = { | ||
| explicitCheck: boolean; | ||
| /** Called when the user dismisses the breaking changes UX; stops the update flow completely. */ | ||
| onCancel: () => void; | ||
| /** Called when the breaking changes UX is ready to continue into the normal update flow. */ | ||
| onContinue: () => void; | ||
| version?: string; | ||
| }; |
142 changes: 142 additions & 0 deletions
142
Composer/packages/client/src/components/AppUpdater/breakingUpdates/version1To2.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,142 @@ | ||
| // Copyright (c) Microsoft Corporation. | ||
| // Licensed under the MIT License. | ||
|
|
||
| /** @jsx jsx */ | ||
| import { jsx, css } from '@emotion/core'; | ||
| import React, { useCallback, useState } from 'react'; | ||
| import { DefaultButton, PrimaryButton, IButtonStyles } from 'office-ui-fabric-react/lib/Button'; | ||
| import { Dialog, DialogType, IDialogContentStyles } from 'office-ui-fabric-react/lib/Dialog'; | ||
| import { Link } from 'office-ui-fabric-react/lib/Link'; | ||
| import { NeutralColors } from '@uifabric/fluent-theme'; | ||
| import formatMessage from 'format-message'; | ||
| import { useRecoilValue } from 'recoil'; | ||
|
|
||
| import { dispatcherState, userSettingsState } from '../../../recoilModel'; | ||
|
|
||
| import { BreakingUpdateProps } from './types'; | ||
|
|
||
| const dismissButton: Partial<IButtonStyles> = { | ||
| root: { | ||
| marginRight: '6px;', | ||
| marginLeft: 'auto', | ||
| }, | ||
| }; | ||
|
|
||
| const dialogContent: Partial<IDialogContentStyles> = { | ||
| content: { color: NeutralColors.black }, | ||
| }; | ||
|
|
||
| const dialogContentWithoutHeader: Partial<IDialogContentStyles> = { | ||
| ...dialogContent, | ||
| header: { | ||
| display: 'none', | ||
| }, | ||
| inner: { | ||
| padding: '36px 24px 24px 24px', | ||
| }, | ||
| }; | ||
|
|
||
| const buttonRow = css` | ||
| display: flex; | ||
| flex-flow: row nowrap; | ||
| justify-items: flex-end; | ||
| `; | ||
|
|
||
| const gotItButton = css` | ||
| margin-left: auto; | ||
| `; | ||
|
|
||
| const updateCancelledCopy = css` | ||
| margin-top: 0; | ||
| margin-bottom: 27px; | ||
| `; | ||
|
|
||
| type ModalState = 'Default' | 'PressedNotNow'; | ||
|
|
||
| export const Version1To2Content: React.FC<BreakingUpdateProps> = (props) => { | ||
| const { explicitCheck, onCancel, onContinue } = props; | ||
| const [currentState, setCurrentState] = useState<ModalState>('Default'); | ||
| const userSettings = useRecoilValue(userSettingsState); | ||
| const { updateUserSettings } = useRecoilValue(dispatcherState); | ||
| const onNotNow = useCallback(() => { | ||
| if (userSettings.appUpdater.autoDownload) { | ||
| // disable auto update and notify the user | ||
| updateUserSettings({ | ||
| appUpdater: { | ||
| autoDownload: false, | ||
| }, | ||
| }); | ||
| setCurrentState('PressedNotNow'); | ||
| } else { | ||
| onCancel(); | ||
| } | ||
| }, []); | ||
|
|
||
| return currentState === 'Default' ? ( | ||
| <Dialog | ||
| dialogContentProps={{ | ||
| styles: dialogContent, | ||
| title: formatMessage('Composer 2.0 is now available!'), | ||
| type: DialogType.largeHeader, | ||
| }} | ||
| hidden={false} | ||
| maxWidth={427} | ||
| minWidth={427} | ||
| modalProps={{ | ||
| isBlocking: false, | ||
| }} | ||
| > | ||
| <p> | ||
| {formatMessage( | ||
| 'Bot Framework Composer 2.0 provides more built-in capabilities so you can build complex bots quickly. Update to Composer 2.0 for advanced bot templates, prebuilt components, and a runtime that is fully extensible through packages.' | ||
| )} | ||
| </p> | ||
|
|
||
| <p> | ||
| {formatMessage.rich( | ||
| 'Note: If your bot is using custom actions, they will not be supported in Composer 2.0. <a>Learn more about updating to Composer 2.0.</a>', | ||
| { | ||
| // TODO: needs real link | ||
| a: ({ children }) => ( | ||
| <Link key="v2-breaking-changes-docs" href="https://aka.ms/bot-framework-composer-2.0"> | ||
| {children} | ||
| </Link> | ||
| ), | ||
| } | ||
| )} | ||
| </p> | ||
| <div css={buttonRow}> | ||
| {explicitCheck ? ( | ||
| <DefaultButton styles={dismissButton} text={formatMessage('Cancel')} onClick={onCancel} /> | ||
| ) : ( | ||
| <DefaultButton styles={dismissButton} text={formatMessage('Not now')} onClick={onNotNow} /> | ||
| )} | ||
| <PrimaryButton text={formatMessage('Update and restart')} onClick={onContinue} /> | ||
| </div> | ||
| </Dialog> | ||
| ) : ( | ||
| <Dialog | ||
| dialogContentProps={{ | ||
| styles: dialogContentWithoutHeader, | ||
| title: undefined, | ||
| type: DialogType.normal, | ||
| }} | ||
| hidden={false} | ||
| maxWidth={427} | ||
| minWidth={427} | ||
| modalProps={{ | ||
| isBlocking: false, | ||
| }} | ||
| > | ||
| <p css={updateCancelledCopy}> | ||
| {formatMessage.rich( | ||
| 'Update cancelled. Auto-update has been turned off for this release. You can update at any time by selecting <b>Help > Check for updates.</b>', | ||
| { b: ({ children }) => <b key="v2-breaking-changes-re-enable-auto-updates">{children}</b> } | ||
| )} | ||
| </p> | ||
| <div css={buttonRow}> | ||
| <PrimaryButton css={gotItButton} text={formatMessage('Got it!')} onClick={onCancel} /> | ||
| </div> | ||
| </Dialog> | ||
| ); | ||
| }; | ||
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,4 @@ | ||
| // Copyright (c) Microsoft Corporation. | ||
| // Licensed under the MIT License. | ||
|
|
||
| export { AppUpdater } from './AppUpdater'; |
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
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.