detailspanel, selection handling, single document details panel

This commit is contained in:
2025-11-07 10:46:04 +01:00
parent 5b88ecf2dd
commit 30b90a5bf5
5 changed files with 292 additions and 761 deletions
+3 -16
View File
@@ -4358,17 +4358,12 @@ const AppLayout = () => {
const {
detailPanelOpen,
detailPanelSelectedDocuments,
detailPanelDocument,
openDetailPanel,
closeDetailPanel,
} = useDetailPanel({
selectedDocumentIds,
documentLookup,
orderedSelectedDocuments,
selectionOrder,
documentsViewMode,
getRowId,
isDocumentRowKey,
});
detailPanelControlRef.current = {
@@ -4900,17 +4895,13 @@ const AppLayout = () => {
const detailPanelProps = useMemo(
() => ({
selectedDocuments: detailPanelSelectedDocuments,
document: detailPanelDocument,
tags,
tagLookupById,
onTagAdd: handleTagAdd,
onTagRemove: handleTagRemove,
previewEntry: selectedPreviewEntry,
onOpenPreview: openDocumentPreview,
onBulkTagAdd: handleBulkTagAddFromDetail,
onBulkTagRemove: handleBulkTagRemoveFromDetail,
onBulkCorrespondentAdd: handleBulkCorrespondentAdd,
onBulkCorrespondentRemove: handleBulkCorrespondentRemove,
onPromoteSelection: promoteSelectionOrder,
activePreviewId,
onUpdateTitle: handleDocumentTitleUpdate,
@@ -4929,14 +4920,10 @@ const AppLayout = () => {
[
activePreviewId,
correspondents,
detailPanelSelectedDocuments,
detailPanelDocument,
ensureAssetUrl,
ensurePreviewData,
getDocumentAsset,
handleBulkCorrespondentAdd,
handleBulkCorrespondentRemove,
handleBulkTagAddFromDetail,
handleBulkTagRemoveFromDetail,
handleCorrespondentAdd,
handleCorrespondentRemove,
handleDetailPanelClose,