Skip to content

Commit

Permalink
feat: add filter for usage in admin
Browse files Browse the repository at this point in the history
  • Loading branch information
moonrailgun committed Dec 29, 2024
1 parent 52f70c8 commit d72f878
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions server/admin/src/client/resources/file.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import filesize from 'filesize';
import React, { useState } from 'react';
import {
createTextField,
createSelectField,
ListTable,
useAsync,
useTranslation,
Expand Down Expand Up @@ -48,6 +49,26 @@ export const FileList: React.FC = React.memo(() => {
createTextField('q', {
label: 'Search',
}),
createSelectField('usage', {
label: 'Usage',
items: [
{
value: 'chat',
},
{
value: 'group',
},
{
value: 'user',
},
{
value: 'server',
},
{
value: 'unknown',
},
],
}),
]}
tableProps={{
scroll: {
Expand Down

0 comments on commit d72f878

Please sign in to comment.