From 7cf83301775e651621047ff436271a751441b3b3 Mon Sep 17 00:00:00 2001
From: Manuel <manuel.geyer@rbb-online.de>
Date: Mon, 29 Jan 2024 09:40:51 +0000
Subject: [PATCH] Commit

---
 fluentui-ard/Entropy/AppCheckerResult.sarif | 131 ++++++++------------
 fluentui-ard/Entropy/Entropy.json           |  10 +-
 fluentui-ard/Entropy/checksum.json          |  24 ++--
 fluentui-ard/Src/BaseScreen.fx.yaml         |   1 -
 4 files changed, 66 insertions(+), 100 deletions(-)

diff --git a/fluentui-ard/Entropy/AppCheckerResult.sarif b/fluentui-ard/Entropy/AppCheckerResult.sarif
index aef9800..ff6d631 100644
--- a/fluentui-ard/Entropy/AppCheckerResult.sarif
+++ b/fluentui-ard/Entropy/AppCheckerResult.sarif
@@ -14,32 +14,32 @@
             {
               "logicalLocations": [
                 {
-                  "fullyQualifiedName": "BaseScreen.ConSend.send1.OnSelect"
+                  "fullyQualifiedName": "App.OnStart"
                 }
               ],
               "physicalLocation": {
                 "address": {
-                  "fullyQualifiedName": "BaseScreen.ConSend.send1.OnSelect",
+                  "fullyQualifiedName": "App.OnStart",
                   "relativeAddress": 0
                 },
                 "region": {
-                  "charLength": 100,
-                  "charOffset": 465,
+                  "charLength": 112,
+                  "charOffset": 202,
                   "snippet": {
-                    "text": "Collect(gptconv, {cnt: msgcnt, sys: behave1.SelectedText.Val, you: textinput1.Text, assi: assiresp})"
+                    "text": "ClearCollect(\n    gptconv,\n    {\n        cnt: msgcnt,\n        sys: \"\",\n        you: \"\",\n        assi: \"\"\n    }\n)"
                   }
                 }
               },
               "properties": {
-                "member": "OnSelect",
-                "module": "BaseScreen",
-                "type": "BaseScreen.ConSend.send1"
+                "member": "OnStart",
+                "module": "App",
+                "type": "App"
               }
             }
           ],
           "message": {
             "arguments": [
-              "Collect"
+              "ClearCollect"
             ],
             "id": "issue"
           },
@@ -54,41 +54,36 @@
             {
               "logicalLocations": [
                 {
-                  "fullyQualifiedName": "BaseScreen.ConSend.send1.OnSelect"
+                  "fullyQualifiedName": "App.OnStart"
                 }
               ],
               "physicalLocation": {
                 "address": {
-                  "fullyQualifiedName": "BaseScreen.ConSend.send1.OnSelect",
+                  "fullyQualifiedName": "App.OnStart",
                   "relativeAddress": 0
                 },
                 "region": {
-                  "charLength": 82,
-                  "charOffset": 482,
+                  "charLength": 7,
+                  "charOffset": 220,
                   "snippet": {
-                    "text": "{cnt: msgcnt, sys: behave1.SelectedText.Val, you: textinput1.Text, assi: assiresp}"
+                    "text": "gptconv"
                   }
                 }
               },
               "properties": {
-                "member": "OnSelect",
-                "module": "BaseScreen",
-                "type": "BaseScreen.ConSend.send1"
+                "member": "OnStart",
+                "module": "App",
+                "type": "App"
               }
             }
           ],
           "message": {
-            "arguments": [
-              "assi",
-              "Text",
-              "Error"
-            ],
             "id": "issue"
           },
           "properties": {
             "level": "High"
           },
-          "ruleId": "app-ErrColumnTypeMismatch-ColName-ExpectedType-ActualType",
+          "ruleId": "app-ErrCollectionDoesNotAcceptThisType",
           "ruleIndex": 1
         },
         {
@@ -105,10 +100,10 @@
                   "relativeAddress": 0
                 },
                 "region": {
-                  "charLength": 8,
-                  "charOffset": 947,
+                  "charLength": 100,
+                  "charOffset": 438,
                   "snippet": {
-                    "text": ".ttokens"
+                    "text": "Collect(gptconv, {cnt: msgcnt, sys: behave1.SelectedText.Val, you: textinput1.Text, assi: assiresp})"
                   }
                 }
               },
