mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 03:34:10 +00:00
(UI) - Keys Page - Show 100 Keys Per Page, Use full height, increase width of key alias (#9064)
* show 100 keys + increase height of keys * fix key_alias * litellm show key alias full width
This commit is contained in:
parent
36f3276d8c
commit
0e7fd162f4
2 changed files with 10 additions and 8 deletions
|
@ -187,6 +187,14 @@ export function AllKeysTable({
|
||||||
</div>
|
</div>
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
header: "Key Alias",
|
||||||
|
accessorKey: "key_alias",
|
||||||
|
cell: (info) => {
|
||||||
|
const value = info.getValue() as string;
|
||||||
|
return <Tooltip title={value}>{value ? (value.length > 20 ? `${value.slice(0, 20)}...` : value) : "-"}</Tooltip>
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
header: "Secret Key",
|
header: "Secret Key",
|
||||||
accessorKey: "key_name",
|
accessorKey: "key_name",
|
||||||
|
@ -206,12 +214,6 @@ export function AllKeysTable({
|
||||||
accessorKey: "team_id",
|
accessorKey: "team_id",
|
||||||
cell: (info) => <Tooltip title={info.getValue() as string}>{info.getValue() ? `${(info.getValue() as string).slice(0, 7)}...` : "-"}</Tooltip>
|
cell: (info) => <Tooltip title={info.getValue() as string}>{info.getValue() ? `${(info.getValue() as string).slice(0, 7)}...` : "-"}</Tooltip>
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
|
||||||
header: "Key Alias",
|
|
||||||
accessorKey: "key_alias",
|
|
||||||
cell: (info) => <Tooltip title={info.getValue() as string}>{info.getValue() ? `${(info.getValue() as string).slice(0, 7)}...` : "-"}</Tooltip>
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
header: "Organization ID",
|
header: "Organization ID",
|
||||||
accessorKey: "organization_id",
|
accessorKey: "organization_id",
|
||||||
|
@ -370,7 +372,7 @@ export function AllKeysTable({
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="h-[32rem] overflow-auto">
|
<div className="h-[75vh] overflow-auto">
|
||||||
|
|
||||||
<DataTable
|
<DataTable
|
||||||
columns={columns.filter(col => col.id !== 'expander')}
|
columns={columns.filter(col => col.id !== 'expander')}
|
||||||
|
|
|
@ -412,7 +412,7 @@ const ViewKeyTable: React.FC<ViewKeyTableProps> = ({
|
||||||
isLoading={isLoading}
|
isLoading={isLoading}
|
||||||
pagination={pagination}
|
pagination={pagination}
|
||||||
onPageChange={handlePageChange}
|
onPageChange={handlePageChange}
|
||||||
pageSize={50}
|
pageSize={100}
|
||||||
teams={teams}
|
teams={teams}
|
||||||
selectedTeam={selectedTeam}
|
selectedTeam={selectedTeam}
|
||||||
setSelectedTeam={setSelectedTeam}
|
setSelectedTeam={setSelectedTeam}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue