diff --git a/fluentui-ard/CanvasManifest.json b/fluentui-ard/CanvasManifest.json index 59a06d37b3cea62336ac4d5df6fb44cd7f15e864..64bd46baf15044c44576355a5cea2eb4c95f86a5 100644 --- a/fluentui-ard/CanvasManifest.json +++ b/fluentui-ard/CanvasManifest.json @@ -98,7 +98,7 @@ "zeroalltabindexes": false }, "Author": "", - "BindingErrorCount": 1, + "BindingErrorCount": 0, "ContainsThirdPartyPcfControls": false, "DefaultConnectedDataSourceMaxGetRowsCount": 500, "DocumentAppType": "Phone", diff --git a/fluentui-ard/Connections/Connections.json b/fluentui-ard/Connections/Connections.json index 6cd4fde662294a5bfc49152167a04d909198d468..bf45d56ff33d7b5e5c3a275aa867fb3c16c0e661 100644 --- a/fluentui-ard/Connections/Connections.json +++ b/fluentui-ard/Connections/Connections.json @@ -13,7 +13,7 @@ ], "id": "15068a32-6e56-4150-bc99-d730c02bc599" }, - "3efcf2e2-0cff-47c8-aacd-8da2d7923675": { + "4c6d65ee-fb3f-4535-9f31-9ff567cc6de3": { "connectionRef": { "displayName": "Azure-openai-connector", "iconUri": "https://prodapiicons.cdn.powerappscdn.net/20231208t000000z6ddcf09938484bbb86659a4f81d8d185/customconnectoricon.png", @@ -23,17 +23,17 @@ "dataSources": [], "dependencies": {}, "dependents": [ - "6545b28a-e269-45a5-848e-b3fa49e744cc" + "5533be50-9917-40ca-8e23-7734034e61a4" ], - "id": "3efcf2e2-0cff-47c8-aacd-8da2d7923675" + "id": "4c6d65ee-fb3f-4535-9f31-9ff567cc6de3" }, - "6545b28a-e269-45a5-848e-b3fa49e744cc": { + "5533be50-9917-40ca-8e23-7734034e61a4": { "connectionRef": { "displayName": "Logic flows", "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": { - "3efcf2e2-0cff-47c8-aacd-8da2d7923675": { + "4c6d65ee-fb3f-4535-9f31-9ff567cc6de3": { "value": "shared_azure-2dopenai-2dconnector-5f1d98e22a441b0e2d-5f3739fab3a930da50" }, "workflowEntityId": { @@ -45,7 +45,7 @@ }, "parameterHintsV2": { "shared_azure-2dopenai-2dconnector-5f1d98e22a441b0e2d-5f3739fab3a930da50": { - "value": "3efcf2e2-0cff-47c8-aacd-8da2d7923675" + "value": "4c6d65ee-fb3f-4535-9f31-9ff567cc6de3" }, "workflowEntityId": { "value": "921001dc-f7aa-ee11-be37-0022488291be" @@ -60,10 +60,10 @@ "ConnectAzureOpenai" ], "dependencies": { - "shared_azure-2dopenai-2dconnector-5f1d98e22a441b0e2d-5f3739fab3a930da50": "3efcf2e2-0cff-47c8-aacd-8da2d7923675" + "shared_azure-2dopenai-2dconnector-5f1d98e22a441b0e2d-5f3739fab3a930da50": "4c6d65ee-fb3f-4535-9f31-9ff567cc6de3" }, "dependents": [], - "id": "6545b28a-e269-45a5-848e-b3fa49e744cc" + "id": "5533be50-9917-40ca-8e23-7734034e61a4" }, "8f9da402-5a85-4452-bc0e-d15a43c51a7b": { "connectionRef": { diff --git a/fluentui-ard/Entropy/AppCheckerResult.sarif b/fluentui-ard/Entropy/AppCheckerResult.sarif index 6c0405acc3342ded82733d4e4c412281abfaef3a..e63ad00540e07c3b68417c1d1e771e71fe994d74 100644 --- a/fluentui-ard/Entropy/AppCheckerResult.sarif +++ b/fluentui-ard/Entropy/AppCheckerResult.sarif @@ -9,47 +9,6 @@ } ], "results": [ - { - "locations": [ - { - "logicalLocations": [ - { - "fullyQualifiedName": "Screen1.ConSend.send1.OnSelect" - } - ], - "physicalLocation": { - "address": { - "fullyQualifiedName": "Screen1.ConSend.send1.OnSelect", - "relativeAddress": 0 - }, - "region": { - "charLength": 39, - "charOffset": 0, - "snippet": { - "text": "ConnectAzureOpenai.Run(textinput1.Text)" - } - } - }, - "properties": { - "member": "OnSelect", - "module": "Screen1", - "type": "Screen1.ConSend.send1" - } - } - ], - "message": { - "arguments": [ - "1", - "0" - ], - "id": "issue" - }, - "properties": { - "level": "High" - }, - "ruleId": "app-ErrBadArity", - "ruleIndex": 0 - }, { "locations": [ { @@ -77,7 +36,7 @@ "level": "Low" }, "ruleId": "acc-ReadableScreenNameNeeded", - "ruleIndex": 1 + "ruleIndex": 0 }, { "locations": [ @@ -107,7 +66,7 @@ "level": "Medium" }, "ruleId": "acc-AccessibleLabelNeeded", - "ruleIndex": 2 + "ruleIndex": 1 }, { "locations": [ @@ -137,7 +96,7 @@ "level": "Medium" }, "ruleId": "acc-AccessibleLabelNeeded", - "ruleIndex": 2 + "ruleIndex": 1 }, { "locations": [ @@ -167,7 +126,7 @@ "level": "Medium" }, "ruleId": "acc-TabIndexShouldBeDefinedForInteractiveControl", - "ruleIndex": 3 + "ruleIndex": 2 }, { "locations": [ @@ -197,7 +156,7 @@ "level": "Medium" }, "ruleId": "acc-FocusBorderShouldBeVisible", - "ruleIndex": 4 + "ruleIndex": 3 }, { "locations": [ @@ -227,7 +186,7 @@ "level": "Medium" }, "ruleId": "acc-AccessibleLabelNeeded", - "ruleIndex": 2 + "ruleIndex": 1 }, { "locations": [ @@ -257,7 +216,7 @@ "level": "Low" }, "ruleId": "acc-TabOrderShouldBeChecked", - "ruleIndex": 5 + "ruleIndex": 4 }, { "locations": [ @@ -287,7 +246,7 @@ "level": "Medium" }, "ruleId": "acc-FocusBorderShouldBeVisible", - "ruleIndex": 4 + "ruleIndex": 3 }, { "locations": [ @@ -317,7 +276,7 @@ "level": "Medium" }, "ruleId": "acc-HelpfulControlSettingNeeded", - "ruleIndex": 6 + "ruleIndex": 5 }, { "locations": [ @@ -347,7 +306,7 @@ "level": "Medium" }, "ruleId": "acc-AccessibleLabelNeeded", - "ruleIndex": 2 + "ruleIndex": 1 }, { "locations": [ @@ -377,7 +336,7 @@ "level": "Low" }, "ruleId": "acc-TabOrderShouldBeChecked", - "ruleIndex": 5 + "ruleIndex": 4 }, { "locations": [ @@ -407,7 +366,7 @@ "level": "Medium" }, "ruleId": "acc-AccessibleLabelNeeded", - "ruleIndex": 2 + "ruleIndex": 1 }, { "locations": [ @@ -437,7 +396,7 @@ "level": "Medium" }, "ruleId": "acc-AccessibleLabelNeeded", - "ruleIndex": 2 + "ruleIndex": 1 }, { "locations": [ @@ -467,7 +426,7 @@ "level": "Low" }, "ruleId": "acc-TabOrderShouldBeChecked", - "ruleIndex": 5 + "ruleIndex": 4 }, { "locations": [ @@ -497,7 +456,7 @@ "level": "Medium" }, "ruleId": "app-UnusedMediaResources", - "ruleIndex": 7 + "ruleIndex": 6 } ], "tool": { @@ -505,20 +464,6 @@ "fullName": "PowerApps app checker", "name": "PowerApps app checker", "rules": [ - { - "id": "app-ErrBadArity", - "messageStrings": { - "issue": { - "text": "Invalid number of arguments: received {0}, expected {1}." - } - }, - "properties": { - "componentType": "app", - "level": "High", - "primaryCategory": "formula", - "whyFix": "" - } - }, { "id": "acc-ReadableScreenNameNeeded", "messageStrings": { diff --git a/fluentui-ard/Entropy/Entropy.json b/fluentui-ard/Entropy/Entropy.json index 83f7b6e3a9841c2ba8417c8082f4bd40b9d78692..220ccf4093f6f4b0b76c1fee2f3088624c18db00 100644 --- a/fluentui-ard/Entropy/Entropy.json +++ b/fluentui-ard/Entropy/Entropy.json @@ -21,12 +21,12 @@ }, "FunctionParamsInvariantScripts": {}, "FunctionParamsInvariantScriptsOnInstances": {}, - "HeaderLastSavedDateTimeUTC": "01/04/2024 12:13:12", + "HeaderLastSavedDateTimeUTC": "01/04/2024 12:15:49", "IsLegacyComponentAllowGlobalScopeCase": false, "LocalConnectionIDReferences": { "15068a32-6e56-4150-bc99-d730c02bc599": "\"/providers/microsoft.powerapps/apis/shared_office365/connections/shared-office365-691d88fb-dc12-4d7f-afc5-caaebbf651d6\"", - "3efcf2e2-0cff-47c8-aacd-8da2d7923675": "\"/providers/microsoft.powerapps/apis/shared_azure-2dopenai-2dconnector-5f1d98e22a441b0e2d-5f3739fab3a930da50/connections/shared-azure-2dopena-3f4cdc89-63b5-4018-882d-1f1c97eb18e0\"", - "6545b28a-e269-45a5-848e-b3fa49e744cc": "\"/providers/Microsoft.PowerApps/apis/shared_logicflows/connections/EC84356E395FAA1B0FDF1C7E126B562E-C1654A69E558FC9F\"", + "4c6d65ee-fb3f-4535-9f31-9ff567cc6de3": "\"/providers/microsoft.powerapps/apis/shared_azure-2dopenai-2dconnector-5f1d98e22a441b0e2d-5f3739fab3a930da50/connections/shared-azure-2dopena-3f4cdc89-63b5-4018-882d-1f1c97eb18e0\"", + "5533be50-9917-40ca-8e23-7734034e61a4": "\"/providers/Microsoft.PowerApps/apis/shared_logicflows/connections/EC84356E395FAA1B0FDF1C7E126B562E-C1654A69E558FC9F\"", "8f9da402-5a85-4452-bc0e-d15a43c51a7b": "\"/providers/microsoft.powerapps/apis/shared_logicflows/connections/38d6e5b5b5fa999a16ebdf0aa169572f-c1654a69e558fc9f\"" }, "LocalDatabaseReferencesAsEmpty": false, diff --git a/fluentui-ard/Entropy/checksum.json b/fluentui-ard/Entropy/checksum.json index 8634adedd1167e2ff7e178f39e6cd18e8589618b..7c0fecee23a866663324047a46bdc540ea89ad66 100644 --- a/fluentui-ard/Entropy/checksum.json +++ b/fluentui-ard/Entropy/checksum.json @@ -4,35 +4,35 @@ "IsLocalBuild": false }, "ClientPerFileChecksums": { - "AppCheckerResult.sarif": "C8_abVlHF+LaZbVhz/GNyWYSrM/C+QooUD4tI+LD4ZYzAg=", + "AppCheckerResult.sarif": "C8_iXtYbvqOvV3593D6ybAsZhaE7En7ylT2++XXA1nmtQE=", "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_Y6VOSK6IEG6PhDcMfWYODBPL/iqcF3f/3ZDMBWviIlc=", - "Header.json": "C8_TyUskO8PcR2Pl+NJoGlZOOiaGlEuFVXyPnrt9KQgJ/U=", - "Properties.json": "C8_qOo5Mr83LyfuPwFDb0BsYi+BXvMpmXGJAINiD/TYpBY=", - "References\\DataSources.json": "C8_vF7W9QNH93yO65r9WPigh9BXKUJIDc9t8ccyWQpYRAA=", + "Controls\\4.json": "C8_laCBhHVT8GKFQqQiBmhd21qyVx5PAzM4y+pjhZDCtbA=", + "Header.json": "C8_8szkuoV49I7AuKoTjBp8bSgTLRiDXVq8R24Nv//p+c8=", + "Properties.json": "C8_uU5Ndk9oWqOqhBs2YRwMslHqSOi1SpGs9UlJjNUMbBA=", + "References\\DataSources.json": "C8_AP4d84zlTNB1G7fOtHn8u+imLVoq5TnEksGjZu6oLIc=", "References\\ModernThemes.json": "C8_KDQJ/3t27vgKx25iCQB/PGqxkWE34ZB7Eyb+RxNxY0k=", "References\\Resources.json": "C8_GlcOe9G4EOeHkH7PyhrYQaASdG/UxXrvtOuGooqcdIk=", "References\\Templates.json": "C8_ncYLbCcG9Fg3yhYQo5Q3ONl/lxkBYFl9NfZxgS4LDvQ=", "References\\Themes.json": "C8_zuMgLpz3IJQlVgGqo3GtyhriL3PR35GxXf+rtPR4Gfc=", "Resources\\PublishInfo.json": "C8_L9UhOWDoS/LUj0KodcbQiXLqewg00O5iSZA4+bCdTGs=" }, - "ClientStampedChecksum": "C8_s6tPT6NE2twLUn+EOyMXcGRuBlFtVZqJrSGpB+EQeDE=", + "ClientStampedChecksum": "C8_8w+GIppa5VaJijfVYk+UmUGs6OR9dJF77eUgfvl8xWs=", "ServerPerFileChecksums": { - "AppCheckerResult.sarif": "C8_abVlHF+LaZbVhz/GNyWYSrM/C+QooUD4tI+LD4ZYzAg=", + "AppCheckerResult.sarif": "C8_iXtYbvqOvV3593D6ybAsZhaE7En7ylT2++XXA1nmtQE=", "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_Y6VOSK6IEG6PhDcMfWYODBPL/iqcF3f/3ZDMBWviIlc=", - "Header.json": "C8_TyUskO8PcR2Pl+NJoGlZOOiaGlEuFVXyPnrt9KQgJ/U=", - "Properties.json": "C8_qOo5Mr83LyfuPwFDb0BsYi+BXvMpmXGJAINiD/TYpBY=", - "References\\DataSources.json": "C8_vF7W9QNH93yO65r9WPigh9BXKUJIDc9t8ccyWQpYRAA=", + "Controls\\4.json": "C8_laCBhHVT8GKFQqQiBmhd21qyVx5PAzM4y+pjhZDCtbA=", + "Header.json": "C8_8szkuoV49I7AuKoTjBp8bSgTLRiDXVq8R24Nv//p+c8=", + "Properties.json": "C8_uU5Ndk9oWqOqhBs2YRwMslHqSOi1SpGs9UlJjNUMbBA=", + "References\\DataSources.json": "C8_AP4d84zlTNB1G7fOtHn8u+imLVoq5TnEksGjZu6oLIc=", "References\\ModernThemes.json": "C8_KDQJ/3t27vgKx25iCQB/PGqxkWE34ZB7Eyb+RxNxY0k=", "References\\Resources.json": "C8_GlcOe9G4EOeHkH7PyhrYQaASdG/UxXrvtOuGooqcdIk=", "References\\Templates.json": "C8_ncYLbCcG9Fg3yhYQo5Q3ONl/lxkBYFl9NfZxgS4LDvQ=", "References\\Themes.json": "C8_zuMgLpz3IJQlVgGqo3GtyhriL3PR35GxXf+rtPR4Gfc=", "Resources\\PublishInfo.json": "C8_L9UhOWDoS/LUj0KodcbQiXLqewg00O5iSZA4+bCdTGs=" }, - "ServerStampedChecksum": "C8_s6tPT6NE2twLUn+EOyMXcGRuBlFtVZqJrSGpB+EQeDE=" + "ServerStampedChecksum": "C8_8w+GIppa5VaJijfVYk+UmUGs6OR9dJF77eUgfvl8xWs=" } \ No newline at end of file diff --git a/fluentui-ard/Src/Screen1.fx.yaml b/fluentui-ard/Src/Screen1.fx.yaml index b1cae494b00e83857864b50f55b87ab890547f58..105fb1b12043f8d347005e5314f6588675cf818c 100644 --- a/fluentui-ard/Src/Screen1.fx.yaml +++ b/fluentui-ard/Src/Screen1.fx.yaml @@ -238,7 +238,10 @@ Screen1 As screen: HoverColor: =RGBA(251, 188, 159, 1) HoverFill: =RGBA(0, 0, 0, 0) Icon: =Icon.Send - OnSelect: =ConnectAzureOpenai.Run(textinput1.Text); + OnSelect: |- + =If(!IsBlank(textinput1.Text), Set(varResp, varResp & Char(13) & textinput1.Text & Char(13) & Char(13) & "GPT: " & ConnectAzureOpenai.Run(textinput1.Text))); + Reset(textinput1); + Notify("ChatGPT asked", NotificationType.Success , 1000); PressedBorderColor: =RGBA(0, 0, 0, 0) PressedColor: =RGBA(251, 188, 159, 1) PressedFill: =RGBA(0, 0, 0, 0) diff --git a/fluentui-ard/pkgs/Wadl/ConnectAzureOpenai.xml b/fluentui-ard/pkgs/Wadl/ConnectAzureOpenai.xml index ad036ac4d739e1c87aa7309961f056a562cc2faf..724193aa139172a8f121e79a49b911d426dc832c 100644 --- a/fluentui-ard/pkgs/Wadl/ConnectAzureOpenai.xml +++ b/fluentui-ard/pkgs/Wadl/ConnectAzureOpenai.xml @@ -2,7 +2,10 @@ <doc title="ConnectAzureOpenai" /> <grammars> <jsonTypes targetNamespace="https://europe-002.azure-apim.net/apim/logicflows" xmlns="http://schemas.microsoft.com/MicrosoftProjectSiena/WADL/2014/11"> - <object name="ManualTriggerInput" /> + <string name="ManualTriggerInput_text_def" /> + <object name="ManualTriggerInput"> + <property name="text" type="string" /> + </object> </jsonTypes> </grammars> <resources siena:authenticationProviderHref="#PowerAppAuth" base="https://europe-002.azure-apim.net/apim/logicflows"> @@ -14,7 +17,11 @@ <param style="query" name="api-version" type="xs:string" required="true" fixed="2015-02-01-preview"> <doc title="The api version" /> </param> - <representation mediaType="application/json" /> + <representation mediaType="application/json"> + <param style="plain" name="text" path="/text" type="xs:string" required="true"> + <doc title="promt" /> + </param> + </representation> </request> </method> </resource>