Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.
TypeScript ai-agentsbill-of-materialserpinventory-managementleanmanufacturingmanufacturing-execution-systemmcp-servermesmrpopen-source-erppostgresqlproduction-planningqmsquality-management-systemreact-routerself-hostedsupabasetraceabilitytypescript
refactor: new table/filter components for posting groups tables
Brad Barbin4fb979d92d63
diff --git a/apps/carbon/app/components/Table/Table.tsx b/apps/carbon/app/components/Table/Table.tsxindex 7b92278197..f8bf781f1f 100644--- a/apps/carbon/app/components/Table/Table.tsx+++ b/apps/carbon/app/components/Table/Table.tsx@@ -58,6 +58,7 @@ interface TableProps<T extends object> {withColumnOrdering?: boolean;withInlineEditing?: boolean;withPagination?: boolean;+ withSearch?: boolean;withSelectableRows?: boolean;withSimpleSorting?: boolean;onSelectedRowsChange?: (selectedRows: T[]) => void;@@ -79,6 +80,7 @@ const Table = <T extends object>({withInlineEditing = false,withColumnOrdering = false,withPagination = true,+ withSearch = true,withSelectableRows = false,withSimpleSorting = true,onSelectedRowsChange,@@ -455,6 +457,7 @@ const Table = <T extends object>({withInlineEditing={withInlineEditing}withColumnOrdering={withColumnOrdering}withPagination={withPagination}+ withSearch={withSearch}withSelectableRows={withSelectableRows}/>diff --git a/apps/carbon/app/components/Table/components/TableHeader.tsx b/apps/carbon/app/components/Table/components/TableHeader.tsxindex 104c841e8c..7975d2ad54 100644--- a/apps/carbon/app/components/Table/components/TableHeader.tsx+++ b/apps/carbon/app/components/Table/components/TableHeader.tsx@@ -29,6 +29,7 @@ type HeaderProps<T> = {withColumnOrdering: boolean;withInlineEditing: boolean;withPagination: boolean;+ withSearch: boolean;withSelectableRows: boolean;};@@ -47,6 +48,7 @@ const TableHeader = <T extends object>({withColumnOrdering,withInlineEditing,withPagination,+ withSearch,withSelectableRows,}: HeaderProps<T>) => {const [params] = useUrlParams();@@ -56,7 +58,9 @@ const TableHeader = <T extends object>({<><HStack className="px-4 py-2 justify-between bg-card border-b border-border w-full"><HStack>- <DebouncedInput param="search" size="sm" placeholder="Search" />+ {withSearch && (+ <DebouncedInput param="search" size="sm" placeholder="Search" />+ )}{!!filters?.length && <Filter filters={filters} />}</HStack><HStack>diff --git a/apps/carbon/app/modules/accounting/accounting.service.ts b/apps/carbon/app/modules/accounting/accounting.service.tsindex 2fd007f00e..d99b2245e1 100644--- a/apps/carbon/app/modules/accounting/accounting.service.ts+++ b/apps/carbon/app/modules/accounting/accounting.service.ts@@ -452,23 +452,12 @@ export async function getInventoryPostingGroup(export async function getInventoryPostingGroups(client: SupabaseClient<Database>,- args: GenericQueryFilters & {- partGroup: string | null;- location: string | null;- }+ args: GenericQueryFilters) {let query = client.from("postingGroupInventory").select("*", {count: "exact",});- if (args.partGroup) {- query = query.eq("partGroupId", args.partGroup);- }-- if (args.location) {- query = query.eq("locationId", args.location);- }-query = setGenericQueryFilters(query, args, [{ column: "partGroupId", ascending: false },]);@@ -543,23 +532,12 @@ export async function getPurchasingPostingGroup(export async function getPurchasingPostingGroups(client: SupabaseClient<Database>,- args: GenericQueryFilters & {- partGroup: string | null;- supplierType: string | null;- }+ args: GenericQueryFilters) {let query = client.from("postingGroupPurchasing").select("*", {count: "exact",});- if (args.partGroup) {- query = query.eq("partGroupId", args.partGroup);- }-- if (args.supplierType) {- query = query.eq("supplierTypeId", args.supplierType);- }-query = setGenericQueryFilters(query, args, [{ column: "partGroupId", ascending: false },]);@@ -592,23 +570,12 @@ export async function getPurchasingSalesGroup(export async function getSalesPostingGroups(client: SupabaseClient<Database>,- args: GenericQueryFilters & {- partGroup: string | null;- customerType: string | null;- }+ args: GenericQueryFilters) {let query = client.from("postingGroupSales").select("*", {count: "exact",});- if (args.partGroup) {- query = query.eq("partGroupId", args.partGroup);- }-- if (args.customerType) {- query = query.eq("customerTypeId", args.customerType);- }-query = setGenericQueryFilters(query, args, [{ column: "partGroupId", ascending: false },]);diff --git a/apps/carbon/app/modules/accounting/ui/PostingGroups/InventoryPostingGroupsFilters.tsx b/apps/carbon/app/modules/accounting/ui/PostingGroups/InventoryPostingGroupsFilters.tsxdeleted file mode 100644index 5b7e23e6fa..0000000000--- a/apps/carbon/app/modules/accounting/ui/PostingGroups/InventoryPostingGroupsFilters.tsx+++ /dev/null@@ -1,56 +0,0 @@-import { HStack } from "@carbon/react";-import { Combobox } from "~/components";-import { TableFilters } from "~/components/Layout";-import { useUrlParams } from "~/hooks";-import type { ListItem } from "~/types";--type InventoryPostingGroupsFiltersProps = {- partGroups: ListItem[];- locations: ListItem[];-};--const InventoryPostingGroupsFilters = ({- partGroups,- locations,-}: InventoryPostingGroupsFiltersProps) => {- const [params, setParams] = useUrlParams();-- const partGroupOptions = partGroups.map((partGroup) => ({- label: partGroup.name,- value: partGroup.id,- }));-- const locationOptions = locations.map((location) => ({- label: location.name,- value: location.id,- }));-- return (- <TableFilters>- <HStack>- <Combobox- size="sm"- isClearable- value={params.get("partGroup") ?? ""}- options={partGroupOptions}- onChange={(selected) => {- setParams({ partGroup: selected });- }}- placeholder="Part Group"- />- <Combobox- size="sm"- isClearable- value={params.get("location") ?? ""}- options={locationOptions}- onChange={(selected) => {- setParams({ location: selected });- }}- placeholder="Location"- />- </HStack>- </TableFilters>- );-};--export default InventoryPostingGroupsFilters;diff --git a/apps/carbon/app/modules/accounting/ui/PostingGroups/InventoryPostingGroupsTable.tsx b/apps/carbon/app/modules/accounting/ui/PostingGroups/InventoryPostingGroupsTable.tsxindex faf353126d..f5bd26cf9d 100644--- a/apps/carbon/app/modules/accounting/ui/PostingGroups/InventoryPostingGroupsTable.tsx+++ b/apps/carbon/app/modules/accounting/ui/PostingGroups/InventoryPostingGroupsTable.tsx@@ -1,7 +1,7 @@import { Enumerable } from "@carbon/react";import type { ColumnDef } from "@tanstack/react-table";import { useMemo } from "react";-import { Table } from "~/components";+import { TableNew } from "~/components";import { EditableList } from "~/components/Editable";import type {AccountListItem,@@ -46,7 +46,7 @@ const InventoryPostingGroupsTable = ({const columns = useMemo<ColumnDef<InventoryPostingGroup>[]>(() => {return [{- id: "partGroup",+ id: "partGroupId",header: "Part Group",cell: ({ row }) => (<Enumerable@@ -56,9 +56,18 @@ const InventoryPostingGroupsTable = ({}/>),- },- {- id: "location",+ meta: {+ filter: {+ type: "static",+ options: partGroups.map((group) => ({+ label: <Enumerable value={group.name} />,+ value: group.id,+ })),+ },+ },+ },+ {+ id: "locationId",header: "Location",cell: ({ row }) => (<Enumerable@@ -68,6 +77,15 @@ const InventoryPostingGroupsTable = ({}/>),+ meta: {+ filter: {+ type: "static",+ options: locations.map((l) => ({+ label: <Enumerable value={l.name} />,+ value: l.id,+ })),+ },+ },},{accessorKey: "costOfGoodsSoldAccount",@@ -199,12 +217,13 @@ const InventoryPostingGroupsTable = ({);return (- <Table<InventoryPostingGroup>+ <TableNew<InventoryPostingGroup>data={data}columns={columns}count={count}editableComponents={editableComponents}withInlineEditing={canEdit}+ withSearch={false}/>);};diff --git a/apps/carbon/app/modules/accounting/ui/PostingGroups/PurchasingPostingGroupsFilters.tsx b/apps/carbon/app/modules/accounting/ui/PostingGroups/PurchasingPostingGroupsFilters.tsxdeleted file mode 100644index 18c37a452f..0000000000--- a/apps/carbon/app/modules/accounting/ui/PostingGroups/PurchasingPostingGroupsFilters.tsx+++ /dev/null@@ -1,56 +0,0 @@-import { HStack } from "@carbon/react";-import { Combobox } from "~/components";-import { TableFilters } from "~/components/Layout";-import { useUrlParams } from "~/hooks";-import type { ListItem } from "~/types";--type PurchasingPostingGroupsFiltersProps = {- partGroups: ListItem[];- supplierTypes: ListItem[];-};--const PurchasingPostingGroupsFilters = ({- partGroups,- supplierTypes,-}: PurchasingPostingGroupsFiltersProps) => {- const [params, setParams] = useUrlParams();-- const partGroupOptions = partGroups.map((partGroup) => ({- label: partGroup.name,- value: partGroup.id,- }));-- const supplierTypeOptions = supplierTypes.map((supplierType) => ({- label: supplierType.name,- value: supplierType.id,- }));-- return (- <TableFilters>- <HStack>- <Combobox- size="sm"- isClearable- value={params.get("partGroup") ?? ""}- options={partGroupOptions}- onChange={(selected) => {- setParams({ partGroup: selected });- }}- placeholder="Part Group"- />- <Combobox- size="sm"- isClearable- value={params.get("supplierType") ?? ""}- options={supplierTypeOptions}- onChange={(selected) => {- setParams({ supplierType: selected });- }}- placeholder="Supplier Type"- />- </HStack>- </TableFilters>- );-};--export default PurchasingPostingGroupsFilters;diff --git a/apps/carbon/app/modules/accounting/ui/PostingGroups/PurchasingPostingGroupsTable.tsx b/apps/carbon/app/modules/accounting/ui/PostingGroups/PurchasingPostingGroupsTable.tsxindex e793e0723f..fe7ce2cfcd 100644--- a/apps/carbon/app/modules/accounting/ui/PostingGroups/PurchasingPostingGroupsTable.tsx+++ b/apps/carbon/app/modules/accounting/ui/PostingGroups/PurchasingPostingGroupsTable.tsx@@ -1,7 +1,7 @@import { Enumerable } from "@carbon/react";import type { ColumnDef } from "@tanstack/react-table";import { useMemo } from "react";-import { Table } from "~/components";+import { TableNew } from "~/components";import { EditableList } from "~/components/Editable";import type {AccountListItem,@@ -46,7 +46,7 @@ const PurchasingPostingGroupsTable = ({const columns = useMemo<ColumnDef<PurchasingPostingGroup>[]>(() => {return [{- id: "partGroup",+ id: "partGroupId",header: "Part Group",cell: ({ row }) => (<Enumerable@@ -56,9 +56,18 @@ const PurchasingPostingGroupsTable = ({}/>),+ meta: {+ filter: {+ type: "static",+ options: partGroups.map((group) => ({+ label: <Enumerable value={group.name} />,+ value: group.id,+ })),+ },+ },},{- id: "supplierType",+ id: "supplierTypeId",header: "Supplier Type",cell: ({ row }) => (<Enumerable@@ -69,6 +78,15 @@ const PurchasingPostingGroupsTable = ({}/>),+ meta: {+ filter: {+ type: "static",+ options: supplierTypes.map((t) => ({+ label: <Enumerable value={t.name} />,+ value: t.id,+ })),+ },+ },},{accessorKey: "payablesAccount",@@ -128,12 +146,13 @@ const PurchasingPostingGroupsTable = ({);return (- <Table<PurchasingPostingGroup>+ <TableNew<PurchasingPostingGroup>data={data}columns={columns}count={count}editableComponents={editableComponents}withInlineEditing={canEdit}+ withSearch={false}/>);};diff --git a/apps/carbon/app/modules/accounting/ui/PostingGroups/SalesPostingGroupsFilters.tsx b/apps/carbon/app/modules/accounting/ui/PostingGroups/SalesPostingGroupsFilters.tsxdeleted file mode 100644index 1dcfdc1a49..0000000000--- a/apps/carbon/app/modules/accounting/ui/PostingGroups/SalesPostingGroupsFilters.tsx+++ /dev/null@@ -1,56 +0,0 @@-import { HStack } from "@carbon/react";-import { Combobox } from "~/components";-import { TableFilters } from "~/components/Layout";-import { useUrlParams } from "~/hooks";-import type { ListItem } from "~/types";--type SalesPostingGroupsFiltersProps = {- partGroups: ListItem[];- customerTypes: ListItem[];-};--const SalesPostingGroupsFilters = ({- partGroups,- customerTypes,-}: SalesPostingGroupsFiltersProps) => {- const [params, setParams] = useUrlParams();-- const partGroupOptions = partGroups.map((partGroup) => ({- label: partGroup.name,- value: partGroup.id,- }));-- const customerTypeOptions = customerTypes.map((customerType) => ({- label: customerType.name,- value: customerType.id,- }));-- return (- <TableFilters>- <HStack>- <Combobox- size="sm"- isClearable- value={params.get("partGroup") ?? ""}- options={partGroupOptions}- onChange={(selected) => {- setParams({ partGroup: selected });- }}- placeholder="Part Group"- />- <Combobox- size="sm"- isClearable- value={params.get("customerType") ?? ""}- options={customerTypeOptions}- onChange={(selected) => {- setParams({ customerType: selected });- }}- placeholder="Customer Type"- />- </HStack>- </TableFilters>- );-};--export default SalesPostingGroupsFilters;diff --git a/apps/carbon/app/modules/accounting/ui/PostingGroups/SalesPostingGroupsTable.tsx b/apps/carbon/app/modules/accounting/ui/PostingGroups/SalesPostingGroupsTable.tsxindex baccd18967..72d328a862 100644--- a/apps/carbon/app/modules/accounting/ui/PostingGroups/SalesPostingGroupsTable.tsx+++ b/apps/carbon/app/modules/accounting/ui/PostingGroups/SalesPostingGroupsTable.tsx@@ -1,7 +1,7 @@import { Enumerable } from "@carbon/react";import type { ColumnDef } from "@tanstack/react-table";import { useMemo } from "react";-import { Table } from "~/components";+import { TableNew } from "~/components";import { EditableList } from "~/components/Editable";import type { AccountListItem, SalesPostingGroup } from "~/modules/accounting";import type { ListItem } from "~/types";@@ -43,7 +43,7 @@ const SalesPostingGroupsTable = ({const columns = useMemo<ColumnDef<SalesPostingGroup>[]>(() => {return [{- id: "partGroup",+ id: "partGroupId",header: "Part Group",cell: ({ row }) => (<Enumerable@@ -53,9 +53,18 @@ const SalesPostingGroupsTable = ({}/>),+ meta: {+ filter: {+ type: "static",+ options: partGroups.map((group) => ({+ label: <Enumerable value={group.name} />,+ value: group.id,+ })),+ },+ },},{- id: "customerType",+ id: "customerTypeId",header: "Customer Type",cell: ({ row }) => (<Enumerable@@ -66,6 +75,15 @@ const SalesPostingGroupsTable = ({}/>),+ meta: {+ filter: {+ type: "static",+ options: customerTypes.map((t) => ({+ label: <Enumerable value={t.name} />,+ value: t.id,+ })),+ },+ },},{accessorKey: "receivablesAccount",@@ -122,12 +140,13 @@ const SalesPostingGroupsTable = ({);return (- <Table<SalesPostingGroup>+ <TableNew<SalesPostingGroup>data={data}columns={columns}count={count}editableComponents={editableComponents}withInlineEditing={canEdit}+ withSearch={false}/>);};diff --git a/apps/carbon/app/modules/accounting/ui/PostingGroups/index.ts b/apps/carbon/app/modules/accounting/ui/PostingGroups/index.tsindex 4cd473cd05..ee00c1972d 100644--- a/apps/carbon/app/modules/accounting/ui/PostingGroups/index.ts+++ b/apps/carbon/app/modules/accounting/ui/PostingGroups/index.ts@@ -1,15 +1,9 @@-import InventoryPostingGroupsFilters from "./InventoryPostingGroupsFilters";import InventoryPostingGroupsTable from "./InventoryPostingGroupsTable";-import PurchasingPostingGroupsFilters from "./PurchasingPostingGroupsFilters";import PurchasingPostingGroupsTable from "./PurchasingPostingGroupsTable";-import SalesPostingGroupsFilters from "./SalesPostingGroupsFilters";import SalesPostingGroupsTable from "./SalesPostingGroupsTable";export {- InventoryPostingGroupsFilters,InventoryPostingGroupsTable,- PurchasingPostingGroupsFilters,PurchasingPostingGroupsTable,- SalesPostingGroupsFilters,SalesPostingGroupsTable,};diff --git a/apps/carbon/app/modules/purchasing/ui/RequestForQuotes/RequestForQuotesTable.tsx b/apps/carbon/app/modules/purchasing/ui/RequestForQuotes/RequestForQuotesTable.tsxindex b05469d564..3315f6f1fb 100644--- a/apps/carbon/app/modules/purchasing/ui/RequestForQuotes/RequestForQuotesTable.tsx+++ b/apps/carbon/app/modules/purchasing/ui/RequestForQuotes/RequestForQuotesTable.tsx@@ -168,7 +168,8 @@ const RequestForQuotesTable = memo(type: "static",options: parts.map((part) => ({value: part.id,- label: part.name,+ label: part.id,+ helperText: part.name,})),isArray: true,},diff --git a/apps/carbon/app/modules/resources/ui/Abilities/AbilityEmployeesTable.tsx b/apps/carbon/app/modules/resources/ui/Abilities/AbilityEmployeesTable.tsxindex 3740f1f12d..e65b9778e3 100644--- a/apps/carbon/app/modules/resources/ui/Abilities/AbilityEmployeesTable.tsx+++ b/apps/carbon/app/modules/resources/ui/Abilities/AbilityEmployeesTable.tsx@@ -10,7 +10,7 @@ import type { ColumnDef } from "@tanstack/react-table";import { useCallback, useMemo } from "react";import { BsFillPenFill } from "react-icons/bs";import { IoMdTrash } from "react-icons/io";-import { Avatar, Table } from "~/components";+import { Avatar, New, TableNew } from "~/components";import { usePermissions } from "~/hooks";import type { AbilityEmployees } from "~/modules/resources";import { AbilityEmployeeStatus } from "~/modules/resources";@@ -147,12 +147,14 @@ const AbilityEmployeesTable = ({if (!abilityId) return null;return (- <Table<(typeof rows)[number]>+ <TableNew<(typeof rows)[number]>data={rows}count={rows.length}columns={columns}+ primaryAction={<New to="employee/new" label="Employee" />}renderContextMenu={renderContextMenu}withPagination={false}+ withSearch={false}/>);};diff --git a/apps/carbon/app/routes/x+/accounting+/groups.inventory.tsx b/apps/carbon/app/routes/x+/accounting+/groups.inventory.tsxindex 96b5cad016..91a934c0d6 100644--- a/apps/carbon/app/routes/x+/accounting+/groups.inventory.tsx+++ b/apps/carbon/app/routes/x+/accounting+/groups.inventory.tsx@@ -5,7 +5,6 @@ import { Outlet, useLoaderData } from "@remix-run/react";import { useRouteData } from "~/hooks";import type { AccountListItem } from "~/modules/accounting";import {- InventoryPostingGroupsFilters,InventoryPostingGroupsTable,getInventoryPostingGroups,} from "~/modules/accounting";@@ -30,17 +29,16 @@ export async function loader({ request }: LoaderFunctionArgs) {const url = new URL(request.url);const searchParams = new URLSearchParams(url.search);- const partGroup = searchParams.get("partGroup");- const location = searchParams.get("location");- const { limit, offset, sorts } = getGenericQueryFilters(searchParams);++ const { limit, offset, sorts, filters } =+ getGenericQueryFilters(searchParams);const [inventoryGroups, partGroups, locations] = await Promise.all([getInventoryPostingGroups(client, {- partGroup,- location,limit,offset,sorts,+ filters,}),getPartGroupsList(client),getLocationsList(client),@@ -73,10 +71,6 @@ export default function InventoryPostingGroupsRoute() {return (<VStack spacing={0} className="h-full">- <InventoryPostingGroupsFilters- partGroups={partGroups}- locations={locations}- /><InventoryPostingGroupsTabledata={data}count={count}diff --git a/apps/carbon/app/routes/x+/accounting+/groups.purchasing.tsx b/apps/carbon/app/routes/x+/accounting+/groups.purchasing.tsxindex efb0b8c8eb..050f02ef50 100644--- a/apps/carbon/app/routes/x+/accounting+/groups.purchasing.tsx+++ b/apps/carbon/app/routes/x+/accounting+/groups.purchasing.tsx@@ -5,7 +5,6 @@ import { Outlet, useLoaderData } from "@remix-run/react";import { useRouteData } from "~/hooks";import type { AccountListItem } from "~/modules/accounting";import {- PurchasingPostingGroupsFilters,PurchasingPostingGroupsTable,getPurchasingPostingGroups,} from "~/modules/accounting";@@ -30,17 +29,15 @@ export async function loader({ request }: LoaderFunctionArgs) {const url = new URL(request.url);const searchParams = new URLSearchParams(url.search);- const partGroup = searchParams.get("partGroup");- const supplierType = searchParams.get("supplierType");- const { limit, offset, sorts } = getGenericQueryFilters(searchParams);+ const { limit, offset, sorts, filters } =+ getGenericQueryFilters(searchParams);const [purchasingGroups, partGroups, supplierTypes] = await Promise.all([getPurchasingPostingGroups(client, {- partGroup,- supplierType,limit,offset,sorts,+ filters,}),getPartGroupsList(client),getSupplierTypesList(client),@@ -77,10 +74,6 @@ export default function PurchasingPostingGroupsRoute() {return (<VStack spacing={0} className="h-full">- <PurchasingPostingGroupsFilters- partGroups={partGroups}- supplierTypes={supplierTypes}- /><PurchasingPostingGroupsTabledata={data}count={count}diff --git a/apps/carbon/app/routes/x+/accounting+/groups.sales.tsx b/apps/carbon/app/routes/x+/accounting+/groups.sales.tsxindex e9040165be..da6692cf3f 100644--- a/apps/carbon/app/routes/x+/accounting+/groups.sales.tsx+++ b/apps/carbon/app/routes/x+/accounting+/groups.sales.tsx@@ -5,7 +5,6 @@ import { Outlet, useLoaderData } from "@remix-run/react";import { useRouteData } from "~/hooks";import type { AccountListItem } from "~/modules/accounting";import {- SalesPostingGroupsFilters,SalesPostingGroupsTable,getSalesPostingGroups,} from "~/modules/accounting";@@ -30,17 +29,15 @@ export async function loader({ request }: LoaderFunctionArgs) {const url = new URL(request.url);const searchParams = new URLSearchParams(url.search);- const partGroup = searchParams.get("partGroup");- const customerType = searchParams.get("customerType");- const { limit, offset, sorts } = getGenericQueryFilters(searchParams);+ const { limit, offset, sorts, filters } =+ getGenericQueryFilters(searchParams);const [salesGroups, partGroups, customerTypes] = await Promise.all([getSalesPostingGroups(client, {- partGroup,- customerType,limit,offset,sorts,+ filters,}),getPartGroupsList(client),getCustomerTypesList(client),@@ -74,10 +71,6 @@ export default function SalesPostingGroupsRoute() {return (<VStack spacing={0} className="h-full">- <SalesPostingGroupsFilters- partGroups={partGroups}- customerTypes={customerTypes}- /><SalesPostingGroupsTabledata={data}count={count}diff --git a/apps/carbon/app/routes/x+/resources+/ability.$abilityId.tsx b/apps/carbon/app/routes/x+/resources+/ability.$abilityId.tsxindex db6add6b9e..ff501a72ff 100644--- a/apps/carbon/app/routes/x+/resources+/ability.$abilityId.tsx+++ b/apps/carbon/app/routes/x+/resources+/ability.$abilityId.tsx@@ -23,7 +23,6 @@ import { useState } from "react";import { IoMdClose } from "react-icons/io";import { LuChevronDown, LuChevronUp } from "react-icons/lu";import { MdEdit, MdOutlineArrowBackIos } from "react-icons/md";-import { New } from "~/components";import { Hidden, Input, Submit } from "~/components/Form";import type { AbilityDatum } from "~/modules/resources";import {@@ -290,9 +289,6 @@ export default function AbilitiesRoute() {)}</ParentSize></div>- <div className="absolute bottom--4 right-4 z-[3]">- <New label="Employee" to="employee/new" />- </div></div><AbilityEmployeesTableemployees={ability.employeeAbility ?? []}