feat: Add persistent column width settings for connection table & process filtering

This commit is contained in:
wonfen
2025-02-18 11:04:22 +08:00
parent 94b75f463b
commit 0122e2bdcf
2 changed files with 80 additions and 17 deletions

View File

@@ -129,9 +129,13 @@ const ConnectionsPage = () => {
const [filterConn, download, upload] = useMemo(() => {
const orderFunc = orderOpts[curOrderOpt];
let connections = displayData.connections.filter((conn) =>
match(conn.metadata.host || conn.metadata.destinationIP || ""),
);
let connections = displayData.connections.filter((conn) => {
const { host, destinationIP, process } = conn.metadata;
return (
match(host || "") || match(destinationIP || "") || match(process || "")
);
});
if (orderFunc) connections = orderFunc(connections);