@@ -120,13 +115,16 @@
             }
           ],
           "message": {
+            "arguments": [
+              "Collect"
+            ],
             "id": "issue"
           },
           "properties": {
             "level": "High"
           },
-          "ruleId": "app-ErrInvalidDot",
-          "ruleIndex": 2
+          "ruleId": "app-ErrInvalidArgs-Func",
+          "ruleIndex": 0
         },
         {
           "locations": [
@@ -142,10 +140,10 @@
                   "relativeAddress": 0
                 },
                 "region": {
-                  "charLength": 32,
-                  "charOffset": 934,
+                  "charLength": 7,
+                  "charOffset": 446,
                   "snippet": {
-                    "text": "Text(assiresp.ttokens, \"######\")"
+                    "text": "gptconv"
                   }
                 }
               },
@@ -157,16 +155,13 @@
             }
           ],
           "message": {
-            "arguments": [
-              "Text"
-            ],
             "id": "issue"
           },
           "properties": {
             "level": "High"
           },
-          "ruleId": "app-ErrInvalidArgs-Func",
-          "ruleIndex": 0
+          "ruleId": "app-ErrCollectionDoesNotAcceptThisType",
+          "ruleIndex": 1
         },
         {
           "locations": [
@@ -182,10 +177,10 @@
                   "relativeAddress": 0
                 },
                 "region": {
-                  "charLength": 8,
-                  "charOffset": 957,
+                  "charLength": 56,
+                  "charOffset": 819,
                   "snippet": {
-                    "text": "\"######\""
+                    "text": "Collect(gptconv, {cnt: msgcnt,Sys:\" \",you:\" \",assi:\" \"})"
                   }
                 }
               },
@@ -198,15 +193,15 @@
           ],
           "message": {
             "arguments": [
-              "Text"
+              "Collect"
             ],
             "id": "issue"
           },
           "properties": {
-            "level": "Medium"
+            "level": "High"
           },
-          "ruleId": "app-ErrIncorrectFormat-Func",
-          "ruleIndex": 3
+          "ruleId": "app-ErrInvalidArgs-Func",
+          "ruleIndex": 0
         },
         {
           "locations": [
@@ -222,10 +217,10 @@
                   "relativeAddress": 0
                 },
                 "region": {
-                  "charLength": 5,
-                  "charOffset": 1119,
+                  "charLength": 7,
+                  "charOffset": 827,
                   "snippet": {
-                    "text": ".assi"
+                    "text": "gptconv"
                   }
                 }
               },
@@ -242,8 +237,8 @@
           "properties": {
             "level": "High"
           },
-          "ruleId": "app-ErrInvalidDot",
-          "ruleIndex": 2
+          "ruleId": "app-ErrCollectionDoesNotAcceptThisType",
+          "ruleIndex": 1
         },
         {
           "locations": [
@@ -273,7 +268,7 @@
             "level": "Medium"
           },
           "ruleId": "acc-AccessibleLabelNeeded",
-          "ruleIndex": 4
+          "ruleIndex": 2
         },
         {
           "locations": [
@@ -303,7 +298,7 @@
             "level": "Medium"
           },
           "ruleId": "app-UnusedVariables",
-          "ruleIndex": 5
+          "ruleIndex": 3
         },
         {
           "locations": [
@@ -333,7 +328,7 @@
             "level": "Medium"
           },
           "ruleId": "app-UnusedMediaResources",
-          "ruleIndex": 6
+          "ruleIndex": 4
         }
       ],
       "tool": {
@@ -356,50 +351,22 @@
               }
             },
             {
-              "id": "app-ErrColumnTypeMismatch-ColName-ExpectedType-ActualType",
+              "id": "app-ErrCollectionDoesNotAcceptThisType",
               "messageStrings": {
                 "issue": {
-                  "text": "Incompatible type. The '{0}' column in the data source you’re updating expects a '{1}' type and you’re using a '{2}' type."
+                  "text": "Incompatible type. The collection can't contain values of this type."
                 }
               },
               "properties": {
                 "componentType": "app",
                 "howToFix": [
-                  "You might need to convert the value to the same type, such as converting a date string (e.g., \"12/31/2018\") to a date value or a string to a number."
+                  "You might need to convert the type of the item using, for example, a Datevalue, Text, or Value function."
                 ],
                 "level": "High",
                 "primaryCategory": "formula",
                 "whyFix": ""
               }
             },
