@@ -413,10 +272,14 @@ export function TestsTable({
onSearchChange={onSearchChange}
currentPathFilter={currentPathFilter}
/>
-
- {tableRows}
-
-
+
+
+
+ {tableHeaders}
+
+ {tableRows}
+
+
);
}
diff --git a/dashboard/src/components/TestsTable/buildTestsTree.ts b/dashboard/src/components/TestsTable/buildTestsTree.ts
new file mode 100644
index 000000000..44a94e448
--- /dev/null
+++ b/dashboard/src/components/TestsTable/buildTestsTree.ts
@@ -0,0 +1,107 @@
+import type { TestHistory, TPathTests } from '@/types/general';
+import { buildHardwareArray, buildTreeBranch } from '@/utils/table';
+import { EMPTY_VALUE } from '@/lib/string';
+
+import {
+ type GroupNode,
+ type TPathTestsStatus,
+ countStatus,
+ createEmptyNode,
+ addCounts,
+} from './testStatusHelpers';
+
+export function buildTestsTree(
+ testHistory: TestHistory[] | undefined,
+): TPathTests[] {
+ const rootGroups = new Map