feat(project): blinking popup for new mentions and task assignments

Project pages poll GET /api/notifications/alerts every 20s (and when the
tab becomes visible). New unread mention/assigned notifications show in a
large blinking popup at the bottom center until closed; closing in one tab
closes it in the others. A new browser starts from the latest id.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-07 17:30:15 +09:00
parent 4bdab1de3d
commit 21fc78adb9
5 changed files with 206 additions and 0 deletions
+27
View File
@@ -2847,6 +2847,33 @@ input.pj-meet-amount::placeholder { color: rgba(0, 0, 0, .28); }
.pj-goal-wkpop-sum b { font-variant-numeric: tabular-nums; }
.pj-goal-wkpop-acts { display: flex; justify-content: flex-end; gap: 6px; margin-top: 10px; }
/* 나를 태그·작업 배정 알림 — 화면 가운데 아래 큰 팝업(body 에 붙음), 닫기 전까지 깜박인다(2026-10-07) */
.pj-alert-pop {
position: fixed; left: 50%; bottom: 28px; z-index: 1100; transform: translateX(-50%); width: min(560px, calc(100vw - 32px));
max-height: 46vh; display: flex; flex-direction: column; background: #fff; border: 2px solid var(--pj-accent);
border-radius: 16px; box-shadow: 0 18px 50px rgba(16, 24, 40, .28); overflow: hidden;
animation: pj-alert-blink 1s ease-in-out infinite;
}
@keyframes pj-alert-blink {
0%, 100% { border-color: var(--pj-accent); box-shadow: 0 18px 50px rgba(16, 24, 40, .28), 0 0 0 0 rgba(124, 92, 255, .55); }
50% { border-color: #ff6b4a; box-shadow: 0 18px 50px rgba(16, 24, 40, .28), 0 0 0 10px rgba(255, 107, 74, .18); }
}
@media (prefers-reduced-motion: reduce) { .pj-alert-pop { animation: none; border-color: #ff6b4a; } }
.pj-alert-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: #fff4f0; border-bottom: 1px solid #f6d6cc; }
.pj-alert-head .material-symbols-outlined { color: #e5532f; font-size: 22px; }
.pj-alert-head b { flex: 1 1 auto; font-size: 15px; }
.pj-alert-list { overflow-y: auto; padding: 6px; }
.pj-alert-item { display: flex; align-items: center; gap: 10px; padding: 10px 10px; border-radius: 10px; color: var(--pj-ink); text-decoration: none; }
.pj-alert-item:hover { background: #f5f6f8; }
.pj-alert-kind { flex: none; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.pj-alert-kind.is-mention { background: #eef2ff; color: #4053c8; }
.pj-alert-kind.is-assigned { background: #e7f6ec; color: #1f8a4c; }
.pj-alert-text { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.pj-alert-text b { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pj-alert-text small { color: var(--pj-ink-soft); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pj-alert-go { flex: none; font-size: 12.5px; font-weight: 600; color: var(--pj-accent-dark); }
@media print { .pj-alert-pop { display: none !important; } }
/* 영역 색 고르기 팝업(body 에 붙음) */
.pj-goal-colorpop {
position: fixed; z-index: 1000; display: grid; grid-template-columns: repeat(8, 26px); gap: 6px;