Files
dbx-main/desktop/notifier
king 89ad338024 fix(project): review fixes — access leaks, open paths, save safety, concurrency
- Subproject tasks via parent /tasks are re-filtered by current access (FULL/READ kept)
- PUT /api/projects/order: every id must be manageable; bad/duplicate ids -> 400, all-or-nothing
- Inbox, web alert popup, PC notifier open tasks via /project/t/{id}; embed=1 survives redirect;
  old /p/{home}?task= redirects READ users to the linked project
- Project page / snapshot / workload include the opened archived or sub project only
- Alerts: DB-side filters + oldest-first paging (no 50-row cut); badges counted without caps;
  my tasks keep every open task (completed capped)
- Meeting results: next-week meeting open, or own meeting open when no next meeting;
  header edits + result checks under row locks (FOR UPDATE / FOR SHARE)
- Inbox panel waits for the task window save (same retry/discard flow) before switching/closing;
  read failures stay unread
- Attachment upload removes only its own file on DB failure
- New project modal: create once, retry only failed member assignments
- update_task / update_project: locked-row validation in one transaction; completion hints from real transition
- Creator added as explicit member when another owner is chosen
- _once lock lifetime managed by refcount (no leak on failure)
- Section default assignee must still be a registered project user; follower add uses can_assign
- Docs (PROJECT_MODULE 6-15, help), tests (DB-less, real PostgreSQL, jsdom, Chrome)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 11:08:56 +09:00
..

DBX 알림 (PC 트레이 프로그램)

ERP 프로젝트에서 나를 태그하거나 작업이 배정되면, 브라우저가 뒤에 있어도 PC 화면 아래 가운데에 웹 팝업과 같은 모양의 큰 알림 창을 띄운다. 서버 쪽 설명은 docs/PROJECT_MODULE.md 6-11.

  • 실행 파일 하나(DBXNotifier.exe, 약 110KB), 설치 없음, 관리자 권한 불필요
  • 실행하면 트레이(오른쪽 아래)에 종 아이콘만 남는다 — 메모리 약 25~30MB(전용), 20초마다 서버 확인
  • 대상: Windows 10(1903 이후)·11 — 기본으로 들어 있는 .NET Framework 4.8 로 동작(런타임 설치 없음)

사용

  1. DBXNotifier.exe 실행 → 연결 창에서 [브라우저에서 연결]
  2. 브라우저(ERP 로그인 상태)의 /project/notifier 화면에서 코드가 같은지 보고 [연결] → 연결 창이 저절로 닫힘
  3. 트레이 아이콘 메뉴: 지금 알림 확인 · ERP 수신함 열기 · 알림 소리 · Windows 시작 시 실행 · 연결 해제 · 종료 (왼쪽 클릭 = 알림이 있으면 알림 창, 없으면 수신함)

설정: %APPDATA%\DBXNotifier\settings.json — 토큰은 Windows DPAPI(현재 사용자)로 암호화. 다른 PC·사용자로 복사해도 못 쓴다. 연결 해제는 트레이 메뉴 또는 ERP /project/notifier 의 [연결 해제](분실 PC 등).

빌드

powershell -ExecutionPolicy Bypass -File desktop\notifier\build.ps1   # → desktop\notifier\dist\DBXNotifier.exe

.NET SDK(6 이상)가 있으면 된다. net48 참조 어셈블리는 빌드 때 NuGet 에서 자동으로 받는다. 아이콘을 바꾸려면 tools/make_icon.py(Pillow) 수정 후 실행 → app.ico.

서버 내려받기 버튼에 올리기: docs/DEPLOYMENT.md "PC 알림 프로그램 마이그레이션 (023)".

백신·SmartScreen

오탐을 부르는 방식은 쓰지 않는다: 실행 파일 압축(UPX)·난독화·자체 압축 해제·다른 프로세스 주입·관리자 권한·숨은 다운로드 없음. 평범한 관리 코드 exe 에 회사·제품·버전 정보가 채워져 있고, 통신은 설정한 ERP 주소(HTTPS)로만 한다. "Windows 시작 시 실행"은 사용자가 고른 경우에만 현재 사용자 Run 키에 등록한다.

그래도 서명하지 않은 새 exe 는 인터넷에서 받으면 Windows SmartScreen 이 "알 수 없는 게시자" 경고를 띄울 수 있다 (백신의 바이러스 판정과는 다르다 — [추가 정보] → [실행]). 경고를 없애는 확실한 방법은 코드 서명 인증서(OV/EV)로 서명하는 것: build.ps1 이 DBX_SIGN_PFX·DBX_SIGN_PASSWORD 환경변수가 있으면 서명한다. 회사 백신 관리 콘솔이 있으면 build.ps1 이 출력하는 SHA-256 을 허용 목록에 넣어도 된다.