Skip to content

Commit

Permalink
uischema: port composer ui schema to component schema files (#4341)
Browse files Browse the repository at this point in the history
* add uischema to editor settings

* port ui schema from composer

* add new line at EOF

* update OnCancelDialog

* remove extraneous properties

* remove empty ui schemas

* include uischemas in csproj references
  • Loading branch information
a-b-r-o-w-n authored Aug 6, 2020
1 parent 252a0fa commit 6ca3185
Show file tree
Hide file tree
Showing 64 changed files with 642 additions and 10 deletions.
8 changes: 6 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ indent_size = 2
[*.json]
indent_size = 2

# Schema files
[*.{schema,uischema}]
indent_size = 4

# Code files
[*.{cs,csx,vb,vbx}]
indent_size = 4
Expand Down Expand Up @@ -75,7 +79,7 @@ dotnet_style_prefer_conditional_expression_over_return = true:silent
# Style Definitions
dotnet_naming_style.pascal_case_style.capitalization = pascal_case

# Use PascalCase for constant fields
# Use PascalCase for constant fields
dotnet_naming_rule.constant_fields_should_be_pascal_case.severity = suggestion
dotnet_naming_rule.constant_fields_should_be_pascal_case.symbols = constant_fields
dotnet_naming_rule.constant_fields_should_be_pascal_case.style = pascal_case_style
Expand Down Expand Up @@ -138,7 +142,7 @@ csharp_indent_labels = flush_left
# Space preferences
csharp_space_after_cast = false
csharp_space_after_keywords_in_control_flow_statements = true
csharp_space_between_method_call_parameter_list_parentheses = false
csharp_space_between_method_call_parameter_list_parentheses = false
csharp_space_between_method_declaration_parameter_list_parentheses = false
csharp_space_between_parentheses = false
csharp_space_before_colon_in_inheritance_clause = true
Expand Down
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"files.associations": {
"*.schema": "json"
"*.schema": "json",
"*.uischema": "json"
},
"dotnet-test-explorer.testProjectPath": "**/*.Tests.csproj"
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
<Content Include="**/*.lg" />
<Content Include="**/*.lu" />
<Content Include="**/*.schema" />
<Content Include="**/*.uischema" />
<Content Include="**/*.qna" />
</ItemGroup>

Expand All @@ -54,4 +55,4 @@
<ProjectReference Include="..\Microsoft.Bot.Builder.Dialogs.Declarative\Microsoft.Bot.Builder.Dialogs.Declarative.csproj" />
<ProjectReference Include="..\Microsoft.Bot.Configuration\Microsoft.Bot.Configuration.csproj" />
</ItemGroup>
</Project>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
<Content Include="**/*.lg" />
<Content Include="**/*.lu" />
<Content Include="**/*.schema" />
<Content Include="**/*.uischema" />
<Content Include="**/*.qna" />
</ItemGroup>

Expand Down Expand Up @@ -56,4 +57,4 @@
<ProjectReference Include="..\Microsoft.Bot.Builder\Microsoft.Bot.Builder.csproj" />
<ProjectReference Include="..\Microsoft.Bot.Configuration\Microsoft.Bot.Configuration.csproj" />
</ItemGroup>
</Project>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
<Content Include="**/*.lg" />
<Content Include="**/*.lu" />
<Content Include="**/*.schema" />
<Content Include="**/*.uischema" />
<Content Include="**/*.qna" />
</ItemGroup>

Expand Down Expand Up @@ -71,4 +72,4 @@
<ProjectReference Include="..\Microsoft.Bot.Builder\Microsoft.Bot.Builder.csproj" />
<ProjectReference Include="..\Microsoft.Bot.Builder.Dialogs.Declarative\Microsoft.Bot.Builder.Dialogs.Declarative.csproj" />
</ItemGroup>
</Project>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
<Content Include="**/*.lg" />
<Content Include="**/*.lu" />
<Content Include="**/*.schema" />
<Content Include="**/*.uischema" />
<Content Include="**/*.qna" />
</ItemGroup>

Expand All @@ -59,4 +60,4 @@
<ProjectReference Include="..\Microsoft.Bot.Builder.Dialogs.Adaptive\Microsoft.Bot.Builder.Dialogs.Adaptive.csproj" />
</ItemGroup>

</Project>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
<Content Include="**/*.lg" />
<Content Include="**/*.lu" />
<Content Include="**/*.schema" />
<Content Include="**/*.uischema" />
<Content Include="**/*.qna" />
</ItemGroup>

Expand Down Expand Up @@ -72,4 +73,4 @@
<ProjectReference Include="..\Microsoft.Bot.Builder.Dialogs.Adaptive\Microsoft.Bot.Builder.Dialogs.Adaptive.csproj" />
<ProjectReference Include="..\Microsoft.Bot.Builder.Dialogs.Declarative\Microsoft.Bot.Builder.Dialogs.Declarative.csproj" />
</ItemGroup>
</Project>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
<Content Include="**/*.lg" />
<Content Include="**/*.lu" />
<Content Include="**/*.schema" />
<Content Include="**/*.uischema" />
<Content Include="**/*.qna" />
</ItemGroup>

Expand Down Expand Up @@ -71,4 +72,4 @@
<ProjectReference Include="..\AdaptiveExpressions\AdaptiveExpressions.csproj" />
</ItemGroup>

</Project>
</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema",
"form": {
"label": "Begin a new dialog",
"subtitle": "Begin Dialog",
"helpLink": "https://aka.ms/bfc-understanding-dialogs",
"order": [
"dialog",
"options",
"resultProperty",
"*"
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema",
"form": {
"label": "Connect to a skill",
"subtitle": "Skill Dialog",
"helpLink": "https://aka.ms/bf-composer-docs-connect-skill"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema",
"form": {
"label": "Break out of loop",
"subtitle": "Break out of loop"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema",
"form": {
"label": "Cancel all active dialogs",
"subtitle": "Cancel All Dialogs",
"helpLink": "https://aka.ms/bfc-understanding-dialogs"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema",
"form": {
"label": "Continue loop",
"subtitle": "Continue loop"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema",
"form": {
"label": "Debug Break"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema",
"form": {
"label": "Delete properties",
"subtitle": "Delete Properties",
"helpLink": "https://aka.ms/bfc-using-memory"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema",
"form": {
"label": "Delete a property",
"subtitle": "Delete Property",
"helpLink": "https://aka.ms/bfc-using-memory"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema",
"form": {
"label": "Modify active dialog",
"subtitle": "Edit Actions"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema",
"form": {
"label": "Edit an array property",
"subtitle": "Edit Array",
"helpLink": "https://aka.ms/bfc-using-memory"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema",
"form": {
"label": "Emit a custom event",
"subtitle": "Emit Event",
"helpLink": "https://aka.ms/bfc-custom-events"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema",
"form": {
"label": "End this dialog",
"subtitle": "End Dialog",
"helpLink": "https://aka.ms/bfc-understanding-dialogs"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema",
"form": {
"label": "End turn",
"subtitle": "End Turn",
"helpLink": "https://aka.ms/bfc-understanding-dialogs"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema",
"form": {
"label": "Loop: For each item",
"subtitle": "For Each",
"order": [
"itemsProperty",
"*"
],
"hidden": [
"actions"
],
"helpLink": "https://aka.ms/bfc-controlling-conversation-flow"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema",
"form": {
"label": "Loop: For each page (multiple items)",
"subtitle": "For Each Page",
"order": [
"itemsProperty",
"pageSize",
"*"
],
"hidden": [
"actions"
],
"helpLink": "https://aka.ms/bfc-controlling-conversation-flow"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema",
"form": {
"label": "Send an HTTP request",
"subtitle": "HTTP Request",
"order": [
"method",
"url",
"body",
"headers",
"*"
],
"helpLink": "https://aka.ms/bfc-using-http"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema",
"form": {
"label": "Branch: If/Else",
"subtitle": "If Condition",
"hidden": [
"actions",
"elseActions"
],
"helpLink": "https://aka.ms/bfc-controlling-conversation-flow"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema",
"form": {
"label": "Log to console",
"subtitle": "Log Action",
"helpLink": "https://aka.ms/bfc-debugging-bots"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema",
"form": {
"label": "Repeat this dialog",
"subtitle": "Repeat Dialog",
"helpLink": "https://aka.ms/bfc-understanding-dialogs",
"order": [
"options",
"*"
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema",
"form": {
"label": "Replace this dialog",
"subtitle": "Replace Dialog",
"helpLink": "https://aka.ms/bfc-understanding-dialogs",
"order": [
"dialog",
"options",
"*"
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema",
"form": {
"label": "Send a response",
"subtitle": "Send Activity",
"helpLink": "https://aka.ms/bfc-send-activity",
"order": [
"activity",
"*"
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema",
"form": {
"label": "Set properties",
"subtitle": "Set Properties",
"helpLink": "https://aka.ms/bfc-using-memory"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema",
"form": {
"label": "Set a property",
"subtitle": "Set Property",
"helpLink": "https://aka.ms/bfc-using-memory"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema",
"form": {
"label": "Sign out user",
"subtitle": "Signout User"
}
}
Loading

0 comments on commit 6ca3185

Please sign in to comment.