Skip to content

Commit 9372894

Browse files
ETL Token Limit (#42)
* Removed unused code * Added new cell for etl token limit and interval
1 parent 0269408 commit 9372894

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

components/kern-table/CellComponents.tsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ function ExportConsumptionAndDeleteCell({ organization, onClickConsumptionExport
6464
className={"h-6 w-6 m-auto text-gray-500"} />
6565
</Tooltip>
6666
</div>
67-
<KernButton text="Delete" onClick={clickDelete} buttonColor="red" />;
67+
<KernButton text="Delete" onClick={clickDelete} buttonColor="red" />
6868
</div>
6969
)
7070
}
@@ -290,5 +290,12 @@ function EvaluationRunDetailsCell({ onClick, disabled }) {
290290
</button>
291291
}
292292

293+
function EtlApiTokenCell({ organization }) {
294+
return (
295+
<div className="flex flex-row items-center justify-center">
296+
<span>{organization.fileUploadLimit ?? <NotApplicableBadge />} | {organization.fileUploadInterval ?? <NotApplicableBadge />}</span>
297+
</div>
298+
)
299+
}
293300

294-
export { OrganizationAndUsersCell, MaxRowsColsCharsCell, CommentsCell, ExportConsumptionAndDeleteCell, BadgeCell, OrganizationUserCell, DeleteUserCell, LevelCell, ArchiveReasonCell, ProjectNameTaskCell, CancelTaskCell, IconCell, ConfigCell, EditDeleteOrgButtonCell, ViewStackCell, AbortSessionButtonCell, FeedbackMessageCell, FeedbackMessageTextCell, JumpToConversationCell, RemoteVersionCell, ExternalLinkCell, ModelDateCell, FileSizeCell, StatusModelCell, DeleteModelCell, LabelCell, ViewCell, EvaluationRunStateCell, EvaluationRunDetailsCell }
301+
export { OrganizationAndUsersCell, MaxRowsColsCharsCell, CommentsCell, ExportConsumptionAndDeleteCell, BadgeCell, OrganizationUserCell, DeleteUserCell, LevelCell, ArchiveReasonCell, ProjectNameTaskCell, CancelTaskCell, IconCell, ConfigCell, EditDeleteOrgButtonCell, ViewStackCell, AbortSessionButtonCell, FeedbackMessageCell, FeedbackMessageTextCell, JumpToConversationCell, RemoteVersionCell, ExternalLinkCell, ModelDateCell, FileSizeCell, StatusModelCell, DeleteModelCell, LabelCell, ViewCell, EvaluationRunStateCell, EvaluationRunDetailsCell, EtlApiTokenCell }

components/kern-table/KernTable.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import SortArrows from "@/submodules/react-components/components/kern-table/SortArrows";
22
import { KernTableProps } from "../../types/kern-table";
3-
import { AbortSessionButtonCell, ArchiveReasonCell, BadgeCell, CancelTaskCell, CommentsCell, ConfigCell, DeleteModelCell, DeleteUserCell, EditDeleteOrgButtonCell, EvaluationRunDetailsCell, EvaluationRunStateCell, ExportConsumptionAndDeleteCell, ExternalLinkCell, FeedbackMessageCell, FeedbackMessageTextCell, FileSizeCell, IconCell, JumpToConversationCell, LabelCell, LevelCell, MaxRowsColsCharsCell, ModelDateCell, OrganizationAndUsersCell, OrganizationUserCell, ProjectNameTaskCell, RemoteVersionCell, StatusModelCell, ViewCell, ViewStackCell } from "./CellComponents";
3+
import { AbortSessionButtonCell, ArchiveReasonCell, BadgeCell, CancelTaskCell, CommentsCell, ConfigCell, DeleteModelCell, DeleteUserCell, EditDeleteOrgButtonCell, EtlApiTokenCell, EvaluationRunDetailsCell, EvaluationRunStateCell, ExportConsumptionAndDeleteCell, ExternalLinkCell, FeedbackMessageCell, FeedbackMessageTextCell, FileSizeCell, IconCell, JumpToConversationCell, LabelCell, LevelCell, MaxRowsColsCharsCell, ModelDateCell, OrganizationAndUsersCell, OrganizationUserCell, ProjectNameTaskCell, RemoteVersionCell, StatusModelCell, ViewCell, ViewStackCell } from "./CellComponents";
44
import { Fragment, useMemo } from "react";
55
import { IconEdit } from "@tabler/icons-react";
66
import KernDropdown from "../KernDropdown";
@@ -123,6 +123,8 @@ function ComponentMapper(cell: any) {
123123
return <EvaluationRunStateCell {...cell} />;
124124
case 'EvaluationRunDetailsCell':
125125
return <EvaluationRunDetailsCell {...cell} />;
126+
case 'EtlApiTokenCell':
127+
return <EtlApiTokenCell {...cell} />;
126128
}
127129
case 'text':
128130
return <span>{cell.value ?? <NotApplicableBadge />}</span>

0 commit comments

Comments
 (0)