Feat: Batch operations on documents in a dataset #3221 (#7352)

### What problem does this PR solve?

Feat: Batch operations on documents in a dataset #3221

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2025-04-27 17:00:41 +08:00
committed by GitHub
parent 43e507d554
commit 6a45d93005
12 changed files with 181 additions and 203 deletions

View File

@ -3,8 +3,6 @@
import {
ColumnDef,
ColumnFiltersState,
OnChangeFn,
RowSelectionState,
SortingState,
VisibilityState,
flexRender,
@ -35,6 +33,7 @@ import {
TooltipContent,
TooltipTrigger,
} from '@/components/ui/tooltip';
import { UseRowSelectionType } from '@/hooks/logic-hooks/use-row-selection';
import { useFetchFileList } from '@/hooks/use-file-request';
import { IFile } from '@/interfaces/database/file-manager';
import { cn } from '@/lib/utils';
@ -52,10 +51,9 @@ import { useNavigateToOtherFolder } from './use-navigate-to-folder';
type FilesTableProps = Pick<
ReturnType<typeof useFetchFileList>,
'files' | 'loading' | 'pagination' | 'setPagination' | 'total'
> & {
rowSelection: RowSelectionState;
setRowSelection: OnChangeFn<RowSelectionState>;
} & UseMoveDocumentShowType;
> &
Pick<UseRowSelectionType, 'rowSelection' | 'setRowSelection'> &
UseMoveDocumentShowType;
export function FilesTable({
files,