From d7d4f61bfbb5c860d81b283d6934d44b82e5631d Mon Sep 17 00:00:00 2001 From: king Date: Thu, 8 Oct 2026 11:13:27 +0900 Subject: [PATCH] feat(project): move PC notifier entry into inbox header MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sidebar 'PC 알림' item removed; inbox header gets a [PC 알림] button, and the notifier page keeps the inbox highlighted with a breadcrumb. Co-Authored-By: Claude Opus 5.5 --- app/modules/project/templates/project/_side.html | 7 +------ app/modules/project/templates/project/inbox.html | 3 +++ app/modules/project/templates/project/notifier.html | 4 ++-- app/static/project.css | 4 ++++ desktop/notifier/TrayApp.cs | 2 +- docs/PROJECT_MODULE.md | 2 +- 6 files changed, 12 insertions(+), 10 deletions(-) diff --git a/app/modules/project/templates/project/_side.html b/app/modules/project/templates/project/_side.html index 3ff87f0..cd29a55 100644 --- a/app/modules/project/templates/project/_side.html +++ b/app/modules/project/templates/project/_side.html @@ -7,7 +7,7 @@ my_open_total 진행 중인 내 업무 개수 (내 업무 배지) nav_projects 프로젝트 목록(평면) current_pid 지금 보고 있는 프로젝트 id (내 업무/수신함 화면이면 0) - side_active 'inbox' | 'mytasks' | 'notifier' | 'trash' | 'goals' | '' — 개인 메뉴 활성 표시 + side_active 'inbox' | 'mytasks' | 'trash' | 'goals' | '' — 개인 메뉴 활성 표시 goal_years "목표" 아래 연도 목록(router._goal_years_nav — 올해는 항상 포함) goal_year_active 목표 화면에서 보고 있는 연도 is_admin 프로젝트 생성/수정/삭제 권한 @@ -44,11 +44,6 @@ {{ my_open_total }} - {# PC 알림 — 트레이 프로그램(desktop/notifier) 내려받기·연결 승인·연결된 PC 해제(023) #} - - desktop_windows - PC 알림 - {# 휴지통 — 관리자만 보이고(화면·복구 API 도 관리자 전용), 지운 업무를 3개월 보관. #} {% if is_admin %} diff --git a/app/modules/project/templates/project/inbox.html b/app/modules/project/templates/project/inbox.html index 9cbfb78..5c6292c 100644 --- a/app/modules/project/templates/project/inbox.html +++ b/app/modules/project/templates/project/inbox.html @@ -18,6 +18,9 @@

수신함

+ {# PC 알림 프로그램(023) — 연결·내려받기 화면은 수신함 안에서 들어간다 #} + + desktop_windowsPC 알림
diff --git a/app/modules/project/templates/project/notifier.html b/app/modules/project/templates/project/notifier.html index 7c8ba89..084868a 100644 --- a/app/modules/project/templates/project/notifier.html +++ b/app/modules/project/templates/project/notifier.html @@ -12,10 +12,10 @@ 토큰은 프로그램이 받아 PC 에 암호화 저장(Windows DPAPI). 이 화면은 토큰 원문을 보지 않는다. #}
- {% with current_pid = 0, side_active = "notifier" %}{% include "project/_side.html" %}{% endwith %} + {% with current_pid = 0, side_active = "inbox" %}{% include "project/_side.html" %}{% endwith %}
-

PC 알림 프로그램

+

수신함 › PC 알림 프로그램

{% if not notifier_enabled %}
PC 알림 연결이 아직 준비되지 않았습니다(DB 마이그레이션 023 필요).
diff --git a/app/static/project.css b/app/static/project.css index 42df728..8ec518a 100644 --- a/app/static/project.css +++ b/app/static/project.css @@ -3005,3 +3005,7 @@ html[data-pj-font="nanum-square-round"] { --pj-font: "NanumSquareRound", var(--p .pj-notifier-note { color: var(--pj-ink-soft); font-size: 13px; } .pj-notifier-steps { margin: 4px 0 8px; padding-left: 20px; line-height: 1.9; } .pj-notifier-table { width: 100%; } +.pj-notifier-back { color: var(--pj-ink-soft); text-decoration: none; } +.pj-notifier-back:hover { color: var(--pj-accent-dark); text-decoration: underline; } +.pj-inbox-notifier { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; } +.pj-inbox-notifier .material-symbols-outlined { font-size: 18px; } diff --git a/desktop/notifier/TrayApp.cs b/desktop/notifier/TrayApp.cs index 78439ea..5e5f95b 100644 --- a/desktop/notifier/TrayApp.cs +++ b/desktop/notifier/TrayApp.cs @@ -246,7 +246,7 @@ namespace DbxNotifier if (MessageBox.Show("이 PC 의 DBX 알림 연결을 해제할까요?\n해제하면 알림이 오지 않습니다.", "DBX 알림", MessageBoxButtons.OKCancel, MessageBoxIcon.Question) != DialogResult.OK) return; try { await _api.Logout(_cfg.Server, _cfg.Token); } - catch { /* 서버에서도 해제할 수 있다(ERP > Project > PC 알림) */ } + catch { /* 서버에서도 해제할 수 있다(ERP > Project > 수신함 > PC 알림) */ } ClearConnection(); } diff --git a/docs/PROJECT_MODULE.md b/docs/PROJECT_MODULE.md index d626287..181b796 100644 --- a/docs/PROJECT_MODULE.md +++ b/docs/PROJECT_MODULE.md @@ -1059,7 +1059,7 @@ Windows 트레이 프로그램 **DBX 알림**(`desktop/notifier/`, C# .NET Frame 새 번호가 오면 마우스가 있는 화면 아래 가운데에 웹과 같은 모양의 큰 창(맨 위, 포커스 안 뺏음, 보라↔주황 깜박임, 최대 6줄 + "외 N건 더") + 알림 소리. [열기] = 기본 브라우저로 작업 + 읽음, [닫기] = 그 번호까지 본 것으로(PC 설정 `last_seen`). 웹에서 읽은 알림은 다음 확인 때 창에서 빠진다. 웹 팝업의 "본 것"(localStorage)과는 따로다. -- **화면** `/project/notifier`(사이드바 "PC 알림"): 연결 승인 카드, 설치 안내, 내 연결된 PC 목록·[연결 해제] +- **화면** `/project/notifier`(수신함 머리의 [PC 알림] 버튼으로 들어감, 사이드바는 수신함 활성): 연결 승인 카드, 설치 안내, 내 연결된 PC 목록·[연결 해제] (`POST /project/api/notifier/devices/{id}/revoke`). 내려받기 `GET /project/notifier/download` = 서버 `DATA_DIR/notifier/DBXNotifier.exe`(컨테이너 `/data/notifier/`) — 파일이 없으면 버튼 대신 "관리자에게 받으세요". - 023 미적용이면 화면은 안내만, notifier API 는 503.