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: support bot project's ui schema #3680

Merged
merged 21 commits into from
Jul 23, 2020
Merged

Conversation

a-b-r-o-w-n
Copy link
Contributor

@a-b-r-o-w-n a-b-r-o-w-n commented Jul 22, 2020

Description

Adds support for loading a bot project's ui schema as well as any user overrides. The schema has been defined here.

This also includes a refactor to support the new ui schema and adds some utilities to consume the merged result. Also introduces the composer ui plugin that houses the default ui schema. The ui schema will be migrated into the sdk shortly.

Task Item

Closes #3583

@coveralls
Copy link

coveralls commented Jul 22, 2020

Coverage Status

Coverage decreased (-0.5%) to 57.332% when pulling a13fe91 on abrown/feat/bot-project-ui-schema into b678c40 on main.

@a-b-r-o-w-n a-b-r-o-w-n marked this pull request as ready for review July 23, 2020 15:28
@cwhitten
Copy link
Member

@a-b-r-o-w-n in the server, we check-in the sdk.schema and serve it to the client when we don't have one supplied with the open bot. Should we do something similar with the merged uischema?

@a-b-r-o-w-n
Copy link
Contributor Author

@cwhitten I'll update. For now, I'll just add an empty file which will eventually be replaced by the sdk ui schema.

@cwhitten cwhitten merged commit 7efc206 into main Jul 23, 2020
@cwhitten cwhitten deleted the abrown/feat/bot-project-ui-schema branch July 23, 2020 18:58
lei9444 pushed a commit to lei9444/BotFramework-Composer-1 that referenced this pull request Jun 15, 2021
* remove inspect port when starting server

* wip - use map for project files data structure

* complete refactor of files into a map

* support app.uischema naming convention

* move expression field into adaptive form package

* update ui plugins to new ui schema

* support new ui schema shape

* load user overrides to ui schema

* fix typos

* update jest name

* add some unit tests

* update menu type

* fix merging of flow config

Object.assign would replace previous values if values are undefined. Lodash skips those.

* add fallback uischema

* load default ui schema if none found in bot project
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.

Support UI Schema from bot project
3 participants