diff --git a/fluentui-ard/CanvasManifest.json b/fluentui-ard/CanvasManifest.json index 59a06d37b3cea62336ac4d5df6fb44cd7f15e864..ad0593ab296cbcfebd3edb92dab0a291b589509e 100644 --- a/fluentui-ard/CanvasManifest.json +++ b/fluentui-ard/CanvasManifest.json @@ -98,7 +98,7 @@ "zeroalltabindexes": false }, "Author": "", - "BindingErrorCount": 1, + "BindingErrorCount": 2, "ContainsThirdPartyPcfControls": false, "DefaultConnectedDataSourceMaxGetRowsCount": 500, "DocumentAppType": "Phone", @@ -117,7 +117,7 @@ "ManualOfflineProfileId": "", "Name": "ChatGPT-H-I", "OriginatingVersion": "1.335", - "ParserErrorCount": 0, + "ParserErrorCount": 3, "ShowStatusBar": false }, "PublishInfo": { diff --git a/fluentui-ard/Connections/Connections.json b/fluentui-ard/Connections/Connections.json index e351f9dfd92b26abcbe307e5b0ba9a2d87290541..8df117e80284386252991c2fcb96e2ee6f6156a6 100644 --- a/fluentui-ard/Connections/Connections.json +++ b/fluentui-ard/Connections/Connections.json @@ -5,6 +5,9 @@ "iconUri": "https://connectoricons-prod.azureedge.net/releases/v1.0.1664/1.0.1664.3477/logicflows/icon.png", "id": "/providers/microsoft.powerapps/apis/shared_logicflows", "parameterHints": { + "4cfa0255-2ab9-478b-ae56-8c20157a1e8c": { + "value": "shared_azure-2dopenai-2dconnector-5f1d98e22a441b0e2d-5f3739fab3a930da50" + }, "workflowEntityId": { "value": "921001dc-f7aa-ee11-be37-0022488291be" }, @@ -13,6 +16,9 @@ } }, "parameterHintsV2": { + "shared_azure-2dopenai-2dconnector-5f1d98e22a441b0e2d-5f3739fab3a930da50": { + "value": "4cfa0255-2ab9-478b-ae56-8c20157a1e8c" + }, "workflowEntityId": { "value": "921001dc-f7aa-ee11-be37-0022488291be" }, diff --git a/fluentui-ard/Entropy/AppCheckerResult.sarif b/fluentui-ard/Entropy/AppCheckerResult.sarif index 1a253b27e31a11feb8623dae15e0aa34803d6da5..8d2bf9f0f40861fdf9a0e2a668ebc91a01798c38 100644 --- a/fluentui-ard/Entropy/AppCheckerResult.sarif +++ b/fluentui-ard/Entropy/AppCheckerResult.sarif @@ -9,6 +9,121 @@ } ], "results": [ + { + "locations": [ + { + "logicalLocations": [ + { + "fullyQualifiedName": "Screen1.ConSend.send1.OnSelect" + } + ], + "physicalLocation": { + "address": { + "fullyQualifiedName": "Screen1.ConSend.send1.OnSelect", + "relativeAddress": 0 + }, + "region": { + "charLength": 6, + "charOffset": 277, + "snippet": { + "text": "Notify" + } + } + }, + "properties": { + "member": "OnSelect", + "module": "Screen1", + "type": "Screen1.ConSend.send1" + } + } + ], + "message": { + "id": "issue" + }, + "properties": { + "level": "High" + }, + "ruleId": "app-ErrOperatorExpected", + "ruleIndex": 0 + }, + { + "locations": [ + { + "logicalLocations": [ + { + "fullyQualifiedName": "Screen1.ConSend.send1.OnSelect" + } + ], + "physicalLocation": { + "address": { + "fullyQualifiedName": "Screen1.ConSend.send1.OnSelect", + "relativeAddress": 0 + }, + "region": { + "charLength": 1, + "charOffset": 299, + "snippet": { + "text": "," + } + } + }, + "properties": { + "member": "OnSelect", + "module": "Screen1", + "type": "Screen1.ConSend.send1" + } + } + ], + "message": { + "arguments": [ + "Comma", + "ParenClose" + ], + "id": "issue" + }, + "properties": { + "level": "High" + }, + "ruleId": "app-ErrExpectedFound-Ex-Fnd", + "ruleIndex": 1 + }, + { + "locations": [ + { + "logicalLocations": [ + { + "fullyQualifiedName": "Screen1.ConSend.send1.OnSelect" + } + ], + "physicalLocation": { + "address": { + "fullyQualifiedName": "Screen1.ConSend.send1.OnSelect", + "relativeAddress": 0 + }, + "region": { + "charLength": 1, + "charOffset": 299, + "snippet": { + "text": "," + } + } + }, + "properties": { + "member": "OnSelect", + "module": "Screen1", + "type": "Screen1.ConSend.send1" + } + } + ], + "message": { + "id": "issue" + }, + "properties": { + "level": "High" + }, + "ruleId": "app-ErrBadToken", + "ruleIndex": 2 + }, { "locations": [ { @@ -24,7 +139,7 @@ }, "region": { "charLength": 8, - "charOffset": 127, + "charOffset": 266, "snippet": { "text": ".content" } @@ -44,6 +159,43 @@ "level": "High" }, "ruleId": "app-ErrInvalidDot", + "ruleIndex": 3 + }, + { + "locations": [ + { + "logicalLocations": [ + { + "fullyQualifiedName": "Screen1.ConSend.send1.OnSelect" + } + ], + "physicalLocation": { + "address": { + "fullyQualifiedName": "Screen1.ConSend.send1.OnSelect", + "relativeAddress": 0 + }, + "region": { + "charLength": 6, + "charOffset": 277, + "snippet": { + "text": "Notify" + } + } + }, + "properties": { + "member": "OnSelect", + "module": "Screen1", + "type": "Screen1.ConSend.send1" + } + } + ], + "message": { + "id": "issue" + }, + "properties": { + "level": "High" + }, + "ruleId": "app-ErrOperatorExpected", "ruleIndex": 0 }, { @@ -73,7 +225,7 @@ "level": "Low" }, "ruleId": "acc-ReadableScreenNameNeeded", - "ruleIndex": 1 + "ruleIndex": 4 }, { "locations": [ @@ -103,7 +255,7 @@ "level": "Medium" }, "ruleId": "acc-TabIndexShouldBeDefinedForInteractiveControl", - "ruleIndex": 2 + "ruleIndex": 5 }, { "locations": [ @@ -133,7 +285,7 @@ "level": "Medium" }, "ruleId": "acc-FocusBorderShouldBeVisible", - "ruleIndex": 3 + "ruleIndex": 6 }, { "locations": [ @@ -163,7 +315,7 @@ "level": "Medium" }, "ruleId": "acc-AccessibleLabelNeeded", - "ruleIndex": 4 + "ruleIndex": 7 }, { "locations": [ @@ -193,7 +345,7 @@ "level": "Low" }, "ruleId": "acc-TabOrderShouldBeChecked", - "ruleIndex": 5 + "ruleIndex": 8 }, { "locations": [ @@ -223,7 +375,7 @@ "level": "Medium" }, "ruleId": "acc-FocusBorderShouldBeVisible", - "ruleIndex": 3 + "ruleIndex": 6 }, { "locations": [ @@ -253,7 +405,7 @@ "level": "Medium" }, "ruleId": "acc-HelpfulControlSettingNeeded", - "ruleIndex": 6 + "ruleIndex": 9 }, { "locations": [ @@ -283,7 +435,7 @@ "level": "Medium" }, "ruleId": "acc-AccessibleLabelNeeded", - "ruleIndex": 4 + "ruleIndex": 7 }, { "locations": [ @@ -313,7 +465,7 @@ "level": "Low" }, "ruleId": "acc-TabOrderShouldBeChecked", - "ruleIndex": 5 + "ruleIndex": 8 }, { "locations": [ @@ -343,7 +495,7 @@ "level": "Medium" }, "ruleId": "acc-AccessibleLabelNeeded", - "ruleIndex": 4 + "ruleIndex": 7 }, { "locations": [ @@ -373,7 +525,37 @@ "level": "Low" }, "ruleId": "acc-TabOrderShouldBeChecked", - "ruleIndex": 5 + "ruleIndex": 8 + }, + { + "locations": [ + { + "logicalLocations": [ + { + "fullyQualifiedName": "App.returnCAO" + } + ], + "physicalLocation": { + "address": { + "fullyQualifiedName": "App.returnCAO", + "relativeAddress": 0 + } + }, + "properties": { + "member": "returnCAO", + "module": "App", + "type": "App" + } + } + ], + "message": { + "id": "issue" + }, + "properties": { + "level": "Medium" + }, + "ruleId": "app-UnusedVariables", + "ruleIndex": 10 }, { "locations": [ @@ -403,7 +585,7 @@ "level": "Medium" }, "ruleId": "app-UnusedMediaResources", - "ruleIndex": 7 + "ruleIndex": 11 } ], "tool": { @@ -411,6 +593,57 @@ "fullName": "PowerApps app checker", "name": "PowerApps app checker", "rules": [ + { + "id": "app-ErrOperatorExpected", + "messageStrings": { + "issue": { + "text": "Expected operator. We expect an operator such as +, *, or & at this point in the formula." + } + }, + "properties": { + "componentType": "app", + "howToFix": [ + "Edit your formula so that it includes an operator between the operands." + ], + "level": "High", + "primaryCategory": "formula", + "whyFix": "" + } + }, + { + "id": "app-ErrExpectedFound-Ex-Fnd", + "messageStrings": { + "issue": { + "text": "Unexpected characters. The formula contains '{0}' where '{1}' is expected." + } + }, + "properties": { + "componentType": "app", + "howToFix": [ + "Remove or replace the unexpected characters with an expected character." + ], + "level": "High", + "primaryCategory": "formula", + "whyFix": "" + } + }, + { + "id": "app-ErrBadToken", + "messageStrings": { + "issue": { + "text": "Unexpected characters. Characters are used in the formula in an unexpected way." + } + }, + "properties": { + "componentType": "app", + "howToFix": [ + "Remove or replace the unexpected characters." + ], + "level": "High", + "primaryCategory": "formula", + "whyFix": "" + } + }, { "id": "app-ErrInvalidDot", "messageStrings": { @@ -527,6 +760,23 @@ "whyFix": "Changing this property setting will give the user better information about the function of the controls in your app." } }, + { + "id": "app-UnusedVariables", + "messageStrings": { + "issue": { + "text": "Unused variable" + } + }, + "properties": { + "componentType": "app", + "howToFix": [ + "Remove the unused variable." + ], + "level": "Medium", + "primaryCategory": "performance", + "whyFix": "This variable is declared but is not referenced by any control, so it is not needed." + } + }, { "id": "app-UnusedMediaResources", "messageStrings": { diff --git a/fluentui-ard/Entropy/Entropy.json b/fluentui-ard/Entropy/Entropy.json index 37bfa09a2c14d3bcdb675afebc3a72d1dbdc6395..3e5277b30a042b1cda142615745f111b22b0869a 100644 --- a/fluentui-ard/Entropy/Entropy.json +++ b/fluentui-ard/Entropy/Entropy.json @@ -21,10 +21,10 @@ }, "FunctionParamsInvariantScripts": {}, "FunctionParamsInvariantScriptsOnInstances": {}, - "HeaderLastSavedDateTimeUTC": "01/08/2024 15:11:06", + "HeaderLastSavedDateTimeUTC": "01/08/2024 15:15:14", "IsLegacyComponentAllowGlobalScopeCase": false, "LocalConnectionIDReferences": { - "4a3b4086-5fc9-44c6-81a0-d614f19e11fd": "\"/providers/Microsoft.PowerApps/apis/shared_logicflows/connections/EC84356E395FAA1B0FDF1C7E126B562E-C1654A69E558FC9F\"", + "4a3b4086-5fc9-44c6-81a0-d614f19e11fd": "\"/providers/microsoft.powerapps/apis/shared_logicflows/connections/ec84356e395faa1b0fdf1c7e126b562e-c1654a69e558fc9f\"", "4cfa0255-2ab9-478b-ae56-8c20157a1e8c": "\"/providers/microsoft.powerapps/apis/shared_azure-2dopenai-2dconnector-5f1d98e22a441b0e2d-5f3739fab3a930da50/connections/shared-azure-2dopena-3f4cdc89-63b5-4018-882d-1f1c97eb18e0\"", "87a18f1f-ceb1-4b3f-94e5-d4c949a2d6f4": "\"/providers/microsoft.powerapps/apis/shared_office365/connections/shared-office365-691d88fb-dc12-4d7f-afc5-caaebbf651d6\"", "f5f8dd0c-8ecf-4fc7-ae09-d8d29db70e1e": "\"/providers/microsoft.powerapps/apis/shared_logicflows/connections/38d6e5b5b5fa999a16ebdf0aa169572f-c1654a69e558fc9f\"" diff --git a/fluentui-ard/Entropy/checksum.json b/fluentui-ard/Entropy/checksum.json index a91bb56337e88c36fa3ced1656e4ee51b9893633..47f1d43935ca87b9871c612230ad733e3fc97a5f 100644 --- a/fluentui-ard/Entropy/checksum.json +++ b/fluentui-ard/Entropy/checksum.json @@ -4,13 +4,13 @@ "IsLocalBuild": false }, "ClientPerFileChecksums": { - "AppCheckerResult.sarif": "C8_5UfxW9UBP9YssAu2B1+APZNhFzX1cfVtF3kgSI5zbcI=", + "AppCheckerResult.sarif": "C8_IGPmioySESXWBUnPcvu6v2pbCtQB2SUehGpUwEaoIrc=", "Assets\\Images\\0001.png": "C8_D0WGiAaxVuIcUWpkdQuVcyQy/gSJZuMRDwL63zxJhAk=", "Assets\\Images\\0002.jpg": "C8_Tc/HGdQ62xbtBm/41G1l7DIpMm/RT0cgmhtJyanyURs=", "Controls\\1.json": "C8_/PwNEU6dV00x9Xr4Yt93zX1EmsxAh36PVgOdFy9WD8g=", - "Controls\\4.json": "C8_4mEazz6OXorKrWaAkUajCiqncHDIGkPoiU6E2Hb6ke0=", - "Header.json": "C8_gKEwO0cYyuwgJdpMOxc7L+5jgm4fnIJ6f42WSmz3vzQ=", - "Properties.json": "C8_s6R62gVHPiatIMYCaLdvAKjj2vtSJlGujcwot/l6lls=", + "Controls\\4.json": "C8_4QXJVP4Ie1Lko8/GGgK2/Eap++Hgf9XtJ121xOdFjII=", + "Header.json": "C8_1wmeVLRHrXCFFZWu4Ruz4pyk51kmroDesg+Y1e1HYQg=", + "Properties.json": "C8_a/km28oj1S5GT7eDzdKYXOgb7PWNmvaKILql5VKhAnA=", "References\\DataSources.json": "C8_p1n9Ref5C1FgOHFzowVJAynaWAyjUpkEL6zrSE+DiVw=", "References\\ModernThemes.json": "C8_KDQJ/3t27vgKx25iCQB/PGqxkWE34ZB7Eyb+RxNxY0k=", "References\\Resources.json": "C8_ZLoUoOFT2kLg+DiLhoWksOD2qshF1YGEI5V2+LGKSZ8=", @@ -18,15 +18,15 @@ "References\\Themes.json": "C8_zuMgLpz3IJQlVgGqo3GtyhriL3PR35GxXf+rtPR4Gfc=", "Resources\\PublishInfo.json": "C8_L9UhOWDoS/LUj0KodcbQiXLqewg00O5iSZA4+bCdTGs=" }, - "ClientStampedChecksum": "C8_IwQp+y5axM9DJOhCTyg9/SKMc8qF9bqmXdKt2yTk+3Q=", + "ClientStampedChecksum": "C8_kyIXcoFxTnwtQY7IX3rEBB6eua/TdvkR5+2wvWDIuDE=", "ServerPerFileChecksums": { - "AppCheckerResult.sarif": "C8_5UfxW9UBP9YssAu2B1+APZNhFzX1cfVtF3kgSI5zbcI=", + "AppCheckerResult.sarif": "C8_IGPmioySESXWBUnPcvu6v2pbCtQB2SUehGpUwEaoIrc=", "Assets\\Images\\0001.png": "C8_D0WGiAaxVuIcUWpkdQuVcyQy/gSJZuMRDwL63zxJhAk=", "Assets\\Images\\0002.jpg": "C8_Tc/HGdQ62xbtBm/41G1l7DIpMm/RT0cgmhtJyanyURs=", "Controls\\1.json": "C8_/PwNEU6dV00x9Xr4Yt93zX1EmsxAh36PVgOdFy9WD8g=", - "Controls\\4.json": "C8_4mEazz6OXorKrWaAkUajCiqncHDIGkPoiU6E2Hb6ke0=", - "Header.json": "C8_gKEwO0cYyuwgJdpMOxc7L+5jgm4fnIJ6f42WSmz3vzQ=", - "Properties.json": "C8_s6R62gVHPiatIMYCaLdvAKjj2vtSJlGujcwot/l6lls=", + "Controls\\4.json": "C8_4QXJVP4Ie1Lko8/GGgK2/Eap++Hgf9XtJ121xOdFjII=", + "Header.json": "C8_1wmeVLRHrXCFFZWu4Ruz4pyk51kmroDesg+Y1e1HYQg=", + "Properties.json": "C8_a/km28oj1S5GT7eDzdKYXOgb7PWNmvaKILql5VKhAnA=", "References\\DataSources.json": "C8_p1n9Ref5C1FgOHFzowVJAynaWAyjUpkEL6zrSE+DiVw=", "References\\ModernThemes.json": "C8_KDQJ/3t27vgKx25iCQB/PGqxkWE34ZB7Eyb+RxNxY0k=", "References\\Resources.json": "C8_ZLoUoOFT2kLg+DiLhoWksOD2qshF1YGEI5V2+LGKSZ8=", @@ -34,5 +34,5 @@ "References\\Themes.json": "C8_zuMgLpz3IJQlVgGqo3GtyhriL3PR35GxXf+rtPR4Gfc=", "Resources\\PublishInfo.json": "C8_L9UhOWDoS/LUj0KodcbQiXLqewg00O5iSZA4+bCdTGs=" }, - "ServerStampedChecksum": "C8_IwQp+y5axM9DJOhCTyg9/SKMc8qF9bqmXdKt2yTk+3Q=" + "ServerStampedChecksum": "C8_kyIXcoFxTnwtQY7IX3rEBB6eua/TdvkR5+2wvWDIuDE=" } \ No newline at end of file diff --git a/fluentui-ard/Src/Screen1.fx.yaml b/fluentui-ard/Src/Screen1.fx.yaml index 080d75a1d84d90a2d91324fc3e69387dd45c55b9..ca86a71d8cdc3a43a10702f783b74407841d4174 100644 --- a/fluentui-ard/Src/Screen1.fx.yaml +++ b/fluentui-ard/Src/Screen1.fx.yaml @@ -242,9 +242,10 @@ Screen1 As screen: HoverFill: =RGBA(0, 0, 0, 0) Icon: =Icon.Send OnSelect: |- - =If(!IsBlank(textinput1.Text), Set(varResp, varResp & Char(13) & textinput1.Text & Char(13) & Char(13) & "GPT: " & Set(returnCAO.content, ConnectAzureOpenai.Run(textinput1.Text)))); + =If(!IsBlank(textinput1.Text), Set(varResp, varResp & Char(13) & textinput1.Text & Char(13) & Char(13) & "GPT: " & Set(returnCAO, ConnectAzureOpenai.Run(textinput1.Text)))); Reset(textinput1); - //Notify("ChatGPT asked", NotificationType.Success , 1000); + If(!IsBlank(textinput1.Text), Set(varResp, varResp & Char(13) & returnCAO.content)) + Notify("ChatGPT asked", NotificationType.Success , 1000); PressedBorderColor: =RGBA(0, 0, 0, 0) PressedColor: =RGBA(251, 188, 159, 1) PressedFill: =RGBA(0, 0, 0, 0)