+
+
+ { table.getState().columnFilters.map((column) => {
+ let filterValue = column.value;
+ if (column.id == "scheduled") {
+ const parsedDate = new Date(column.value as string);
+ filterValue = (parsedDate.toISOString().split('T')[0])
+ }
+
+ return (column.value ? `${column.id}: '${filterValue}' ` : "")
+ })}
+
+
+
+
+
+ )
}
diff --git a/src/components/RunList/index.tsx b/src/components/RunList/index.tsx
index c4ace186..abf808d5 100644
--- a/src/components/RunList/index.tsx
+++ b/src/components/RunList/index.tsx
@@ -26,6 +26,7 @@ import { parse } from "date-fns";
import { useRuns } from "../../lib/paddles";
import { formatDate, formatDay, formatDuration } from "../../lib/utils";
import IconLink from "../../components/IconLink";
+import TableFilterMenu from "../../components/TableFilterMenu";
import type {
Run,
RunResult,
@@ -47,6 +48,11 @@ const NON_FILTER_PARAMS = [
"page",
"pageSize",
];
+const FILTER_SECTIONS: { [key: string]: string[] } = {
+ "run": ["scheduled", "suite", "machine_type", "user"],
+ "build": ["branch", "sha1"],
+ "result": ["status"],
+}
const _columns: MRT_ColumnDef