Skip to content

Commit

Permalink
fix: rebasing
Browse files Browse the repository at this point in the history
  • Loading branch information
levinkerschberger committed Nov 27, 2024
1 parent af793a9 commit 60fa0c4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 28 deletions.
12 changes: 2 additions & 10 deletions frontend/src/components/features/connections/ConnectionsView.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
import { Connection } from "@/types/Connection";
import ConnectionTable from "./table/ConnectionTable";
import {
Page,
PageContent,
PageDescription,
PageHeader,
PageTitle,
} from "@/components/ui/page";
import { Page, PageContent, PageHeader, PageTitle } from "@/components/ui/page";
import useConnectionTable from "@/hooks/features/connections/useConnectionTable";
import ConnectionFilters from "./filter/ConnectionFilters";
import TablePagination from "@/components/ui/table-pagination";
Expand All @@ -23,9 +17,7 @@ export default function ConnectionsView({
<Page>
<PageHeader>
<PageTitle>Connections</PageTitle>
<PageDescription>
<ConnectionFilters table={table} />
</PageDescription>
<ConnectionFilters table={table} />
</PageHeader>
<PageContent>
<ConnectionTable table={table} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,21 +44,6 @@ export const ConnectionsTableColumns: ColumnDef<Connection>[] = [
title: "Connection Status",
},
},
// {
// accessorKey: "vmId",
// header: ({ column }) => {
// return <SortableTableColumn column={column} title="VM ID" />;
// },
// cell: ({ row }) => {
// return (
// <div className="px-4 align-middle font-medium">
// {row.getValue("vmId")}
// </div>
// );
// },
// enableGlobalFilter: true,

// },
{
accessorKey: "javaVersion",
header: ({ column }) => {
Expand Down Expand Up @@ -130,6 +115,15 @@ export const ConnectionsTableColumns: ColumnDef<Connection>[] = [
);
},
},
{
accessorKey: "attributes",
//@ts-expect-error Seems like a library bug, that filterFn is not found by typescript.
filterFn: "attributeEquals",
meta: {
filterVariant: "attributes",
title: "Java Version",
},
},
{
accessorKey: "details",
header: () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ describe("ConnectionsView", () => {
it("renders ConnectionsView component", () => {
render(<ConnectionsView connections={mockConnections} />);
expect(screen.getByText("Connections")).toBeInTheDocument();
expect(
screen.getByText("All currently connected agents.")
).toBeInTheDocument();
});

it("renders the correct number of connections", () => {
Expand Down

0 comments on commit 60fa0c4

Please sign in to comment.