mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-24 18:24:20 +00:00
Keys page: Use keys rather than logs terminology
This commit is contained in:
parent
dc9b058dbd
commit
5e427ed8ea
3 changed files with 10 additions and 2 deletions
|
@ -450,6 +450,8 @@ export function AllKeysTable({
|
|||
columns={columns.filter(col => col.id !== 'expander') as any}
|
||||
data={filteredKeys as any}
|
||||
isLoading={isLoading}
|
||||
loadingMessage="🚅 Loading keys..."
|
||||
noDataMessage="No keys found"
|
||||
getRowCanExpand={() => false}
|
||||
renderSubComponent={() => <></>}
|
||||
/>
|
||||
|
|
|
@ -26,6 +26,8 @@ function DataTableWrapper({
|
|||
isLoading={isLoading}
|
||||
renderSubComponent={renderSubComponent}
|
||||
getRowCanExpand={getRowCanExpand}
|
||||
loadingMessage="🚅 Loading tools..."
|
||||
noDataMessage="No tools found"
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
|
|
@ -26,6 +26,8 @@ interface DataTableProps<TData, TValue> {
|
|||
expandedRequestId?: string | null;
|
||||
onRowExpand?: (requestId: string | null) => void;
|
||||
setSelectedKeyIdInfoView?: (keyId: string | null) => void;
|
||||
loadingMessage?: string;
|
||||
noDataMessage?: string;
|
||||
}
|
||||
|
||||
export function DataTable<TData extends { request_id: string }, TValue>({
|
||||
|
@ -36,6 +38,8 @@ export function DataTable<TData extends { request_id: string }, TValue>({
|
|||
isLoading = false,
|
||||
expandedRequestId,
|
||||
onRowExpand,
|
||||
loadingMessage = "🚅 Loading logs...",
|
||||
noDataMessage = "No logs found",
|
||||
}: DataTableProps<TData, TValue>) {
|
||||
const table = useReactTable({
|
||||
data,
|
||||
|
@ -114,7 +118,7 @@ export function DataTable<TData extends { request_id: string }, TValue>({
|
|||
<TableRow>
|
||||
<TableCell colSpan={columns.length} className="h-8 text-center">
|
||||
<div className="text-center text-gray-500">
|
||||
<p>🚅 Loading logs...</p>
|
||||
<p>{loadingMessage}</p>
|
||||
</div>
|
||||
</TableCell>
|
||||
</TableRow>
|
||||
|
@ -147,7 +151,7 @@ export function DataTable<TData extends { request_id: string }, TValue>({
|
|||
: <TableRow>
|
||||
<TableCell colSpan={columns.length} className="h-8 text-center">
|
||||
<div className="text-center text-gray-500">
|
||||
<p>No logs found</p>
|
||||
<p>{noDataMessage}</p>
|
||||
</div>
|
||||
</TableCell>
|
||||
</TableRow>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue