@@ -77,7 +77,7 @@ function OrganizationUserCell({ userToOrganization, organizations, user, onClick
return <>{(userToOrganization && user.id in userToOrganization) ? (
{userToOrganization[user.id]['name']}
onClickRemove(user.id)} className="cursor-pointer">
-
@@ -100,7 +100,7 @@ function DeleteUserCell({ user, deleteUser }) {
}
function LevelCell({ value }) {
- return <>{value == AdminMessageLevel.INFO ? (
) : (
)}>
+ return <>{value == AdminMessageLevel.INFO ? (
) : (
)}>
}
function ArchiveReasonCell({ message, onClick }) {
@@ -170,9 +170,9 @@ function AbortSessionButtonCell({ session, onClick }) {
function FeedbackMessageCell({ value }) {
return
- {value === FeedbackType.POSITIVE && }
- {value === FeedbackType.NEGATIVE && }
- {value === FeedbackType.NEUTRAL && }
+ {value === FeedbackType.POSITIVE && }
+ {value === FeedbackType.NEGATIVE && }
+ {value === FeedbackType.NEUTRAL && }
}
@@ -186,7 +186,7 @@ function JumpToConversationCell({ projectId, conversationId }) {
href={`/cognition/projects/${projectId}/ui/${conversationId}`}
className='inline-flex p-2 items-center justify-center rounded-lg hover:bg-gray-200'
>
-
+
}
@@ -195,14 +195,14 @@ function RemoteVersionCell({ service }) {
return
{service.remoteVersion}
{service.remoteHasNewer &&
-
+
}
}
function ExternalLinkCell({ link }) {
return
-
+
}
@@ -220,22 +220,22 @@ function FileSizeCell({ model }) {
function StatusModelCell({ model }) {
return
{model.status === ModelsDownloadedStatus.FINISHED &&
-
+
}
{model.status === ModelsDownloadedStatus.FAILED &&
-
+
}
{model.status === ModelsDownloadedStatus.DOWNLOADING &&
}
{model.status === ModelsDownloadedStatus.INITIALIZING &&
-
+
}
}
function DeleteModelCell({ isAdmin, model, onClick }) {
- return <>{isAdmin &&
onClick(model)}
+ return <>{isAdmin && onClick(model)}
className="h-6 w-6 text-red-700 cursor-pointer" />}>
}
@@ -286,7 +286,7 @@ function EvaluationRunDetailsCell({ onClick, disabled }) {
return
}
diff --git a/components/kern-table/KernTable.tsx b/components/kern-table/KernTable.tsx
index 4030d25..32e6b07 100644
--- a/components/kern-table/KernTable.tsx
+++ b/components/kern-table/KernTable.tsx
@@ -2,12 +2,12 @@ import SortArrows from "@/submodules/react-components/components/kern-table/Sort
import { KernTableProps } from "../../types/kern-table";
import { AbortSessionButtonCell, ArchiveReasonCell, BadgeCell, CancelTaskCell, CommentsCell, ConfigCell, DeleteModelCell, DeleteUserCell, EditDeleteOrgButtonCell, EmailCell, EtlApiTokenCell, EvaluationRunDetailsCell, EvaluationRunStateCell, ExportConsumptionAndDeleteCell, ExternalLinkCell, FeedbackMessageCell, FeedbackMessageTextCell, FileSizeCell, IconCell, JumpToConversationCell, LabelCell, LevelCell, MaxRowsColsCharsCell, ModelDateCell, OrganizationAndUsersCell, OrganizationUserCell, ProjectNameTaskCell, RemoteVersionCell, StatusModelCell, ViewCell, ViewStackCell } from "./CellComponents";
import { Fragment, useMemo } from "react";
-import { IconEdit } from "@tabler/icons-react";
import KernDropdown from "../KernDropdown";
import { NotApplicableBadge } from "@/submodules/react-components/components/Badges";
import { Tooltip } from "@nextui-org/react";
import MultilineTooltipAutoContent from "@/submodules/react-components/components/MultilineTooltipAuto";
import { NoTableEntriesYet } from "../NoTableEntriesYet";
+import { MemoIconCell, MemoIconEdit } from "../kern-icons/icons";
export default function KernTable(props: KernTableProps) {
const length = useMemo(() => props.headers?.length || 5, [props.headers?.length]);
@@ -50,7 +50,7 @@ export default function KernTable(props: KernTableProps) {
- {cell.editFunction && }
+ {cell.editFunction && }
|
@@ -88,7 +88,7 @@ function ComponentMapper(cell: any) {
case 'CancelTaskCell':
return ;
case 'IconCell':
- return ;
+ return ;
case 'ConfigCell':
return ;
case 'EditDeleteOrgButtonCell':
diff --git a/components/kern-table/SortArrows.tsx b/components/kern-table/SortArrows.tsx
index 503f20f..5baed46 100644
--- a/components/kern-table/SortArrows.tsx
+++ b/components/kern-table/SortArrows.tsx
@@ -1,18 +1,18 @@
-import { IconArrowDown, IconArrowUp, IconArrowsSort } from '@tabler/icons-react';
import { SortArrowsProps } from '../../types/sort';
+import { MemoIconArrowDown, MemoIconArrowsSort, MemoIconArrowUp } from '../kern-icons/icons';
export default function SortArrows(props: SortArrowsProps) {
return (
props.sortKey.attributeName != props.property || (props.sortKey.attributeName == props.property && props.sortKey.direction == 0) ? (
-
) : (
props.sortKey.attributeName == props.property && props.sortKey.direction == 1 ? (
-
) : (
-
)
)