diff --git a/apps/frontend/src/components/project-review/tech-review/code-viewer/index.vue b/apps/frontend/src/components/project-review/tech-review/code-viewer/index.vue
index cfd686ea3fd..abb22e81841 100644
--- a/apps/frontend/src/components/project-review/tech-review/code-viewer/index.vue
+++ b/apps/frontend/src/components/project-review/tech-review/code-viewer/index.vue
@@ -117,8 +117,8 @@ async function openSearch() {
const pane = sourcePane.value
const selection = pane?.ownerDocument.getSelection()
if (selection && pane?.contains(selection.anchorNode) && pane.contains(selection.focusNode)) {
- const text = selection.toString()
- if (text && !text.includes('\n')) findQuery.value = text
+ const text = selection.rangeCount ? selection.getRangeAt(0).cloneRange().toString() : null
+ if (text && !text.includes('\n')) findQuery.value = text.trim()
}
matchMode.value = 'search'
await nextTick()
diff --git a/apps/frontend/src/components/project-review/tech-review/code-viewer/string-viewer/index.vue b/apps/frontend/src/components/project-review/tech-review/code-viewer/string-viewer/index.vue
index 1d67113dea5..a3be1c015c7 100644
--- a/apps/frontend/src/components/project-review/tech-review/code-viewer/string-viewer/index.vue
+++ b/apps/frontend/src/components/project-review/tech-review/code-viewer/string-viewer/index.vue
@@ -20,6 +20,7 @@ import { decodeStringContents } from './string-contents'
for (const [name, definition] of Object.entries({ bash, dos, powershell })) {
if (!hljs.getLanguage(name)) hljs.registerLanguage(name, definition)
}
+const languagesExcludedFromAutoDetect = ['skript', 'mcfunction']
const languages = hljs
.listLanguages()
.map((value) => ({
@@ -138,7 +139,9 @@ async function onContextMenu(event: MouseEvent) {
function detectLanguage(text: string) {
const result = hljs.highlightAuto(
text,
- languages.map(({ value }) => value),
+ languages
+ .map(({ value }) => value)
+ .filter((value) => !languagesExcludedFromAutoDetect.includes(value)),
)
if (
result.relevance < 3 ||
diff --git a/apps/frontend/src/components/project-review/tech-review/index.vue b/apps/frontend/src/components/project-review/tech-review/index.vue
index 918a1837e57..29ee8e36cf9 100644
--- a/apps/frontend/src/components/project-review/tech-review/index.vue
+++ b/apps/frontend/src/components/project-review/tech-review/index.vue
@@ -92,10 +92,10 @@
@@ -551,6 +551,16 @@ provide(TECH_REVIEW_DECISIONS_KEY, decisions)
const archiveMenu = ref>()
const allArchivesMenu = ref>()
provideTechReviewMenus()
+const uniqueFileCount = computed(
+ () =>
+ new Set(
+ pendingReports.value.map((report) =>
+ [...new Set(report.issues.flatMap((issue) => issue.details.map((detail) => detail.key)))]
+ .sort()
+ .join('|'),
+ ),
+ ).size,
+)
const selectedFile = computed(
() =>
reports.value.find((file) => file.id === selectedFileId.value) ??
diff --git a/apps/frontend/src/components/project-review/tech-review/trace-list/trace-data.vue b/apps/frontend/src/components/project-review/tech-review/trace-list/trace-data.vue
index dba1d714667..e767bc7a3c5 100644
--- a/apps/frontend/src/components/project-review/tech-review/trace-list/trace-data.vue
+++ b/apps/frontend/src/components/project-review/tech-review/trace-list/trace-data.vue
@@ -1,6 +1,10 @@