diff --git a/frontend/src/routes/documents/+page.svelte b/frontend/src/routes/documents/+page.svelte index 1f2d96d..606df39 100644 --- a/frontend/src/routes/documents/+page.svelte +++ b/frontend/src/routes/documents/+page.svelte @@ -8,8 +8,7 @@ import { goto } from '$app/navigation'; import { api } from '$lib/api'; import { addToast } from '$lib/stores/toast'; - import { Info, X, Plus, Trash2, Tag, FolderTree, Sparkles, ChevronLeft, ArrowUpDown } from 'lucide-svelte'; - import DocumentViewer from '$lib/components/DocumentViewer.svelte'; + import { X, Plus, Trash2, Tag, FolderTree, Sparkles, ArrowUpDown } from 'lucide-svelte'; import MarkdownStatusBadge from '$lib/components/MarkdownStatusBadge.svelte'; import { isMdStatusVisible } from '$lib/utils/mdStatus'; import UploadDropzone from '$lib/components/UploadDropzone.svelte'; @@ -233,15 +232,12 @@ goto(`/documents${qs ? '?' + qs : ''}`, { noScroll: true }); } - async function selectDoc(doc) { - if (selectedDoc?.id === doc.id) { selectedDoc = null; return; } - selectedDoc = doc; // 즉시 표시(리더 + 기본 인스펙터) - // 인스펙터 풀 메타 하이드레이션 — 검색 결과(SearchResult)는 메타가 빈약(태그/크기/하위/md상태/읽음 없음). - // 풀 문서를 조회해 채운다(기존 GET /documents/{id}, 백엔드 무변). 리스트 모드도 md상태 등 보강. - try { - const full = await api(`/documents/${doc.id}`); - if (selectedDoc?.id === doc.id) selectedDoc = { ...doc, ...full }; - } catch { /* 실패 시 기본 정보 유지 */ } + // 문서 열기 = 개선된 상세 페이지(D3 절 구조 탐색기)로 이동. + // 사용자 결정: "개선된 페이지가 앞으로 표시되야지" — 인라인 미리보기 폐기. + // /documents = 브라우즈/검색/필터/일괄 목록, 문서 열기 = /documents/[id] D3 리더. + function selectDoc(doc) { + if (!doc) return; + goto(`/documents/${doc.id}`); } // bulk 선택 @@ -386,8 +382,8 @@