diff --git a/frontend/src/app/DocumentsRoute.tsx b/frontend/src/app/DocumentsRoute.tsx
index 430f93f..34b7d8b 100644
--- a/frontend/src/app/DocumentsRoute.tsx
+++ b/frontend/src/app/DocumentsRoute.tsx
@@ -69,7 +69,7 @@ const DocumentsInner: React.FC<{
{renderSurface()}
diff --git a/frontend/src/lib/context/DocumentOpenContext.tsx b/frontend/src/lib/context/DocumentOpenContext.tsx
index c84f2bb..007f441 100644
--- a/frontend/src/lib/context/DocumentOpenContext.tsx
+++ b/frontend/src/lib/context/DocumentOpenContext.tsx
@@ -15,14 +15,14 @@ interface DocumentOpenProviderProps {
children: React.ReactNode;
onOpenViewer?: (docId: Identifier) => void;
onOpenPreview?: (doc: Document) => void;
- onOpenSidepanel?: (docId: Identifier) => void;
+ onOpenDetailPanel?: (docId: Identifier) => void;
}
export const DocumentOpenProvider: React.FC = ({
children,
onOpenViewer,
onOpenPreview,
- onOpenSidepanel,
+ onOpenDetailPanel,
}) => {
const openDocument = useCallback((doc: Document, target: DocumentOpenTarget = 'preview') => {
if (!doc) return;
@@ -34,8 +34,8 @@ export const DocumentOpenProvider: React.FC = ({
}
break;
case 'sidepanel':
- if (onOpenSidepanel) {
- onOpenSidepanel(doc.id);
+ if (onOpenDetailPanel) {
+ onOpenDetailPanel(doc.id);
}
break;
case 'viewer':
@@ -44,7 +44,7 @@ export const DocumentOpenProvider: React.FC = ({
}
break;
}
- }, [onOpenPreview, onOpenSidepanel, onOpenViewer]);
+ }, [onOpenPreview, onOpenDetailPanel, onOpenViewer]);
return (
diff --git a/frontend/src/viewer/logic/useDetailWorkspace.ts b/frontend/src/viewer/logic/useDetailWorkspace.ts
index 6d2a6d1..a5f64ff 100644
--- a/frontend/src/viewer/logic/useDetailWorkspace.ts
+++ b/frontend/src/viewer/logic/useDetailWorkspace.ts
@@ -45,6 +45,8 @@ interface UseDetailWorkspaceResult {
openDetailPanel: ReturnType['openDetailPanel'];
closeDetailPanel: ReturnType['closeDetailPanel'];
handleDetailPanelClose: () => void;
+ previewActive: boolean;
+ previewWorkspaceDocument: Document | null;
resolveThumbnailUrlForDoc: (doc: Document | null) => string | null;
resolveFolderPath: (folderId?: Identifier | 'root') => Array<{ id: Identifier | 'root'; name: string }>;
}