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
fix: check for node on app start on users machine and notify if not installed #6578
Merged
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
8fe86c3
Adding modal for node detection on app start
pavolumMsft 4773888
- Adding server side checking of node
pavolumMsft 8baf60d
Merge branch 'main' into pavolum/addNodeModal
benbrown 4c80ac2
Merge branch 'main' into pavolum/addNodeModal
pavolum c1b70ed
Merge branch 'main' into pavolum/addNodeModal
pavolum 8a8f3af
Merge branch 'main' into pavolum/addNodeModal
pavolum b8bfb57
Moving node check to creation flow as opposed to app start
pavolumMsft 91f4b1e
Merge branch 'pavolum/addNodeModal' of https://github.com/microsoft/B…
pavolumMsft bf9dd12
Add isElectron check for node modal
pavolumMsft 33746be
Merge branch 'main' into pavolum/addNodeModal
pavolum bf92a53
Merge branch 'main' into pavolum/addNodeModal
hatpick 40d83d3
Merge branch 'main' into pavolum/addNodeModal
pavolum cf25d17
Merge branch 'main' into pavolum/addNodeModal
pavolum cbe6c30
Merge branch 'main' into pavolum/addNodeModal
cwhitten 8a236d3
Merge branch 'main' into pavolum/addNodeModal
pavolum f109491
Merge branch 'main' into pavolum/addNodeModal
pavolum c782b58
Merge branch 'main' into pavolum/addNodeModal
pavolum 6a14762
Merge branch 'main' into pavolum/addNodeModal
pavolum 7dd1163
Merge branch 'main' into pavolum/addNodeModal
pavolum 7ebbd46
Merge branch 'main' into pavolum/addNodeModal
pavolum d3cd444
Merge branch 'main' into pavolum/addNodeModal
pavolum 56028de
Merge branch 'main' into pavolum/addNodeModal
pavolum 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
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
55 changes: 55 additions & 0 deletions
55
Composer/packages/client/src/components/CreationFlow/v2/NodeModal.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,55 @@ | ||
| /* eslint-disable react/no-danger */ | ||
| // Copyright (c) Microsoft Corporation. | ||
| // Licensed under the MIT License. | ||
|
|
||
| /** @jsx jsx */ | ||
| import { DialogTypes, DialogWrapper } from '@bfc/ui-shared/lib/components/DialogWrapper'; | ||
| import { jsx } from '@emotion/core'; | ||
| import formatMessage from 'format-message'; | ||
| import { DefaultButton, PrimaryButton } from 'office-ui-fabric-react/lib/components/Button'; | ||
| import { DialogFooter } from 'office-ui-fabric-react/lib/components/Dialog'; | ||
| import React from 'react'; | ||
| import { Text } from 'office-ui-fabric-react/lib/Text'; | ||
| import { mergeStyles } from 'office-ui-fabric-react/lib/Styling'; | ||
|
|
||
| const dialogFooterClass = mergeStyles({ | ||
| marginTop: '25px', | ||
| }); | ||
|
|
||
| type NodeModalProps = { | ||
| setIsOpen: Function; | ||
| isOpen: boolean; | ||
| }; | ||
|
|
||
| export const NodeModal: React.FC<NodeModalProps> = (props) => { | ||
| return ( | ||
| <DialogWrapper | ||
| dialogType={DialogTypes.DesignFlow} | ||
| isOpen={props.isOpen} | ||
| title="Node.js required" | ||
| onDismiss={() => { | ||
| props.setIsOpen(false); | ||
| }} | ||
| > | ||
| <Text> | ||
| {formatMessage( | ||
| 'Bot Framework Composer requires Node.js in order to create and run a new bot. Click “Install Node.js” to install the latest version' | ||
| )} | ||
| </Text> | ||
| <DialogFooter className={dialogFooterClass}> | ||
| <PrimaryButton | ||
| data-testid="InstallNode" | ||
| href="https://nodejs.org/en/download/" | ||
| target="_blank" | ||
| text={formatMessage('Install Node.js')} | ||
| /> | ||
| <DefaultButton | ||
| text={formatMessage('Cancel')} | ||
| onClick={() => { | ||
| props.setIsOpen(false); | ||
| }} | ||
| /> | ||
| </DialogFooter> | ||
| </DialogWrapper> | ||
| ); | ||
| }; |
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.