From 6628f8322dc511e6bf00697e0203166ac119790f Mon Sep 17 00:00:00 2001
From: Manuel <manuel.geyer@rbb-online.de>
Date: Fri, 19 Jan 2024 10:50:31 +0000
Subject: [PATCH] Commit

---
 fluentui-ard/CanvasManifest.json            |   4 +-
 fluentui-ard/Entropy/AppCheckerResult.sarif | 211 +++++++++++++++++++-
 fluentui-ard/Entropy/Entropy.json           |   2 +-
 fluentui-ard/Entropy/checksum.json          |  20 +-
 fluentui-ard/Src/BaseScreen.fx.yaml         |   2 +-
 5 files changed, 223 insertions(+), 16 deletions(-)

diff --git a/fluentui-ard/CanvasManifest.json b/fluentui-ard/CanvasManifest.json
index d9511b1..3f769c4 100644
--- a/fluentui-ard/CanvasManifest.json
+++ b/fluentui-ard/CanvasManifest.json
@@ -98,7 +98,7 @@
       "zeroalltabindexes": false
     },
     "Author": "",
-    "BindingErrorCount": 0,
+    "BindingErrorCount": 2,
     "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 fc26846..5a48476 100644
--- a/fluentui-ard/Entropy/AppCheckerResult.sarif
+++ b/fluentui-ard/Entropy/AppCheckerResult.sarif
@@ -9,6 +9,121 @@
         }
       ],
       "results": [
+        {
+          "locations": [
+            {
+              "logicalLocations": [
+                {
+                  "fullyQualifiedName": "BaseScreen.ConSend.send1.OnSelect"
+                }
+              ],
+              "physicalLocation": {
+                "address": {
+                  "fullyQualifiedName": "BaseScreen.ConSend.send1.OnSelect",
+                  "relativeAddress": 0
+                },
+                "region": {
+                  "charLength": 1,
+                  "charOffset": 450,
+                  "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": 103,
+                  "charOffset": 314,
+                  "snippet": {
+                    "text": "ConnectAzureOpenai.Run(\n            textinput1.Text,\n            Creativity, behave1.SelectedText.Text)"
+                  }
+                }
+              },
+              "properties": {
+                "member": "OnSelect",
+                "module": "BaseScreen",
+                "type": "BaseScreen.ConSend.send1"
+              }
+            }
+          ],
+          "message": {
+            "arguments": [
+              "3",
+              "2"
+            ],
+            "id": "issue"
+          },
+          "properties": {
+            "level": "High"
+          },
+          "ruleId": "app-ErrBadArity",
+          "ruleIndex": 1
+        },
+        {
+          "locations": [
+            {
+              "logicalLocations": [
+                {
+                  "fullyQualifiedName": "BaseScreen.ConSend.send1.OnSelect"
+                }
+              ],
+              "physicalLocation": {
+                "address": {
+                  "fullyQualifiedName": "BaseScreen.ConSend.send1.OnSelect",
+                  "relativeAddress": 0
+                },
+                "region": {
+                  "charLength": 5,
+                  "charOffset": 427,
+                  "snippet": {
+                    "text": ".assi"
+                  }
+                }
+              },
+              "properties": {
+                "member": "OnSelect",
+                "module": "BaseScreen",
+                "type": "BaseScreen.ConSend.send1"
+              }
+            }
+          ],
+          "message": {
+            "id": "issue"
+          },
+          "properties": {
+            "level": "High"
+          },
+          "ruleId": "app-ErrInvalidDot",
+          "ruleIndex": 2
+        },
         {
           "locations": [
             {
@@ -37,7 +152,37 @@
             "level": "Medium"
           },
           "ruleId": "acc-AccessibleLabelNeeded",
-          "ruleIndex": 0
+          "ruleIndex": 3
+        },
+        {
+          "locations": [
+            {
+              "logicalLocations": [
+                {
+                  "fullyQualifiedName": "App.Creativity"
+                }
+              ],
+              "physicalLocation": {
+                "address": {
+                  "fullyQualifiedName": "App.Creativity",
+                  "relativeAddress": 0
+                }
+              },
+              "properties": {
+                "member": "Creativity",
+                "module": "App",
+                "type": "App"
+              }
+            }
+          ],
+          "message": {
+            "id": "issue"
+          },
+          "properties": {
+            "level": "Medium"
+          },
+          "ruleId": "app-UnusedVariables",
+          "ruleIndex": 4
         },
         {
           "locations": [
@@ -67,7 +212,7 @@
             "level": "Medium"
           },
           "ruleId": "app-UnusedMediaResources",
-          "ruleIndex": 1
+          "ruleIndex": 5
         }
       ],
       "tool": {
@@ -75,6 +220,51 @@
           "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-ErrBadArity",
+              "messageStrings": {
+                "issue": {
+                  "text": "Invalid number of arguments: received {0}, expected {1}."
+                }
+              },
+              "properties": {
+                "componentType": "app",
+                "level": "High",
+                "primaryCategory": "formula",
+                "whyFix": ""
+              }
+            },
+            {
+              "id": "app-ErrInvalidDot",
+              "messageStrings": {
+                "issue": {
+                  "text": "Invalid use of '.'"
+                }
+              },
+              "properties": {
+                "componentType": "app",
+                "level": "High",
+                "primaryCategory": "formula",
+                "whyFix": ""
+              }
+            },
             {
               "id": "acc-AccessibleLabelNeeded",
               "messageStrings": {
@@ -92,6 +282,23 @@
                 "whyFix": "If there's no accessible text, people who can’t see the screen won't understand what’s in images and controls."
               }
             },
+            {
+              "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 26ed0b3..230ba5e 100644
--- a/fluentui-ard/Entropy/Entropy.json
+++ b/fluentui-ard/Entropy/Entropy.json
@@ -27,7 +27,7 @@
   "DoesTestStepsMetadataExist": true,
   "FunctionParamsInvariantScripts": {},
   "FunctionParamsInvariantScriptsOnInstances": {},
-  "HeaderLastSavedDateTimeUTC": "01/19/2024 10:48:11",
+  "HeaderLastSavedDateTimeUTC": "01/19/2024 10:50:31",
   "IsLegacyComponentAllowGlobalScopeCase": false,
   "LocalConnectionIDReferences": {
     "58777019-e129-4c81-9ea2-60ba600d72f2": "\"/providers/microsoft.powerapps/apis/shared_azure-2dopenai-2dconnector-5f1d98e22a441b0e2d-5f3739fab3a930da50/connections/shared-azure-2dopena-3f4cdc89-63b5-4018-882d-1f1c97eb18e0\"",
diff --git a/fluentui-ard/Entropy/checksum.json b/fluentui-ard/Entropy/checksum.json
index 66294e8..fda3328 100644
--- a/fluentui-ard/Entropy/checksum.json
+++ b/fluentui-ard/Entropy/checksum.json
@@ -4,14 +4,14 @@
     "IsLocalBuild": false
   },
   "ClientPerFileChecksums": {
-    "AppCheckerResult.sarif": "C8_FR+rChiYwzo+Mrrisfn1kK6viScOyF8EJFRMbwzrBP4=",
+    "AppCheckerResult.sarif": "C8_GrsSvoFA0AATAxHxRU+DrT2MfF/6HzakL1W8CVNPjB4=",
     "AppTests\\2.json": "C8_omA4KVA0ye8qkU+fMWC8nSkoW42AEHM4XBnnYkUJCys=",
     "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_if4qfc5yBVs9pHRRViD3FKdw6iIYhfPoctCsUJ73aOg=",
-    "Header.json": "C8_xYYWJYbLkbWWQp2b3M5D5Qp+7hazRJPZr7ATQrYl13Q=",
-    "Properties.json": "C8_HKeTRcP2lIQ4RLf6MB6cGJ53i/iKUS5PLGcriJEsQBQ=",
+    "Controls\\4.json": "C8_TmUP9+pi/z2ZVoFyal7VffOnRpvfhWSl831e7tMprrQ=",
+    "Header.json": "C8_PyDn95mZ52fdwBrgP3HFw/BD4y/tY+UPZmJscJzVPgM=",
+    "Properties.json": "C8_pDKR1GrQBglRbNVOYD/jdTxIdsgob/gLfZMJL8qaBDg=",
     "References\\DataSources.json": "C8_/K7tVtiFazk17nW1lYdLoSO8zYC5PM0RNVbt7MtTeVA=",
     "References\\ModernThemes.json": "C8_KDQJ/3t27vgKx25iCQB/PGqxkWE34ZB7Eyb+RxNxY0k=",
     "References\\Resources.json": "C8_wjrwChaskes02OrUNkqqoVyQNL3a5CydvOQHz8X+fuE=",
@@ -19,16 +19,16 @@
     "References\\Themes.json": "C8_zuMgLpz3IJQlVgGqo3GtyhriL3PR35GxXf+rtPR4Gfc=",
     "Resources\\PublishInfo.json": "C8_L9UhOWDoS/LUj0KodcbQiXLqewg00O5iSZA4+bCdTGs="
   },
-  "ClientStampedChecksum": "C8_YrDDNdCGN7yUjmMvXz28Xoc1AMHZJIbjoWvTJwwo9ng=",
+  "ClientStampedChecksum": "C8_NEUkTZeez/bWX7ZxFXrz4HzxawJYyAOT+ojEenfCnKo=",
   "ServerPerFileChecksums": {
-    "AppCheckerResult.sarif": "C8_FR+rChiYwzo+Mrrisfn1kK6viScOyF8EJFRMbwzrBP4=",
+    "AppCheckerResult.sarif": "C8_GrsSvoFA0AATAxHxRU+DrT2MfF/6HzakL1W8CVNPjB4=",
     "AppTests\\2.json": "C8_omA4KVA0ye8qkU+fMWC8nSkoW42AEHM4XBnnYkUJCys=",
     "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_if4qfc5yBVs9pHRRViD3FKdw6iIYhfPoctCsUJ73aOg=",
-    "Header.json": "C8_xYYWJYbLkbWWQp2b3M5D5Qp+7hazRJPZr7ATQrYl13Q=",
-    "Properties.json": "C8_HKeTRcP2lIQ4RLf6MB6cGJ53i/iKUS5PLGcriJEsQBQ=",
+    "Controls\\4.json": "C8_TmUP9+pi/z2ZVoFyal7VffOnRpvfhWSl831e7tMprrQ=",
+    "Header.json": "C8_PyDn95mZ52fdwBrgP3HFw/BD4y/tY+UPZmJscJzVPgM=",
+    "Properties.json": "C8_pDKR1GrQBglRbNVOYD/jdTxIdsgob/gLfZMJL8qaBDg=",
     "References\\DataSources.json": "C8_/K7tVtiFazk17nW1lYdLoSO8zYC5PM0RNVbt7MtTeVA=",
     "References\\ModernThemes.json": "C8_KDQJ/3t27vgKx25iCQB/PGqxkWE34ZB7Eyb+RxNxY0k=",
     "References\\Resources.json": "C8_wjrwChaskes02OrUNkqqoVyQNL3a5CydvOQHz8X+fuE=",
@@ -36,5 +36,5 @@
     "References\\Themes.json": "C8_zuMgLpz3IJQlVgGqo3GtyhriL3PR35GxXf+rtPR4Gfc=",
     "Resources\\PublishInfo.json": "C8_L9UhOWDoS/LUj0KodcbQiXLqewg00O5iSZA4+bCdTGs="
   },
-  "ServerStampedChecksum": "C8_YrDDNdCGN7yUjmMvXz28Xoc1AMHZJIbjoWvTJwwo9ng="
+  "ServerStampedChecksum": "C8_NEUkTZeez/bWX7ZxFXrz4HzxawJYyAOT+ojEenfCnKo="
 }
\ No newline at end of file
diff --git a/fluentui-ard/Src/BaseScreen.fx.yaml b/fluentui-ard/Src/BaseScreen.fx.yaml
index f9bef88..18761ed 100644
--- a/fluentui-ard/Src/BaseScreen.fx.yaml
+++ b/fluentui-ard/Src/BaseScreen.fx.yaml
@@ -297,7 +297,7 @@ BaseScreen As screen:
                         varResp,
                         varResp & Char(10) & "YouYou: " & Char(10) & textinput1.Text & Char(10) & Char(10) & "Assistent: " & Char(10) & ConnectAzureOpenai.Run(
                             textinput1.Text,
-                            Creativity
+                            Creativity, behave1.SelectedText.'data-ADB4D7A662F548B49FAC2B986E348A1BText')
                         ).assi & Char(10)
                     )
                 );
-- 
GitLab