Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Conversation

@tdurnford
Copy link
Collaborator

Description

Added fieldSets to the UIOptions. fieldSets is an array of FieldSet objects that have properties title, fields, and defaultExpanded. title is a required field while fields and defaultExpanded are optional. If fields is undefined, it defaults to an array with a wildcard - ['*']. Each fieldSet can only have one wild card and fields cannot be used multiple times. defaultExpanded defaults to falsy. When defaultExpanded is truthy, the collapsible group is expanded; otherwise, it is collapsed.

In a future PR, I plan to add another UIOption - pivotFieldSet - to support the tabbed view used in the prompts property editor. I would have included that work in this PR; however, UIOptions needs to support additionalFields before we can migrate the prompts to fieldSets because the prompts ui-plugin currently adds a field to support LU.

Task Item

refs #3588

Screenshots

Screen Shot 2020-09-21 at 12 45 34 PM

@coveralls
Copy link

coveralls commented Sep 22, 2020

Coverage Status

Coverage increased (+0.4%) to 55.665% when pulling 6334121 on tdurnford:durnford/feature/field-sets into 498de04 on microsoft:main.

a-b-r-o-w-n
a-b-r-o-w-n previously approved these changes Sep 22, 2020
Copy link
Contributor

@a-b-r-o-w-n a-b-r-o-w-n left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great! Can you update the ui schema json schema in the botframework-sdk repo?

@a-b-r-o-w-n a-b-r-o-w-n added the Approved to merge approved, waiting to be merged label Sep 22, 2020
@tdurnford tdurnford merged commit ecfd12e into microsoft:main Sep 22, 2020
alanlong9278 added a commit to alanlong9278/BotFramework-Composer that referenced this pull request Sep 28, 2020
* main:
  fix: update l10n file (microsoft#4247)
  fix: fix loading of extensions by removing sample-ui-plugin (microsoft#4251)
  fix: split qna resource to another template (microsoft#4212)
  feat: UI Schema - Recognizer (microsoft#4135)
  fix: Change http to https for petstore.swagger.io calls (microsoft#4238)
  feat: install remote extensions from npm (microsoft#4224)
  fix: refactored select skill ui-plugin (microsoft#4207)
  feat: Added fieldSets to UIOptions (microsoft#4231)
  fix: New LG template not sync to other locale files (microsoft#4230)
@cwhitten cwhitten mentioned this pull request Nov 13, 2020
@tdurnford tdurnford deleted the durnford/feature/field-sets branch November 30, 2020 21:44
benbrown pushed a commit to benbrown/BotFramework-Composer that referenced this pull request May 24, 2021
* main:
  fix: update l10n file (microsoft#4247)
  fix: fix loading of extensions by removing sample-ui-plugin (microsoft#4251)
  fix: split qna resource to another template (microsoft#4212)
  feat: UI Schema - Recognizer (microsoft#4135)
  fix: Change http to https for petstore.swagger.io calls (microsoft#4238)
  feat: install remote extensions from npm (microsoft#4224)
  fix: refactored select skill ui-plugin (microsoft#4207)
  feat: Added fieldSets to UIOptions (microsoft#4231)
  fix: New LG template not sync to other locale files (microsoft#4230)
benbrown pushed a commit that referenced this pull request Jun 11, 2021
* main:
  fix: update l10n file (#4247)
  fix: fix loading of extensions by removing sample-ui-plugin (#4251)
  fix: split qna resource to another template (#4212)
  feat: UI Schema - Recognizer (#4135)
  fix: Change http to https for petstore.swagger.io calls (#4238)
  feat: install remote extensions from npm (#4224)
  fix: refactored select skill ui-plugin (#4207)
  feat: Added fieldSets to UIOptions (#4231)
  fix: New LG template not sync to other locale files (#4230)
lei9444 pushed a commit to lei9444/BotFramework-Composer-1 that referenced this pull request Jun 15, 2021
* feat: Added fieldSets to UIOptions

* fix tests

* fixed test description
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Approved to merge approved, waiting to be merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants