Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add runtime settings page and eject #2572

Merged
merged 36 commits into from
Apr 23, 2020
Merged

feat: Add runtime settings page and eject #2572

merged 36 commits into from
Apr 23, 2020

Conversation

benbrown
Copy link
Contributor

@benbrown benbrown commented Apr 8, 2020

Description

Adds a new settings page that controls the settings related to using a custom runtime.

If a user enables the custom runtime option, they can specify the path to the runtime and the start command and parameters.

This will cause the localPublish plugin to use that path and start command instead of the default one.

Clicking the link to get a copy of the runtime code will cause a new copy of the runtime template (same one used by localPublish) to be copied into the bot project. It will also auto-configure the path and start command.

This PR includes:

  • new settings page
  • change to localPublish to respect this setting
  • change to localPublish to put runtime in the runtime/ subfolder
  • Small change to the runtime template to change the bot folder from "./ComposerDialogs" to "../"
  • new plugin API to register new runtime templates

Task Item

Closes #2470
Closes #2450

Screenshots

This GIF shows the settings page in operation, the eject process, and several possible error states related to using this setting with the start bot button.

runtime

@benbrown benbrown mentioned this pull request Apr 8, 2020
7 tasks
@benbrown benbrown changed the base branch from stable to master April 8, 2020 22:26
@benbrown
Copy link
Contributor Author

merged master apr 13

@github-actions
Copy link

Coverage Status

Coverage decreased (-0.03%) to 41.459% when pulling d921a9a on benbrown/2470 into ed99f0b on master.

@benbrown benbrown marked this pull request as ready for review April 17, 2020 18:32
@benbrown benbrown requested a review from a-b-r-o-w-n April 23, 2020 21:32
@benbrown
Copy link
Contributor Author

all comments addressed. Thanks a lot @a-b-r-o-w-n

@a-b-r-o-w-n a-b-r-o-w-n merged commit 2c4fe20 into master Apr 23, 2020
@a-b-r-o-w-n a-b-r-o-w-n deleted the benbrown/2470 branch April 23, 2020 21:56
lei9444 pushed a commit to lei9444/BotFramework-Composer-1 that referenced this pull request Jun 15, 2021
* add new runtime settings page

* add popup modal for pickign runtime

* add ability for plugins to specify a runtime template

* add sample runtime to localPublish
add actual file copy mechanism

* handle success and failure of runtime injection

* respect enableCustomRuntime

* pull real runtime code

* eject real code
update the readme file included in the runtime

* change the path of the declarative assets relative to the runtime

* update code copying to reflect new asset locations

* cleanup

* allow parameters to be included in start command

* update readme with new info about additional plugin APIs

* change schema of settings

* little bit more error correction

* fix issue with field binding

* fix form behaviors

* address comments from andy

Co-authored-by: Chris Whitten <christopher.whitten@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create Runtime Settings page
5 participants