feat(project): 파일 끌어 놓기 → 구글 드라이브 링크, 필터 켠 보드 카드 순서 버그 수정

- 설명란·세부 업무 목록·보드 카드에 파일을 놓으면 드라이브 프로젝트/섹션/업무/세부 업무
  폴더에 올리고 설명에 "파일 이름.확장자" 링크(PROJECT_DRIVE_FOLDER_ID)
- 설명에서 링크를 지우면 우리가 올린 파일만 드라이브 휴지통, 되살리면 복구
- 브라우저별 필터(localStorage)가 켜져 있으면 섹션 안 카드가 제자리로 돌아가던 버그 —
  필터 중에도 순서 변경 허용, 숨은 업무는 제자리. 카드 속 이미지 끌기 오인 방지

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-19 23:19:16 +09:00
parent ee96c924fc
commit 52ca60df9a
19 changed files with 887 additions and 50 deletions
+22 -3
View File
@@ -427,6 +427,8 @@ html.pj-side-resizing, html.pj-side-resizing * { cursor: col-resize !important;
/* 카드 끌기 실시간 미리보기(2026-10-19) — 원래 카드는 숨기고 놓일 자리에 점선 자리 표시,
끄는 모양은 살짝 기울어진 그림자 카드(setDragImage 용, 화면 밖에 잠깐 붙였다 뗀다). */
.pj-card.is-drag-src { display: none; }
/* 카드 속 이미지(아바타·표지)를 잡고 끌어도 이미지가 아니라 카드가 끌리게 — 이미지 끌기는 "Files" 를 실어 카드 놓기가 거부됐다 */
.pj-card img { -webkit-user-drag: none; user-drag: none; }
.pj-card-ph {
flex: none; box-sizing: border-box; border-radius: var(--pj-card-radius);
border: 2px dashed var(--pj-accent); background: var(--pj-accent-tint);
@@ -469,16 +471,33 @@ html.pj-side-resizing, html.pj-side-resizing * { cursor: col-resize !important;
/* 파일을 카드에 끌어 놓기 = 이 업무에 첨부(2026-10-19) — 점선 + "놓으면 첨부" 안내, 올리는 동안 흐리게 */
.pj-card.is-file-drop { position: relative; outline: 2px dashed var(--pj-accent); outline-offset: -2px; background: var(--pj-accent-tint); }
.pj-card.is-file-drop::after {
content: "놓으면 이 업무에 첨부"; position: absolute; right: 8px; bottom: 6px; padding: 2px 8px; border-radius: 999px;
content: "놓으면 드라이브에 올리고 설명에 링크"; position: absolute; right: 8px; bottom: 6px; padding: 2px 8px; border-radius: 999px;
background: var(--pj-accent); color: #fff; font-size: 11px; font-weight: 700; pointer-events: none;
}
.pj-card.is-file-drop.is-file-drop-sub::after { content: "놓으면 이 세부 업무 설명에 드라이브 링크"; }
/* 파일 → 구글 드라이브(2026-10-19) — 놓을 곳(설명란·세부 업무 줄) 점선 안내, 올리는 중 표시 */
.pj-card-sub.is-drive-over,
.pj-subtask-row.is-drive-over { outline: 2px dashed var(--pj-accent); outline-offset: -2px; background: var(--pj-accent-tint); border-radius: 6px; }
.pj-subtask-list.is-drive-over { outline: 2px dashed var(--pj-accent); outline-offset: 2px; border-radius: 8px; }
.pj-desc-wrap.is-drive-over { position: relative; outline: 2px dashed var(--pj-accent); outline-offset: 2px; border-radius: 8px; }
.pj-desc-wrap.is-drive-over::after {
content: "놓으면 구글 드라이브에 올리고 이 자리에 링크"; position: absolute; right: 8px; top: 6px; z-index: 5; padding: 2px 8px;
border-radius: 999px; background: var(--pj-accent); color: #fff; font-size: 11px; font-weight: 700; pointer-events: none;
}
.pj-card-sub.is-file-uploading,
.pj-subtask-row.is-file-uploading { animation: pj-file-up 1s ease-in-out infinite alternate; }
.pj-drive-uploading {
display: inline-block; margin: 0 2px; padding: 0 8px; border-radius: 999px; background: var(--pj-accent-tint);
color: var(--pj-accent); font-size: 12px; font-weight: 600; user-select: none;
animation: pj-file-up 1s ease-in-out infinite alternate;
}
.pj-card.is-file-uploading { opacity: .6; animation: pj-file-up 1s ease-in-out infinite alternate; }
@keyframes pj-file-up { from { opacity: .45; } to { opacity: .8; } }
/* 업무 창 아무 곳에 파일 끌어 놓기 — 창 전체 점선 안내(읽기 전용·저장 전 새 업무는 회색 안내) */
.pj-task-modal-card.is-file-over::after {
content: "여기에 놓으면 첨부 파일로 올라갑니다"; position: absolute; inset: 8px; z-index: 60; pointer-events: none;
content: "여기에 놓으면 첨부 파일로 올라갑니다 (설명란·세부 업무에 놓으면 구글 드라이브 링크)"; position: absolute; inset: 8px; z-index: 60; pointer-events: none;
display: flex; align-items: center; justify-content: center; border: 3px dashed var(--pj-accent); border-radius: 12px;
background: rgba(241, 238, 255, .88); color: var(--pj-accent); font-size: 16px; font-weight: 700;
background: rgba(241, 238, 255, .6); color: var(--pj-accent); font-size: 16px; font-weight: 700;
}
.pj-task-modal-card.is-file-over.is-file-blocked::after {
content: "이 업무에는 지금 첨부할 수 없습니다(저장 전·읽기 전용)"; border-color: #9ca3af; color: #6b7280; background: rgba(243, 244, 246, .9);