-            {
-              "id": "app-ErrInvalidDot",
-              "messageStrings": {
-                "issue": {
-                  "text": "Invalid use of '.'"
-                }
-              },
-              "properties": {
-                "componentType": "app",
-                "level": "High",
-                "primaryCategory": "formula",
-                "whyFix": ""
-              }
-            },
-            {
-              "id": "app-ErrIncorrectFormat-Func",
-              "messageStrings": {
-                "issue": {
-                  "text": "Incorrect format specifier for '{0}'."
-                }
-              },
-              "properties": {
-                "componentType": "app",
-                "level": "Medium",
-                "primaryCategory": "formula",
-                "whyFix": ""
-              }
-            },
             {
               "id": "acc-AccessibleLabelNeeded",
               "messageStrings": {
diff --git a/fluentui-ard/Entropy/Entropy.json b/fluentui-ard/Entropy/Entropy.json
index 181e89f..592d741 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:39:49",
+  "HeaderLastSavedDateTimeUTC": "01/29/2024 09:40:50",
   "IsLegacyComponentAllowGlobalScopeCase": false,
   "LocalConnectionIDReferences": {
     "028e7b29-d321-4e48-a760-c92538b0678a": "\"/providers/microsoft.powerapps/apis/shared_logicflows/connections/ec84356e395faa1b0fdf1c7e126b562e-c1654a69e558fc9f\"",
@@ -40,8 +40,8 @@
     "rbb-logo": "0002.jpg"
   },
   "LocalResourceRootPaths": {
-    "ard-logo": "https://docserverpwaprodneu.blob.core.windows.net/13003eae-2646-427d-ac0d-88ff472228b1-1/resource/Assets0Images00001.png?skoid=58690ece-ec83-4ce2-9ce8-883d4d6a54ee&sktid=975f013f-7f24-47e8-a7d3-abc4752bf346&skt=2024-01-29T07%3A21%3A57Z&ske=2024-01-30T07%3A36%3A57Z&sks=b&skv=2022-11-02&sv=2022-11-02&spr=https&se=2024-01-30T07%3A36%3A57Z&sr=b&sp=r&sig=kKMVUWPb25LLXeQ%2FZCU9OuSHhz9OhzQY%2FdBm%2FerZ3j8%3D",
-    "rbb-logo": "https://docserverpwaprodneu.blob.core.windows.net/13003eae-2646-427d-ac0d-88ff472228b1-1/resource/Assets0Images00002.jpg?skoid=58690ece-ec83-4ce2-9ce8-883d4d6a54ee&sktid=975f013f-7f24-47e8-a7d3-abc4752bf346&skt=2024-01-29T07%3A21%3A57Z&ske=2024-01-30T07%3A36%3A57Z&sks=b&skv=2022-11-02&sv=2022-11-02&spr=https&se=2024-01-30T07%3A36%3A57Z&sr=b&sp=r&sig=6COjHcb%2FUY0bqJcTW%2F5yY0xHvlPEV%2FTg6BamlWomYyM%3D"
+    "ard-logo": "https://docserverpwaprodneu.blob.core.windows.net/914482dd-b53f-4014-9bae-a111ab5683ec-1/resource/Assets0Images00001.png?skoid=58690ece-ec83-4ce2-9ce8-883d4d6a54ee&sktid=975f013f-7f24-47e8-a7d3-abc4752bf346&skt=2024-01-29T09%3A40%3A13Z&ske=2024-01-30T09%3A55%3A13Z&sks=b&skv=2022-11-02&sv=2022-11-02&spr=https&se=2024-01-30T09%3A55%3A13Z&sr=b&sp=r&sig=35%2Fx537ZPBrGmhBw2jrychnTebIFWHsTwrTUsHqh%2Fig%3D",
+    "rbb-logo": "https://docserverpwaprodneu.blob.core.windows.net/914482dd-b53f-4014-9bae-a111ab5683ec-1/resource/Assets0Images00002.jpg?skoid=58690ece-ec83-4ce2-9ce8-883d4d6a54ee&sktid=975f013f-7f24-47e8-a7d3-abc4752bf346&skt=2024-01-29T09%3A40%3A13Z&ske=2024-01-30T09%3A55%3A13Z&sks=b&skv=2022-11-02&sv=2022-11-02&spr=https&se=2024-01-30T09%3A55%3A13Z&sr=b&sp=r&sig=I8CrbjgOm6u0fD95jiXgXd33rAcGkNfjx9QvYoSuaZU%3D"
   },
   "OrderComponentMetadata": {},
   "OrderComponentTemplate": {},
@@ -124,7 +124,7 @@
   "RuleScreenIdWithoutScreen": {},
   "TemplateVersions": {},
   "VolatileProperties": {
-    "AnalysisLoadTime": 0.1314707,
+    "AnalysisLoadTime": 0.1851168,
     "ControlCount": {
       "dropdown": 1,
       "groupContainer": 4,
@@ -138,7 +138,7 @@
       "text": 2,
       "toggleSwitch": 1
     },
-    "DeserializationLoadTime": 1.9706193
+    "DeserializationLoadTime": 2.1480483
   },
   "WasLocalDatabaseReferencesEmpty": false
 }
\ No newline at end of file
diff --git a/fluentui-ard/Entropy/checksum.json b/fluentui-ard/Entropy/checksum.json
index 50e4f5f..5fda323 100644
--- a/fluentui-ard/Entropy/checksum.json
+++ b/fluentui-ard/Entropy/checksum.json
@@ -4,39 +4,39 @@
     "IsLocalBuild": false
   },
   "ClientPerFileChecksums": {
-    "AppCheckerResult.sarif": "C8_/n9/O0v3gB6mGRUkZG+CehnqJVTNpustJ1KetBvDqCE=",
+    "AppCheckerResult.sarif": "C8_ieTb56OqIfcqFJefxdhT/Bu03K0PRD5Rj0j0SbZY5gI=",
     "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_kmQ9ZBliKRUlK7WAiimFjKljGhL8xYPYPAr39QvEmuI=",
-    "Controls\\4.json": "C8_UzQBT8r2aHCnFSrrDXD1gawXP+OtnEqGepSyPVt2FlQ=",
-    "Header.json": "C8_H4tcRgyU6qKYEARRnDjkZZvIxwPxsLFF9hHdTMxfAJg=",
-    "Properties.json": "C8_vkDA98CuOGStuURxvD4qfAmJzZqqf7bdi7YgOh1Llng=",
+    "Controls\\4.json": "C8_9Q7GJeI1kSwLqY4SP9PqWaNkX0UAfvYjSbDuc6bfvN8=",
+    "Header.json": "C8_ZPbwABqoogVmLxtNqNTF6J9UgOuFrc8gmduKein2wOM=",
+    "Properties.json": "C8_jFs+mesiNVXr4YlrWDMPcr+Y/6jZSq65vjGSeJBf8Ug=",
     "References\\DataSources.json": "C8_HSfaKIHBSrozd6pU4Lq8MXevnM/JO2VFylYmHHkb9So=",
     "References\\ModernThemes.json": "C8_KDQJ/3t27vgKx25iCQB/PGqxkWE34ZB7Eyb+RxNxY0k=",
     "References\\QualifiedValues.json": "C8_El4FiKqe0MNuyanHlgG0pvhEijIXFigAGYgvdl/aCtk=",
-    "References\\Resources.json": "C8_nqZvStgBcFiFo/gXG4mBV4QJDswKX86pXwmhw9T9TJ4=",
+    "References\\Resources.json": "C8_wxyAylcRJszd8bxNxG+5uD9RufYlyl7t81DlethmS0A=",
     "References\\Templates.json": "C8_YkZPbHeipzj9WgNTM++Bqy2uYkDiwNrCKPja6wVr3xs=",
     "References\\Themes.json": "C8_zuMgLpz3IJQlVgGqo3GtyhriL3PR35GxXf+rtPR4Gfc=",
     "Resources\\PublishInfo.json": "C8_L9UhOWDoS/LUj0KodcbQiXLqewg00O5iSZA4+bCdTGs="
   },
