Fix: 하이라이트 메모 표시 오류 수정

- highlight-manager.js에서 showHighlightTooltip 함수 호출 시 배열 대신 단일 객체 전달하도록 수정
- 하이라이트 클릭 시 메모가 0개로 표시되던 문제 해결
- getOverlappingElements 함수에 디버깅 로그 추가
- 하이라이트 매니저 상태 확인 로그 추가
- 브라우저 캐시 무효화를 위한 버전 업데이트 (v=2025012617)
This commit is contained in:
Hyungi Ahn
2025-09-04 07:48:43 +09:00
parent 8f776a5281
commit 0786bdc86d
8 changed files with 1355 additions and 133 deletions

View File

@@ -201,7 +201,7 @@ class DocumentServerAPI {
}
async getCurrentUser() {
return await this.get('/users/me');
return await this.get('/auth/me');
}
async refreshToken(refreshToken) {
@@ -255,8 +255,8 @@ class DocumentServerAPI {
return await this.get(`/highlights/document/${documentId}`);
}
async updateHighlight(highlightId, data) {
return await this.put(`/highlights/${highlightId}`, data);
async updateHighlight(highlightId, updateData) {
return await this.put(`/highlights/${highlightId}`, updateData);
}
async deleteHighlight(highlightId) {
@@ -266,22 +266,24 @@ class DocumentServerAPI {
// === 하이라이트 메모 (Highlight Memo) 관련 API ===
// 용어 정의: 하이라이트에 달리는 짧은 코멘트
async createNote(noteData) {
return await this.post('/notes/', noteData);
return await this.post('/highlight-notes/', noteData);
}
async getNotes(params = {}) {
return await this.get('/notes/', params);
return await this.get('/highlight-notes/', params);
}
async updateNote(noteId, updateData) {
return await this.put(`/highlight-notes/${noteId}`, updateData);
}
// === 문서 메모 조회 ===
// 용어 정의: 특정 문서의 모든 하이라이트 메모 조회
async getDocumentNotes(documentId) {
return await this.get(`/notes/document/${documentId}`);
return await this.get(`/highlight-notes/`, { document_id: documentId });
}
async updateNote(noteId, data) {
return await this.put(`/notes/${noteId}`, data);
}
async deleteNote(noteId) {
return await this.delete(`/notes/${noteId}`);
@@ -375,10 +377,6 @@ class DocumentServerAPI {
return await this.post('/notes/', noteData);
}
async updateNote(noteId, noteData) {
return await this.put(`/notes/${noteId}`, noteData);
}
async deleteNote(noteId) {
return await this.delete(`/notes/${noteId}`);
}
@@ -500,10 +498,6 @@ class DocumentServerAPI {
return await this.post('/notes/', noteData);
}
async updateNote(noteId, noteData) {
return await this.put(`/notes/${noteId}`, noteData);
}
async deleteNote(noteId) {
return await this.delete(`/notes/${noteId}`);
}