From 8da59570248e13ec251a11298fc43f64b5d7802c Mon Sep 17 00:00:00 2001 From: Mia Wu Date: Wed, 27 May 2026 10:34:52 -0400 Subject: [PATCH] expand, collapse all --- dashboard/src/components/TestTable.jsx | 25 +++++++++++++++++++++++++ server/dashboard.db-shm | Bin 32768 -> 32768 bytes 2 files changed, 25 insertions(+) diff --git a/dashboard/src/components/TestTable.jsx b/dashboard/src/components/TestTable.jsx index 7bcb263..a192b7f 100644 --- a/dashboard/src/components/TestTable.jsx +++ b/dashboard/src/components/TestTable.jsx @@ -63,6 +63,15 @@ export default function TestTable({ tests = [], isLoading }) { if (typeof av === 'number' || typeof bv === 'number') return (av - bv) * sort.dir return String(av).localeCompare(String(bv)) * sort.dir }) + const allExpanded = sorted.length > 0 && sorted.every(test => expanded.has(test.id)) + + function expandAll() { + setExpanded(new Set(sorted.map(test => test.id))) + } + + function collapseAll() { + setExpanded(new Set()) + } if (isLoading) { return ( @@ -82,6 +91,22 @@ export default function TestTable({ tests = [], isLoading }) { return (
+
+ + +
diff --git a/server/dashboard.db-shm b/server/dashboard.db-shm index 901b3b3b2acf1386cacd35966312f6362ea3b5f7..db8bdf88d0244c1c2d4f55c147a8af8da4a1dcf8 100644 GIT binary patch delta 59 vcmZo@U}|V!;*xlz%K!lrx#Wa){re#%!Wvb8BFY94ofxOYG=q6#Q(Zj(z{n6y delta 59 xcmZo@U}|V!;*xlz%K!p%m?m<`2`y9jDfYlRssKfl4I(-*PKk+uVPjKWJpkgf5fA_X