From 9199a3583e772eb1da5f0ce44635fb28988bd385 Mon Sep 17 00:00:00 2001 From: Manuel <manuel.geyer@rbb-online.de> Date: Mon, 29 Jan 2024 09:11:55 +0000 Subject: [PATCH] Commit --- fluentui-ard/CanvasManifest.json | 4 +- fluentui-ard/Entropy/AppCheckerResult.sarif | 217 +++++++++++++++++++- fluentui-ard/Entropy/Entropy.json | 2 +- fluentui-ard/Entropy/checksum.json | 24 +-- fluentui-ard/Src/App.fx.yaml | 6 +- fluentui-ard/Src/BaseScreen.fx.yaml | 9 + 6 files changed, 238 insertions(+), 24 deletions(-) diff --git a/fluentui-ard/CanvasManifest.json b/fluentui-ard/CanvasManifest.json index 830f00b..d1d59b5 100644 --- a/fluentui-ard/CanvasManifest.json +++ b/fluentui-ard/CanvasManifest.json @@ -99,7 +99,7 @@ "zeroalltabindexes": false }, "Author": "", - "BindingErrorCount": 0, + "BindingErrorCount": 3, "ContainsThirdPartyPcfControls": false, "DefaultConnectedDataSourceMaxGetRowsCount": 500, "DocumentAppType": "Phone", @@ -117,7 +117,7 @@ "ManualOfflineProfileId": "", "Name": "ChatGPT-H-I", "OriginatingVersion": "1.335", - "ParserErrorCount": 0, + "ParserErrorCount": 1, "ShowStatusBar": false }, "PublishInfo": { diff --git a/fluentui-ard/Entropy/AppCheckerResult.sarif b/fluentui-ard/Entropy/AppCheckerResult.sarif index cc8b016..39368a3 100644 --- a/fluentui-ard/Entropy/AppCheckerResult.sarif +++ b/fluentui-ard/Entropy/AppCheckerResult.sarif @@ -9,6 +9,163 @@ } ], "results": [ + { + "locations": [ + { + "logicalLocations": [ + { + "fullyQualifiedName": "BaseScreen.ConSend.send1.OnSelect" + } + ], + "physicalLocation": { + "address": { + "fullyQualifiedName": "BaseScreen.ConSend.send1.OnSelect", + "relativeAddress": 0 + }, + "region": { + "charLength": 1, + "charOffset": 463, + "snippet": { + "text": ")" + } + } + }, + "properties": { + "member": "OnSelect", + "module": "BaseScreen", + "type": "BaseScreen.ConSend.send1" + } + } + ], + "message": { + "id": "issue" + }, + "properties": { + "level": "High" + }, + "ruleId": "app-ErrBadToken", + "ruleIndex": 0 + }, + { + "locations": [ + { + "logicalLocations": [ + { + "fullyQualifiedName": "BaseScreen.ConSend.send1.OnSelect" + } + ], + "physicalLocation": { + "address": { + "fullyQualifiedName": "BaseScreen.ConSend.send1.OnSelect", + "relativeAddress": 0 + }, + "region": { + "charLength": 8, + "charOffset": 438, + "snippet": { + "text": "variable" + } + } + }, + "properties": { + "member": "OnSelect", + "module": "BaseScreen", + "type": "BaseScreen.ConSend.send1" + } + } + ], + "message": { + "arguments": [ + "variable" + ], + "id": "issue" + }, + "properties": { + "level": "High" + }, + "ruleId": "app-ErrInvalidName", + "ruleIndex": 1 + }, + { + "locations": [ + { + "logicalLocations": [ + { + "fullyQualifiedName": "BaseScreen.ConSend.send1.OnSelect" + } + ], + "physicalLocation": { + "address": { + "fullyQualifiedName": "BaseScreen.ConSend.send1.OnSelect", + "relativeAddress": 0 + }, + "region": { + "charLength": 28, + "charOffset": 430, + "snippet": { + "text": "Collect(variable,ThisRecord)" + } + } + }, + "properties": { + "member": "OnSelect", + "module": "BaseScreen", + "type": "BaseScreen.ConSend.send1" + } + } + ], + "message": { + "arguments": [ + "Collect" + ], + "id": "issue" + }, + "properties": { + "level": "High" + }, + "ruleId": "app-ErrInvalidArgs-Func", + "ruleIndex": 2 + }, + { + "locations": [ + { + "logicalLocations": [ + { + "fullyQualifiedName": "BaseScreen.ConSend.send1.OnSelect" + } + ], + "physicalLocation": { + "address": { + "fullyQualifiedName": "BaseScreen.ConSend.send1.OnSelect", + "relativeAddress": 0 + }, + "region": { + "charLength": 52, + "charOffset": 408, + "snippet": { + "text": "ForAll( gptconv, \n Collect(variable,ThisRecord)\n)" + } + } + }, + "properties": { + "member": "OnSelect", + "module": "BaseScreen", + "type": "BaseScreen.ConSend.send1" + } + } + ], + "message": { + "arguments": [ + "ForAll" + ], + "id": "issue" + }, + "properties": { + "level": "High" + }, + "ruleId": "app-ErrInvalidArgs-Func", + "ruleIndex": 2 + }, { "locations": [ { @@ -37,24 +194,24 @@ "level": "Medium" }, "ruleId": "acc-AccessibleLabelNeeded", - "ruleIndex": 0 + "ruleIndex": 3 }, { "locations": [ { "logicalLocations": [ { - "fullyQualifiedName": "App.tmpp" + "fullyQualifiedName": "App.assiresp" } ], "physicalLocation": { "address": { - "fullyQualifiedName": "App.tmpp", + "fullyQualifiedName": "App.assiresp", "relativeAddress": 0 } }, "properties": { - "member": "tmpp", + "member": "assiresp", "module": "App", "type": "App" } @@ -67,7 +224,7 @@ "level": "Medium" }, "ruleId": "app-UnusedVariables", - "ruleIndex": 1 + "ruleIndex": 4 }, { "locations": [ @@ -97,7 +254,7 @@ "level": "Medium" }, "ruleId": "app-UnusedMediaResources", - "ruleIndex": 2 + "ruleIndex": 5 } ], "tool": { @@ -105,6 +262,54 @@ "fullName": "PowerApps app checker", "name": "PowerApps app checker", "rules": [ + { + "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-ErrInvalidName", + "messageStrings": { + "issue": { + "text": "Name isn't valid. '{0}' isn't recognized." + } + }, + "properties": { + "componentType": "app", + "howToFix": [ + "Remove or correct the reference to the name that isn't valid." + ], + "level": "High", + "primaryCategory": "formula", + "whyFix": "" + } + }, + { + "id": "app-ErrInvalidArgs-Func", + "messageStrings": { + "issue": { + "text": "The function '{0}' has some invalid arguments." + } + }, + "properties": { + "componentType": "app", + "level": "High", + "primaryCategory": "formula", + "whyFix": "" + } + }, { "id": "acc-AccessibleLabelNeeded", "messageStrings": { diff --git a/fluentui-ard/Entropy/Entropy.json b/fluentui-ard/Entropy/Entropy.json index e1ac89f..fef2b20 100644 --- a/fluentui-ard/Entropy/Entropy.json +++ b/fluentui-ard/Entropy/Entropy.json @@ -27,7 +27,7 @@ "DoesTestStepsMetadataExist": true, "FunctionParamsInvariantScripts": {}, "FunctionParamsInvariantScriptsOnInstances": {}, - "HeaderLastSavedDateTimeUTC": "01/29/2024 09:04:47", + "HeaderLastSavedDateTimeUTC": "01/29/2024 09:11:54", "IsLegacyComponentAllowGlobalScopeCase": false, "LocalConnectionIDReferences": { "028e7b29-d321-4e48-a760-c92538b0678a": "\"/providers/microsoft.powerapps/apis/shared_logicflows/connections/ec84356e395faa1b0fdf1c7e126b562e-c1654a69e558fc9f\"", diff --git a/fluentui-ard/Entropy/checksum.json b/fluentui-ard/Entropy/checksum.json index 16e1acd..3f6664b 100644 --- a/fluentui-ard/Entropy/checksum.json +++ b/fluentui-ard/Entropy/checksum.json @@ -4,14 +4,14 @@ "IsLocalBuild": false }, "ClientPerFileChecksums": { - "AppCheckerResult.sarif": "C8_bNIDSrWcyqbMzfe4V1/mLV9uXIQUHXv0Brx6D7ustuo=", + "AppCheckerResult.sarif": "C8_EUD6UvyI/fGqWpb5SpLkaLBDCBsHGkx77NnFYyRgmCM=", "AppTests\\2.json": "C8_e7iNKGdPmvGBQG8t0GHgxl3LWfan9OmlJR4cLuSEmT0=", "Assets\\Images\\0001.png": "C8_D0WGiAaxVuIcUWpkdQuVcyQy/gSJZuMRDwL63zxJhAk=", "Assets\\Images\\0002.jpg": "C8_Tc/HGdQ62xbtBm/41G1l7DIpMm/RT0cgmhtJyanyURs=", - "Controls\\1.json": "C8_bPNxU9XVLG19eURGo8qiEEOYBE1rq+czTvXMeEmOyZ0=", - "Controls\\4.json": "C8_ymXwoesAemNf8ZH8B4PMe2PP9TNaiDbNXCOfSaSxljQ=", - "Header.json": "C8_f3GjScaKxr+tfZXMg9rqn+7ghppyH2+4oJMGHO9pr30=", - "Properties.json": "C8_KdF+cDIaLbTSPBCHxkbr+EuLe7Y3Xv42636bjVQ6ZgI=", + "Controls\\1.json": "C8_Qvewe6Vv7unA6zxUj2V1tD6DAuZrsiOIWlcYVQxIEqo=", + "Controls\\4.json": "C8_d9Dexi37q/4kSSosuBvmp4x/Dry2/GbF3F9O2gqqlcs=", + "Header.json": "C8_MXX9l9qPBtDHba5zPlr8uygRHZVF+3wOdDmjAoHsxCM=", + "Properties.json": "C8_AC2j2Rf1Bwv9mqM5xlnT62U9MTVC1D4/uZuZYQr1O8I=", "References\\DataSources.json": "C8_HSfaKIHBSrozd6pU4Lq8MXevnM/JO2VFylYmHHkb9So=", "References\\ModernThemes.json": "C8_KDQJ/3t27vgKx25iCQB/PGqxkWE34ZB7Eyb+RxNxY0k=", "References\\QualifiedValues.json": "C8_El4FiKqe0MNuyanHlgG0pvhEijIXFigAGYgvdl/aCtk=", @@ -20,16 +20,16 @@ "References\\Themes.json": "C8_zuMgLpz3IJQlVgGqo3GtyhriL3PR35GxXf+rtPR4Gfc=", "Resources\\PublishInfo.json": "C8_L9UhOWDoS/LUj0KodcbQiXLqewg00O5iSZA4+bCdTGs=" }, - "ClientStampedChecksum": "C8_owtKLtInRpt9m1ejXrtXZutkIu5FOefxp5UAAzKXL1A=", + "ClientStampedChecksum": "C8_Qz8egJEjT6mxPm6G/nx7CtwiykXvDTYzhW6+JXno8Bk=", "ServerPerFileChecksums": { - "AppCheckerResult.sarif": "C8_bNIDSrWcyqbMzfe4V1/mLV9uXIQUHXv0Brx6D7ustuo=", + "AppCheckerResult.sarif": "C8_EUD6UvyI/fGqWpb5SpLkaLBDCBsHGkx77NnFYyRgmCM=", "AppTests\\2.json": "C8_e7iNKGdPmvGBQG8t0GHgxl3LWfan9OmlJR4cLuSEmT0=", "Assets\\Images\\0001.png": "C8_D0WGiAaxVuIcUWpkdQuVcyQy/gSJZuMRDwL63zxJhAk=", "Assets\\Images\\0002.jpg": "C8_Tc/HGdQ62xbtBm/41G1l7DIpMm/RT0cgmhtJyanyURs=", - "Controls\\1.json": "C8_bPNxU9XVLG19eURGo8qiEEOYBE1rq+czTvXMeEmOyZ0=", - "Controls\\4.json": "C8_ymXwoesAemNf8ZH8B4PMe2PP9TNaiDbNXCOfSaSxljQ=", - "Header.json": "C8_f3GjScaKxr+tfZXMg9rqn+7ghppyH2+4oJMGHO9pr30=", - "Properties.json": "C8_KdF+cDIaLbTSPBCHxkbr+EuLe7Y3Xv42636bjVQ6ZgI=", + "Controls\\1.json": "C8_Qvewe6Vv7unA6zxUj2V1tD6DAuZrsiOIWlcYVQxIEqo=", + "Controls\\4.json": "C8_d9Dexi37q/4kSSosuBvmp4x/Dry2/GbF3F9O2gqqlcs=", + "Header.json": "C8_MXX9l9qPBtDHba5zPlr8uygRHZVF+3wOdDmjAoHsxCM=", + "Properties.json": "C8_AC2j2Rf1Bwv9mqM5xlnT62U9MTVC1D4/uZuZYQr1O8I=", "References\\DataSources.json": "C8_HSfaKIHBSrozd6pU4Lq8MXevnM/JO2VFylYmHHkb9So=", "References\\ModernThemes.json": "C8_KDQJ/3t27vgKx25iCQB/PGqxkWE34ZB7Eyb+RxNxY0k=", "References\\QualifiedValues.json": "C8_El4FiKqe0MNuyanHlgG0pvhEijIXFigAGYgvdl/aCtk=", @@ -38,5 +38,5 @@ "References\\Themes.json": "C8_zuMgLpz3IJQlVgGqo3GtyhriL3PR35GxXf+rtPR4Gfc=", "Resources\\PublishInfo.json": "C8_L9UhOWDoS/LUj0KodcbQiXLqewg00O5iSZA4+bCdTGs=" }, - "ServerStampedChecksum": "C8_owtKLtInRpt9m1ejXrtXZutkIu5FOefxp5UAAzKXL1A=" + "ServerStampedChecksum": "C8_Qz8egJEjT6mxPm6G/nx7CtwiykXvDTYzhW6+JXno8Bk=" } \ No newline at end of file diff --git a/fluentui-ard/Src/App.fx.yaml b/fluentui-ard/Src/App.fx.yaml index e05452c..2afeedf 100644 --- a/fluentui-ard/Src/App.fx.yaml +++ b/fluentui-ard/Src/App.fx.yaml @@ -11,9 +11,9 @@ App As appinfo: gptconv, { cnt: msgcnt, - Sys: "behave of gpt", - you: "your question", - assi: "gpt answer" + Sys: "", + you: "", + assi: "" } ) Theme: =PowerAppsTheme diff --git a/fluentui-ard/Src/BaseScreen.fx.yaml b/fluentui-ard/Src/BaseScreen.fx.yaml index 4555295..1b45560 100644 --- a/fluentui-ard/Src/BaseScreen.fx.yaml +++ b/fluentui-ard/Src/BaseScreen.fx.yaml @@ -293,10 +293,19 @@ BaseScreen As screen: !IsBlank(textinput1.Text), textinput1.Text; // you behave1.SelectedText.'data-ADB4D7A662F548B49FAC2B986E348A1BVal'; // sys + // Send to Azure Set(assiresp, ConnectAzureOpenai.Run(textinput1.Text, Creativity, behave1.SelectedText.'data-ADB4D7A662F548B49FAC2B986E348A1BVal')); // Assi ); + // Store into Collection + ForAll( gptconv, + Collect(variable,ThisRecord) + ); + + ); + + // text out Set(tmpp, Text(assiresp.ttokens, "######")); Set( -- GitLab