diff --git a/frontend/src/pages/home/dashboard.tsx b/frontend/src/pages/home/dashboard.tsx index 4d183797f..28e3badb6 100644 --- a/frontend/src/pages/home/dashboard.tsx +++ b/frontend/src/pages/home/dashboard.tsx @@ -1,5 +1,5 @@ import { OpenAlerts } from "@components/alert"; -import { Page } from "@components/layouts"; +import { Page, Section } from "@components/layouts"; import { ResourceComponents } from "@components/resources"; import { TagsWithBadge } from "@components/tags"; import { AllUpdates } from "@components/updates/resource"; @@ -8,20 +8,22 @@ import { usableResourcePath } from "@lib/utils"; import { UsableResource } from "@types"; import { Card } from "@ui/card"; import { Separator } from "@ui/separator"; -import { History } from "lucide-react"; +import { Boxes, History } from "lucide-react"; import { Link } from "react-router-dom"; export const Dashboard = () => { return ( - + - - - - - +
}> + + + + + +
); }; diff --git a/frontend/src/pages/resources.tsx b/frontend/src/pages/resources.tsx index 3d7fb428c..10609d980 100644 --- a/frontend/src/pages/resources.tsx +++ b/frontend/src/pages/resources.tsx @@ -17,21 +17,21 @@ export const Resources = () => { title={`${name}s`} icon={} actions={ -
-
- - -
- set(e.target.value)} - placeholder="search..." - className="w-96" - /> +
+ +
} > - +
+ set(e.target.value)} + placeholder="search..." + className="w-[200px] lg:w-[300px]" + /> + +
); }; diff --git a/frontend/src/pages/tags.tsx b/frontend/src/pages/tags.tsx index 6062ba82f..5c7ba39fa 100644 --- a/frontend/src/pages/tags.tsx +++ b/frontend/src/pages/tags.tsx @@ -29,41 +29,39 @@ export const Tags = () => { } - actions={ -
- setSearch(e.target.value)} - className="w-[200px] lg:w-[300px]" - /> - -
- } + actions={} > - tag.name.includes(search)) ?? []} - columns={[ - { - header: "Name", - accessorKey: "name", - }, - { - header: "Owner", - cell: ({ row }) => - row.original.owner ? ( - - ) : ( - "Unknown" - ), - }, - { - header: "Delete", - cell: ({ row }) => , - }, - ]} - /> +
+ setSearch(e.target.value)} + className="w-[200px] lg:w-[300px]" + /> + tag.name.includes(search)) ?? []} + columns={[ + { + header: "Name", + accessorKey: "name", + }, + { + header: "Owner", + cell: ({ row }) => + row.original.owner ? ( + + ) : ( + "Unknown" + ), + }, + { + header: "Delete", + cell: ({ row }) => , + }, + ]} + /> +
); }; diff --git a/frontend/src/pages/variables.tsx b/frontend/src/pages/variables.tsx index ebe0ef49d..6ecc8394f 100644 --- a/frontend/src/pages/variables.tsx +++ b/frontend/src/pages/variables.tsx @@ -52,83 +52,81 @@ export const Variables = () => { } - actions={ -
- setSearch(e.target.value)} - className="w-[200px] lg:w-[300px]" - /> - -
- } + actions={} > - ( - - ), - }, - { - accessorKey: "value", - header: ({ column }) => ( - - ), - cell: ({ row }) => { - return ( - { - if (row.original.value === value) { - return; - } - updateValue({ name: row.original.name, value }); - }} - triggerClassName="w-full" - disabled={disabled} - fullWidth - /> - ); +
+ setSearch(e.target.value)} + className="w-[200px] lg:w-[300px]" + /> + ( + + ), }, - }, - { - accessorKey: "description", - header: "Description", - cell: ({ row }) => { - return ( - { - if (row.original.description === description) { - return; - } - updateDescription({ - name: row.original.name, - description, - }); - }} - triggerClassName="w-full" - disabled={disabled} - fullWidth - /> - ); + { + accessorKey: "value", + header: ({ column }) => ( + + ), + cell: ({ row }) => { + return ( + { + if (row.original.value === value) { + return; + } + updateValue({ name: row.original.name, value }); + }} + triggerClassName="w-full" + disabled={disabled} + fullWidth + /> + ); + }, }, - }, - { - header: "Delete", - cell: ({ row }) => , - }, - ]} - /> + { + accessorKey: "description", + header: "Description", + cell: ({ row }) => { + return ( + { + if (row.original.description === description) { + return; + } + updateDescription({ + name: row.original.name, + description, + }); + }} + triggerClassName="w-full" + disabled={disabled} + fullWidth + /> + ); + }, + }, + { + header: "Delete", + cell: ({ row }) => , + }, + ]} + /> +
); };