-  "ClientStampedChecksum": "C8_f4PLIcvCX/tnjSReYOQXFyWxl4xk94C5Rf9gSdHbP8M=",
+  "ClientStampedChecksum": "C8_aJAS2xamry3f8fTHDRusLUSXUxkCav4qt6nPpCabySY=",
   "ServerPerFileChecksums": {
-    "AppCheckerResult.sarif": "C8_/n9/O0v3gB6mGRUkZG+CehnqJVTNpustJ1KetBvDqCE=",
+    "AppCheckerResult.sarif": "C8_ieTb56OqIfcqFJefxdhT/Bu03K0PRD5Rj0j0SbZY5gI=",
     "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_kmQ9ZBliKRUlK7WAiimFjKljGhL8xYPYPAr39QvEmuI=",
-    "Controls\\4.json": "C8_UzQBT8r2aHCnFSrrDXD1gawXP+OtnEqGepSyPVt2FlQ=",
-    "Header.json": "C8_H4tcRgyU6qKYEARRnDjkZZvIxwPxsLFF9hHdTMxfAJg=",
-    "Properties.json": "C8_vkDA98CuOGStuURxvD4qfAmJzZqqf7bdi7YgOh1Llng=",
+    "Controls\\4.json": "C8_9Q7GJeI1kSwLqY4SP9PqWaNkX0UAfvYjSbDuc6bfvN8=",
+    "Header.json": "C8_ZPbwABqoogVmLxtNqNTF6J9UgOuFrc8gmduKein2wOM=",
+    "Properties.json": "C8_jFs+mesiNVXr4YlrWDMPcr+Y/6jZSq65vjGSeJBf8Ug=",
     "References\\DataSources.json": "C8_HSfaKIHBSrozd6pU4Lq8MXevnM/JO2VFylYmHHkb9So=",
     "References\\ModernThemes.json": "C8_KDQJ/3t27vgKx25iCQB/PGqxkWE34ZB7Eyb+RxNxY0k=",
     "References\\QualifiedValues.json": "C8_El4FiKqe0MNuyanHlgG0pvhEijIXFigAGYgvdl/aCtk=",
-    "References\\Resources.json": "C8_nqZvStgBcFiFo/gXG4mBV4QJDswKX86pXwmhw9T9TJ4=",
+    "References\\Resources.json": "C8_wxyAylcRJszd8bxNxG+5uD9RufYlyl7t81DlethmS0A=",
     "References\\Templates.json": "C8_YkZPbHeipzj9WgNTM++Bqy2uYkDiwNrCKPja6wVr3xs=",
     "References\\Themes.json": "C8_zuMgLpz3IJQlVgGqo3GtyhriL3PR35GxXf+rtPR4Gfc=",
     "Resources\\PublishInfo.json": "C8_L9UhOWDoS/LUj0KodcbQiXLqewg00O5iSZA4+bCdTGs="
   },
-  "ServerStampedChecksum": "C8_f4PLIcvCX/tnjSReYOQXFyWxl4xk94C5Rf9gSdHbP8M="
+  "ServerStampedChecksum": "C8_aJAS2xamry3f8fTHDRusLUSXUxkCav4qt6nPpCabySY="
 }
\ No newline at end of file
diff --git a/fluentui-ard/Src/BaseScreen.fx.yaml b/fluentui-ard/Src/BaseScreen.fx.yaml
index 44dae81..9c0d111 100644
--- a/fluentui-ard/Src/BaseScreen.fx.yaml
+++ b/fluentui-ard/Src/BaseScreen.fx.yaml
@@ -294,7 +294,6 @@ BaseScreen As screen:
                         textinput1.Text;          // you
                         behave1.SelectedText.'data-ADB4D7A662F548B49FAC2B986E348A1BVal'; // sys
                         // Send to Azure
-                        Set(assiresp, "");
                         Set(assiresp, ConnectAzureOpenai.Run(textinput1.Text, Creativity, behave1.SelectedText.'data-ADB4D7A662F548B49FAC2B986E348A1BVal')); // Assi
                 
                         // write into collection
-- 
GitLab