feat(project): 검색·필터·정렬 + 팔로워 + 마감 알림
검색·필터·정렬 - 좌측 사이드바 전체 검색(/api/search): 제목·설명·댓글, 볼 수 있는 프로젝트의 업무(하위 업무 포함). 설명 HTML 태그에만 걸린 결과는 본문 텍스트로 재확인해 제거. 어디서 걸렸는지 + 미리보기, 키보드(/ ↑↓ Enter). - 프로젝트 화면 필터 바: 찾기·상태·담당자·마감·우선순위·정렬. visibleTasks() 에서 걸러 보드/리스트/달력/타임라인/대시보드 모두 적용, 프로젝트별 기억. 필터·정렬 중엔 보드 카드 순서 드래그 차단. - 내 업무 화면에도 찾기·마감·우선순위 필터. 팔로워 · 알림 - task_followers(008): 만든 사람·담당자·댓글 작성자·@태그된 사람 자동 팔로우, 기존 업무 백필. 업무 팝업에서 추가/빼기/내 팔로우 토글. - 완료·댓글 인앱 알림 수신자: 프로젝트 멤버 전원 → 담당자 + 팔로워. 008 미적용이면 예전 방식 폴백. - 마감 알림(reminders.py, lifespan 에서 데몬 스레드): 영업일(주말·공휴일 skip) 09시 KST 1회, 다음 영업일까지 마감/오늘 마감/지남(7일 이내). 수신자 담당자(없으면 팔로워). task_reminders UNIQUE 로 중복 방지, 마감일 바뀌면 재알림. PROJECT_REMINDER_EMAIL=true 면 요약 메일. - 008: pg_trgm GIN 인덱스(제목·설명·댓글), 미완료 마감일 부분 인덱스. 버그 - 업무 팝업 담당자 선택지가 프로젝트 멤버뿐이라, 멤버 목록에 없는 담당자 (프로젝트 owner, 멤버에서 빠진 사람)의 업무를 열고 저장하면 담당자가 지워지던 문제 수정. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1076,3 +1076,76 @@ label.pj-desc-fmtbtn { line-height: 26px; }
|
||||
.pj-btn-share { display: inline-flex; align-items: center; gap: 5px; }
|
||||
.pj-btn-share .material-symbols-outlined { font-size: 14px; }
|
||||
.pj-btn-share[hidden] { display: none; }
|
||||
|
||||
/* ── 좌측 사이드바 전체 검색 ── */
|
||||
.pj-side-search { position: relative; display: flex; align-items: center; margin-bottom: 10px; }
|
||||
.pj-side-search-ic { position: absolute; left: 9px; font-size: 18px; color: #8a9099; pointer-events: none; }
|
||||
.pj-side-search input {
|
||||
width: 100%; box-sizing: border-box; height: 34px; padding: 0 10px 0 32px;
|
||||
border: 1px solid var(--pj-border); border-radius: 8px; background: #f7f8f9;
|
||||
font-size: 13px; font-family: inherit; color: var(--pj-ink);
|
||||
}
|
||||
.pj-side-search input:focus { outline: none; background: #fff; border-color: var(--pj-accent); box-shadow: 0 0 0 3px var(--pj-accent-tint); }
|
||||
.pj-search-results {
|
||||
position: fixed; z-index: 1200; overflow-y: auto; background: #fff;
|
||||
border: 1px solid var(--pj-border); border-radius: 10px; box-shadow: 0 12px 32px rgba(16,24,40,.16);
|
||||
padding: 4px;
|
||||
}
|
||||
.pj-search-results[hidden] { display: none; }
|
||||
.pj-sr-item { padding: 8px 10px; border-radius: 8px; cursor: pointer; }
|
||||
.pj-sr-item:hover, .pj-sr-item.is-active { background: var(--pj-accent-tint); }
|
||||
.pj-sr-title { font-size: 13.5px; font-weight: 700; color: var(--pj-ink); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
|
||||
.pj-sr-item.is-done .pj-sr-title { color: var(--pj-ink-soft); }
|
||||
.pj-sr-check { font-size: 16px; color: #1e8e5a; }
|
||||
.pj-sr-parent { font-weight: 500; color: var(--pj-ink-soft); }
|
||||
.pj-sr-meta { margin-top: 2px; font-size: 12px; color: var(--pj-ink-soft); }
|
||||
.pj-sr-snippet { margin-top: 3px; font-size: 12px; color: #525860; line-height: 1.45; }
|
||||
.pj-sr-where { display: inline-block; padding: 0 5px; margin-right: 2px; border-radius: 4px; background: #eef0f2; font-size: 11px; font-weight: 700; color: #6b6f76; }
|
||||
.pj-search-results mark { background: #fff3b0; color: inherit; border-radius: 2px; padding: 0 1px; }
|
||||
.pj-sr-empty { padding: 14px 12px; font-size: 13px; color: var(--pj-ink-soft); }
|
||||
|
||||
/* ── 필터 바 (프로젝트 화면 / 내 업무) ── */
|
||||
.pj-filterbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex: none; margin: -6px 0 14px; }
|
||||
.pj-fb-search {
|
||||
display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px;
|
||||
border: 1px solid var(--pj-border); border-radius: 8px; background: #fff; flex: 0 1 280px; min-width: 180px;
|
||||
}
|
||||
.pj-fb-search .material-symbols-outlined { font-size: 18px; color: #8a9099; }
|
||||
.pj-fb-search input { border: none; outline: none; background: transparent; font-size: 13px; font-family: inherit; width: 100%; color: var(--pj-ink); }
|
||||
.pj-fb-search.is-set { border-color: var(--pj-accent); background: var(--pj-accent-tint); }
|
||||
.pj-fb-search:focus-within { border-color: var(--pj-accent); }
|
||||
.pj-fb-select {
|
||||
height: 32px; padding: 0 8px; border: 1px solid var(--pj-border); border-radius: 8px; background: #fff;
|
||||
font-size: 12.5px; font-weight: 600; font-family: inherit; color: #525860; cursor: pointer;
|
||||
}
|
||||
.pj-fb-select:hover { background: #f6f7f8; }
|
||||
.pj-fb-select.is-set { border-color: var(--pj-accent); background: var(--pj-accent-tint); color: var(--pj-accent-dark); }
|
||||
.pj-fb-count { font-size: 12.5px; font-weight: 700; color: var(--pj-accent-dark); }
|
||||
.pj-fb-count[hidden], .pj-fb-reset[hidden] { display: none; }
|
||||
.pj-fb-reset { border: none; background: transparent; color: var(--pj-ink-soft); font-size: 12.5px; font-weight: 600; cursor: pointer; text-decoration: underline; padding: 0 4px; }
|
||||
.pj-fb-reset:hover { color: var(--pj-ink); }
|
||||
|
||||
/* ── 업무 팝업 — 팔로워 ── */
|
||||
.pj-followers { flex-wrap: wrap; row-gap: 6px; padding: 5px 0; }
|
||||
.pj-follower-chips { display: flex; flex-wrap: wrap; gap: 6px; }
|
||||
.pj-follower-chip {
|
||||
display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 4px 0 4px;
|
||||
border-radius: 999px; background: #f1f2f4; font-size: 12.5px; font-weight: 600; color: var(--pj-ink);
|
||||
}
|
||||
.pj-follower-chip .pj-gicon-sm { font-size: 18px; }
|
||||
.pj-follower-x {
|
||||
border: none; background: transparent; color: #8a9099; cursor: pointer; font-size: 14px; line-height: 1;
|
||||
width: 18px; height: 18px; border-radius: 50%; padding: 0; display: inline-flex; align-items: center; justify-content: center;
|
||||
}
|
||||
.pj-follower-x:hover { background: #dfe2e6; color: #1e1f21; }
|
||||
.pj-follower-add {
|
||||
width: 26px; height: 26px; border-radius: 50%; border: 1px dashed #b8bec6; background: #fff;
|
||||
color: #6b6f76; font-size: 16px; line-height: 1; cursor: pointer; padding: 0; display: inline-flex; align-items: center; justify-content: center;
|
||||
}
|
||||
.pj-follower-add:hover { border-color: var(--pj-accent); color: var(--pj-accent); }
|
||||
.pj-follow-toggle {
|
||||
margin-left: auto; height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--pj-border);
|
||||
background: #fff; font-size: 12px; font-weight: 700; color: #525860; cursor: pointer;
|
||||
}
|
||||
.pj-follow-toggle:hover { background: #f6f7f8; }
|
||||
.pj-follow-toggle.is-on { background: var(--pj-accent-tint); border-color: var(--pj-accent); color: var(--pj-accent-dark); }
|
||||
|
||||
Reference in New Issue
Block a user