Release 107 feedback: clean desktop chat previews - #84
Quality Gate passed
Annotations
Check failure on line 402 in src/main/vision/vision-host.ts
sonarqubecloud / SonarCloud Code Analysis
Refactor this function to reduce its Cognitive Complexity from 17 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=off-grid-ai_off-grid-ai-desktop&issues=AaA-izjsWyP__lfKRpQd&open=AaA-izjsWyP__lfKRpQd&pullRequest=84
Check warning on line 1 in src/main/transcription/whisper-server-transcription.ts
sonarqubecloud / SonarCloud Code Analysis
Prefer `node:fs` over `fs`.
See more on https://sonarcloud.io/project/issues?id=off-grid-ai_off-grid-ai-desktop&issues=AaBNWZdckc3VX7mN9LYD&open=AaBNWZdckc3VX7mN9LYD&pullRequest=84
Check warning on line 146 in src/main/proposal-deck/tool.ts
sonarqubecloud / SonarCloud Code Analysis
'args.outputFolder ?? ''' will use Object's default stringification format ('[object Object]') when stringified.
See more on https://sonarcloud.io/project/issues?id=off-grid-ai_off-grid-ai-desktop&issues=AaA-izeTWyP__lfKRpPx&open=AaA-izeTWyP__lfKRpPx&pullRequest=84
Check warning on line 22 in src/renderer/src/components/explore/ExploreScreen.tsx
sonarqubecloud / SonarCloud Code Analysis
Mark the props of the component as read-only.
See more on https://sonarcloud.io/project/issues?id=off-grid-ai_off-grid-ai-desktop&issues=AaA-i0PuWyP__lfKRpVJ&open=AaA-i0PuWyP__lfKRpVJ&pullRequest=84
Check warning on line 3 in src/main/index.ts
sonarqubecloud / SonarCloud Code Analysis
Prefer `node:os` over `os`.
See more on https://sonarcloud.io/project/issues?id=off-grid-ai_off-grid-ai-desktop&issues=AaA-iztlWyP__lfKRpRn&open=AaA-iztlWyP__lfKRpRn&pullRequest=84
Check warning on line 389 in src/main/accessibility/ax-host.ts
sonarqubecloud / SonarCloud Code Analysis
Extract this nested ternary operation into an independent statement.
See more on https://sonarcloud.io/project/issues?id=off-grid-ai_off-grid-ai-desktop&issues=AaA-izyxWyP__lfKRpSR&open=AaA-izyxWyP__lfKRpSR&pullRequest=84
Check warning on line 68 in src/main/vision/vision-action.ts
sonarqubecloud / SonarCloud Code Analysis
Use the "RegExp.exec()" method instead.
See more on https://sonarcloud.io/project/issues?id=off-grid-ai_off-grid-ai-desktop&issues=AaA-izkeWyP__lfKRpQn&open=AaA-izkeWyP__lfKRpQn&pullRequest=84
Check warning on line 21 in src/renderer/src/components/tasks/TaskPanelTrigger.tsx
sonarqubecloud / SonarCloud Code Analysis
Mark the props of the component as read-only.
See more on https://sonarcloud.io/project/issues?id=off-grid-ai_off-grid-ai-desktop&issues=AaA-i0MYWyP__lfKRpU1&open=AaA-i0MYWyP__lfKRpU1&pullRequest=84
Check warning on line 156 in src/main/input/actuation.ts
sonarqubecloud / SonarCloud Code Analysis
Prefer using an optional chain expression instead, as it's more concise and easier to read.
See more on https://sonarcloud.io/project/issues?id=off-grid-ai_off-grid-ai-desktop&issues=AaA-iz3eWyP__lfKRpSk&open=AaA-iz3eWyP__lfKRpSk&pullRequest=84
Check warning on line 324 in src/main/vision/model-adapters/ui-mate/policy.ts
sonarqubecloud / SonarCloud Code Analysis
Simplify this regular expression to reduce its runtime, as it has super-linear performance due to backtracking.
See more on https://sonarcloud.io/project/issues?id=off-grid-ai_off-grid-ai-desktop&issues=AaA-izh_WyP__lfKRpQC&open=AaA-izh_WyP__lfKRpQC&pullRequest=84
Check failure on line 88 in src/main/vision/vision-action.ts
sonarqubecloud / SonarCloud Code Analysis
Refactor this function to reduce its Cognitive Complexity from 27 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=off-grid-ai_off-grid-ai-desktop&issues=AaA-izkeWyP__lfKRpQs&open=AaA-izkeWyP__lfKRpQs&pullRequest=84
Check warning on line 225 in src/main/proposal-deck/tool.ts
sonarqubecloud / SonarCloud Code Analysis
'args.action ?? ''' will use Object's default stringification format ('[object Object]') when stringified.
See more on https://sonarcloud.io/project/issues?id=off-grid-ai_off-grid-ai-desktop&issues=AaA-izeTWyP__lfKRpP0&open=AaA-izeTWyP__lfKRpP0&pullRequest=84
Check warning on line 240 in src/main/browser/browser-visual-task.ts
sonarqubecloud / SonarCloud Code Analysis
Prefer using nullish coalescing operator (`??`) instead of a ternary expression, as it is simpler to read.
See more on https://sonarcloud.io/project/issues?id=off-grid-ai_off-grid-ai-desktop&issues=AaBNrCrBkc3VX7mN-m_6&open=AaBNrCrBkc3VX7mN-m_6&pullRequest=84
Check warning on line 91 in src/renderer/src/lib/stream-reducer.ts
sonarqubecloud / SonarCloud Code Analysis
Extract this nested ternary operation into an independent statement.
See more on https://sonarcloud.io/project/issues?id=off-grid-ai_off-grid-ai-desktop&issues=AaA-i0ihWyP__lfKRpV4&open=AaA-i0ihWyP__lfKRpV4&pullRequest=84
Check warning on line 15 in src/main/tasks/task-step-details.ts
sonarqubecloud / SonarCloud Code Analysis
Simplify this regular expression to reduce its complexity from 24 to the 20 allowed.
See more on https://sonarcloud.io/project/issues?id=off-grid-ai_off-grid-ai-desktop&issues=AaA-izrhWyP__lfKRpRe&open=AaA-izrhWyP__lfKRpRe&pullRequest=84
Check warning on line 2030 in src/renderer/src/components/MemoryChat.tsx
sonarqubecloud / SonarCloud Code Analysis
Extract this nested ternary operation into an independent statement.
See more on https://sonarcloud.io/project/issues?id=off-grid-ai_off-grid-ai-desktop&issues=AaA-i0OuWyP__lfKRpVD&open=AaA-i0OuWyP__lfKRpVD&pullRequest=84
Check warning on line 409 in src/renderer/src/components/SoftwareUpdateSection.tsx
sonarqubecloud / SonarCloud Code Analysis
Extract this nested ternary operation into an independent statement.
See more on https://sonarcloud.io/project/issues?id=off-grid-ai_off-grid-ai-desktop&issues=AaA-i0egWyP__lfKRpVy&open=AaA-i0egWyP__lfKRpVy&pullRequest=84
Check warning on line 57 in src/main/vision/model-adapters/ui-mate/capabilities.ts
sonarqubecloud / SonarCloud Code Analysis
Prefer using an optional chain expression instead, as it's more concise and easier to read.
See more on https://sonarcloud.io/project/issues?id=off-grid-ai_off-grid-ai-desktop&issues=AaA-izhwWyP__lfKRpP-&open=AaA-izhwWyP__lfKRpP-&pullRequest=84
Check warning on line 124 in src/main/bootstrap/loadProFeaturesMain.ts
sonarqubecloud / SonarCloud Code Analysis
`Promise.allSettled(…)` accepts iterable as argument, it's unnecessary to convert to an array.
See more on https://sonarcloud.io/project/issues?id=off-grid-ai_off-grid-ai-desktop&issues=AaA-iz6HWyP__lfKRpSl&open=AaA-iz6HWyP__lfKRpSl&pullRequest=84
Check warning on line 1365 in src/renderer/src/App.tsx
sonarqubecloud / SonarCloud Code Analysis
Extract this nested ternary operation into an independent statement.
See more on https://sonarcloud.io/project/issues?id=off-grid-ai_off-grid-ai-desktop&issues=AaA-i0kzWyP__lfKRpV9&open=AaA-i0kzWyP__lfKRpV9&pullRequest=84
Check warning on line 561 in src/main/tasks/task-history-store.ts
sonarqubecloud / SonarCloud Code Analysis
Prefer using an optional chain expression instead, as it's more concise and easier to read.
See more on https://sonarcloud.io/project/issues?id=off-grid-ai_off-grid-ai-desktop&issues=AaA-izq3WyP__lfKRpRZ&open=AaA-izq3WyP__lfKRpRZ&pullRequest=84
Check warning on line 19 in src/main/tasks/task-result-chat.ts
sonarqubecloud / SonarCloud Code Analysis
Prefer `String#replaceAll()` over `String#replace()`.
See more on https://sonarcloud.io/project/issues?id=off-grid-ai_off-grid-ai-desktop&issues=AaA-izruWyP__lfKRpRk&open=AaA-izruWyP__lfKRpRk&pullRequest=84
Check warning on line 139 in src/renderer/src/components/explore/ExploreSection.tsx
sonarqubecloud / SonarCloud Code Analysis
Ambiguous spacing after previous element span
See more on https://sonarcloud.io/project/issues?id=off-grid-ai_off-grid-ai-desktop&issues=AaA-i0PQWyP__lfKRpVG&open=AaA-i0PQWyP__lfKRpVG&pullRequest=84
Check warning on line 344 in src/main/proposal-deck/service.ts
sonarqubecloud / SonarCloud Code Analysis
Use `export…from` to re-export `ProposalIllustration`.
See more on https://sonarcloud.io/project/issues?id=off-grid-ai_off-grid-ai-desktop&issues=AaA-izYqWyP__lfKRpPq&open=AaA-izYqWyP__lfKRpPq&pullRequest=84
Check warning on line 698 in src/main/browser/browser-driver.ts
sonarqubecloud / SonarCloud Code Analysis
Extract this nested ternary operation into an independent statement.
See more on https://sonarcloud.io/project/issues?id=off-grid-ai_off-grid-ai-desktop&issues=AaA-izw5WyP__lfKRpR2&open=AaA-izw5WyP__lfKRpR2&pullRequest=84