feat: update document workspace and taxonomy data hooks.

This commit is contained in:
2025-12-04 23:10:12 +01:00
parent 8aa1872ea5
commit 2389c6f4bc
4 changed files with 7 additions and 7 deletions
@@ -43,7 +43,7 @@ import useDocuments from './useDocuments';
import { fetchDocument } from '../../lib/api/apiClient';
import useFolderTree from '../features/folders/useFolderTree';
import useFolderTreeActions from '../features/folders/useFolderTreeActions';
import useDocumentTagging from '../features/tagging/useDocumentTagging';
import useDocumentTagActions from '../features/tagging/useDocumentTagActions';
import useDocumentUploads from '../features/upload/useDocumentUploads';
import useDocumentDragHandlers from '../features/upload/useDocumentDragHandlers';
import useDocumentMutations from './useDocumentMutations';
@@ -541,7 +541,7 @@ const useDocumentsWorkspace = ({
handleBulkTagAddFromDetail,
handleBulkTagRemoveFromDetail,
handleBulkSelectionReanalyze,
} = useDocumentTagging({
} = useDocumentTagActions({
tags,
tagManager,
refreshTags,
@@ -3,7 +3,7 @@ import type { Dispatch, MutableRefObject, SetStateAction } from 'react';
import usePasskeys from '../../settings/usePasskeys';
import TagManager from '../../lib/assets/TagManager';
import useCorrespondents from './useCorrespondents';
import useDocumentCorrespondentActions from './useDocumentCorrespondentActions';
import useDocumentCorrespondentActions from '../features/correspondents/useDocumentCorrespondentActions';
import useTags from './useTags';
import type { Identifier } from '../../types/identifiers';
@@ -1,8 +1,8 @@
import { useCallback, useMemo } from 'react';
import type { Identifier } from '../../types/identifiers';
import type { Identifier } from '../../../types/identifiers';
import { addDocumentCorrespondent, removeDocumentCorrespondent } from '../../lib/api/apiClient';
import { addDocumentCorrespondent, removeDocumentCorrespondent } from '../../../lib/api/apiClient';
interface CorrespondentOption {
id?: string;
@@ -38,7 +38,7 @@ interface BulkTagOperationResult {
docsCount?: number;
}
const useDocumentTagging = ({
const useDocumentTagActions = ({
tags,
tagManager,
refreshTags,
@@ -283,4 +283,4 @@ const useDocumentTagging = ({
};
};
export default useDocumentTagging;
export default useDocumentTagActions;