diff --git a/CLAUDE.md b/CLAUDE.md
index 47133f3..6b120bd 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -36,7 +36,7 @@ Claude Code는 이 저장소에서 작업을 시작하기 전에 **반드시 아
- 말레이시아 창고 재고관리 (`app/modules/malaysia/`, `malaysia_stock_db`) — 낱개(MT/MX/MZ) 입출고·조정, 세트(MY) BOM, 일일 재고조사(세트→낱개 자동 분해), 현재고 현황. 뚜껑(MD-)은 재고 집계 제외 — 단, 창고 랙에는 위치 확인용으로 배치 가능(`store.LID_ITEMS`). 상품은 `itemcode_db` 읽기 전용. 권한키 `malaysia`
- 말레이시아 배송 (`app/modules/dispatch/`, `dispatch_db`) — TikTok·Shopee 출고관리. 플랫폼별 데이터 엑셀 업로드(TikTok=03_TikTok_Order_Export.xlsx, Shopee=Packing List.Doorstep Delivery.xlsx) → 1상자=1카드 출고 작업 리스트·SKU 피킹 요약·Kagayaku 전달표 자동 생성. 1상자 묶음 기준 Package ID > Tracking ID > Order ID, 같은 상자 같은 SKU 합산. 작업 상태 토글(`dispatch_logs` 기록). 받는 사람 이름/전화/주소는 상자 단위로 저장(작업 카드 표시 + 출고 엑셀 생성용 — 개인정보). 배치 다운로드 zip 에 업로드 원본 + 취합 출고 엑셀(`YYYY.MM.DD(Ddd)_tictoc|shopee.xlsx`) 포함. 엑셀은 openpyxl 파싱/생성. 권한키 `dispatch`. 상세는 `docs/DISPATCH_MODULE.md`
- 카페24 상품관리 (`app/modules/cafe24/`, `cafe24_db`) — 카페24 관리자에 들어가지 않고 상품 상세페이지(description HTML) 조회·편집·즉시적용·예약적용·버전 이력. 3분할 화면(목록 | HTML 편집기 | 상품 정보 패널). 정보 패널(`routes_product_info.py`, `_side.html`)에서 상품명·판매가·공급가·소비자가, 대표이미지(`POST /admin/products/{no}/images` 에 base64 data URI + `image_upload_type=A` — NNEditor 업로드 경로를 PUT `detail_image` 에 넣는 방식은 적용 안 됨), 옵션(생성/이름·썸네일·표시방식 수정/삭제)·품목(자체코드·추가금액·진열·판매)을 수정. 카페24 OAuth/API 클라이언트는 향후 주문관리와 공유하기 위해 **공통 계층 `app/integrations/cafe24/`** 에 둔다 — 라우터에서 `httpx`/`requests` 직접 호출 금지. 토큰은 Fernet 암호화 저장(`CAFE24_TOKEN_SECRET`), 로그/화면에 토큰·시크릿 절대 미출력. 쓰기 직전 항상 카페24 현재 HTML 을 다시 읽어 `BACKUP` revision 생성(로컬 값을 현재값으로 가정 금지). **카페24 관리자 API 는 PUT 뒤 한동안 GET 에서 예전 값을 돌려준다(읽기 지연)** — 우리 캐시 문제가 아니다. 그래서 "마지막 쓰기가 권위": 상세설명은 카페24 값이 최근 revision 중 하나와 같으면 지연으로 보고 마지막 MANUAL/SCHEDULED 를 표시·지문 기준으로 쓰고(`store.resolve_description`), 스칼라(상품명·가격·이미지·진열/판매)는 PUT 응답 스냅샷(`cafe24_products.last_write_snapshot`, 마이그레이션 004)과 GET 의 `updated_date` 를 비교해 덮어씌운다(`store.overlay_recent_write`). 유예시간 `CAFE24_READ_LAG_GRACE_MIN`(기본 360분). 쓰기 후 화면은 PUT 응답으로 그리고 다시 GET 하지 않는다. 예약은 DB 저장 + 별도 worker(`app/modules/cafe24/worker.py`, compose 서비스 `dbx-cafe24-worker`)가 처리 — 웹 프로세스에서 대기하지 않는다. 권한키 `cafe24`(연결/해제는 admin 전용). 상세는 `docs/CAFE24_MODULE.md`
-- 프로젝트 관리 (`app/modules/project/`, `project_db`) — 아사나식. 프로젝트/서브프로젝트(self-FK `parent_id`, CASCADE)·프로젝트 색상(32색 — 아사나 16색 + 진한 16색, 수정 창 12열)·아이콘(`projects.icon`, Material Symbols 42종, 마이그레이션 011 + [아사나 아이콘] 탭 33종 `"asana:"+이름`, 채워진 모양 전용 부분 글꼴 `material-symbols-asana.woff2`)·작업(`tasks`: 담당자·우선순위·시작/마감)·진행단계(`project_stages` 칸반, 새 프로젝트는 섹션 없이 시작 — `create_project(seed_stages=True)` 일 때만 기본 4단계, 섹션 머리는 모두 `#f3f3f3` — 섹션별 색 지정 없음, 섹션 이름 굵게, 섹션 기본 담당자 `default_assignee_email` — 담당자 빈 작업을 그 섹션에 만들거나 옮기면 자동 배정, 마이그레이션 009)·멤버 배정(`project_members`)·활동이력(`project_activity`). 첫 화면(`/project/`)은 **내 작업 목록**(프로젝트 홈 카드 화면은 폐지). 프로젝트 화면은 캘린더(FullCalendar)/타임라인(vis-timeline)/보드/목록/대시보드 뷰 토글. 좌측 사이드바는 수신함·내 작업·휴지통·프로젝트 화면 공용(`templates/project/_side.html` + 프로젝트 목록 동작 `initSideTree`, 새 프로젝트/수정 모달 `_side_modals.html`) — 프로젝트 목록(순서 변경·✎·×)은 어느 화면에서나 같다. 보드는 아사나처럼 섹션이 가로로 계속 늘어나고(넘치면 가로 스크롤) 카드의 담당자·마감일을 클릭해 그 자리에서 바꾼다. 좌측 사이드바에 수신함·전체 보기(Pro user 이상 — 예전 오른쪽 위 "전체 프로젝트" 토글, `?scope=all`)·내 작업(접이식) 메뉴. 설명란 서식 도구에 글자 색·크기(서버는 span style 의 color·font-size 만 허용, `desc_inline_style`). 설명란은 주소 붙여넣기 시 자동 링크, 설명란·댓글에서 @로 멤버를 태그하면 (`task_mentions`, 마이그레이션 006) 수신함에 그 작업이 쌓인다. 진입 권한키 `project`(관리자 페이지 토글로 직원별 부여, admin 자동). **관리자 등급 4단계(2026-10-12) — 수퍼관리자(`SUPER_ADMIN_EMAIL` 한 명 고정, 추가 불가) > Admin(`role=admin`) > Pro user(`role=pro`) > User** — 판단은 `access.is_pro`(Pro user 이상)·`access.is_project_admin`(Admin 이상), 라우터 `_require_pro`, 화면 `pj_pro`·`pj_admin`(`_role_ctx`, `is_admin` 은 ERP 상단 관리자 메뉴용 그대로). pro 는 프로젝트 모듈 밖에서는 user 와 같다. 새 프로젝트·프로젝트 이름/색/아이콘/소유자 수정·멤버 배정(자기가 멤버인 프로젝트)·사이드바 순서·남의 댓글 수정/삭제·휴지통·전체 보기·담당자별 합계·전체 멤버 = Pro user 이상, 프로젝트·섹션 삭제 = Admin 이상 또는 만든 사람, 작업 삭제·서브프로젝트 = 멤버 누구나(표는 docs/PROJECT_MODULE.md 6-14). 배정 멤버(또는 owner)만 그 프로젝트를 조회 — **관리자도 멤버가 아니면 안 보임, 예외는 슈퍼관리자뿐**(2026-10-07, `access.sees_all_projects`; 사이드바 목록·검색·휴지통·알림도 같은 기준, 화면·API 모두 비멤버 403)하고 서브프로젝트/작업/단계 CRUD — URL 의 섹션·부모 작업이 그 프로젝트 것인지 서버가 검증. 실시간 반영은 `project_live_version` 카운터(마이그레이션 007, 미적용 시 MAX 폴백). 사이드바 전체 검색(`/api/search`, 제목·설명·댓글, pg_trgm) + 프로젝트/내 작업 필터 바(찾기·상태·담당자·마감·우선순위·정렬, 클라이언트 필터). 협업자(`task_followers`, 자동 팔로우: 만든 사람·담당자·댓글·@태그) — 완료·댓글 알림은 담당자+협업자에게만. 나를 태그하거나 작업이 배정되면 프로젝트 화면 가운데 아래에 깜박이는 큰 팝업(닫기 전까지, `initTaskAlerts` + `GET /api/notifications/alerts`). 작업 삭제는 휴지통(`project_trash`, 마이그레이션 010) — 삭제 직전 스냅샷 3개월 보관, Pro user 이상만 보기·복구(`/project/trash`). 권한은 **지금 기준 공통 모듈 `access.py`**(목록·배지·알림·멘션·메일 수신자·삭제·댓글 수정까지 — 멤버에서 빠지면 기록이 있어도 안 보이고 알림도 없음), 소유자 변경은 Pro user 이상, 연결(멀티호밍)된 작업은 연결된 프로젝트 멤버에게 읽기 전용(docs/PROJECT_MODULE.md 6-10). 연간 목표(마이그레이션 013, `goal_*` 테이블) — 사이드바 "목표" → 연도 펼침 → `/project/goals/{연도}` 에 매출(목표·실적·달성)·로아스 월별 숫자 + 업무 영역(상품·마케팅·컨텐츠·유통 등)별 연간·월별 글, 조회는 전원·입력(주차별 목표·연도 추가/삭제 포함)은 Pro user 이상. 3·6·9·12월 오른쪽 1~4분기 칸(글 칸 13=1분기·15=2분기·14=3분기·16=4분기 — 예전 반기 칸 번호 재사용, 15·16 은 마이그레이션 017) + 분기 월 칸 접기 애니메이션(localStorage `pj_goal_fold_q`, 표는 `width:1px`+`table-layout:fixed`), 영역·줄 이름 클릭 바로 수정, **엑셀식 칸 병합**(마우스로 끌어 사각형 선택 → 우클릭 셀 병합/병합 해제, 같은 영역 안 세로 `row_span` + 같은 분기 월 칸 가로, 글은 왼쪽 위 칸 — `goal_cell_merges`, 마이그레이션 014·015·017), 3열 줄 추가는 같은 항목 칸(2열) 안에(`goal_rows.label_cont`, 마이그레이션 016), 구조 변경은 새로고침 없이 제자리 다시 그리기(`refreshTable`)+애니메이션, 로아스는 % 표기. 월 머리 → **주간 회의록**(`/project/goals/{연도}/meetings/{월}`, 프로젝트 권한자 **누구나 수정** — Pro user 이상 [회의 완료](`completed_at`, 마이그레이션 022)면 잠금(지난주 결과는 다음 주 회의록이 열려 있는 동안 허용), 삭제·완료·완료 해제는 Pro user 이상, 표 첫 열 머리 글자 "구분", 주차 탭 — **주차는 그 달 안**(`store.month_weeks`: 1일이 월~금이면 1일~일요일이 1주차, 토·일이면 1일~다음 주 일요일, 그 뒤 월~일, 말일이 월·화면 앞 주차에 붙음, 회의록 `week_start` = 주차 시작일, 마이그레이션 020), `goal_meetings`·`goal_meeting_items` 마이그레이션 015 — 지난주 = **바로 앞 주차**(`store.prev_week_period`) 회의록의 같은 연결키 줄(`line_key`, 마이그레이션 018 — 생성 순서·이름 변경과 무관, 이름 추정 연결 금지)로 리뷰(열: 주요 업무·정량 목표 ‖ 전주 업무·결과(글, `result_note` 020)·전주 목표·결과 — 정량 목표·결과는 숫자면 원 정수 칸, 아니면 글 칸 `target_text`·`result_text`(예: 20개, 021)), 실적 조회 장애는 0원이 아니라 "미확인", 위에 목표 표 그 달 열 글을 영역별 "N월 계획" 카드로, 참석자 옆 [회의록 보드] = 그 주차의 빈 Google 슬라이드를 독립 창으로(오른쪽 🔗 아이콘 = 그 보드 링크 복사)(공유 드라이브 `MEETING_BOARD_FOLDER_ID`, 없으면 만듦, `app/integrations/google_slides.py`, Drive appProperties 로 주차 연결 — Drive·Slides 권한 토큰 필요), 표를 스크롤해도 보이는 머리 영역 3칸 = ① 월 계획 + 머리 줄에 숫자 4개 작게 1행(월 목표 매출·월 누적 목표 매출(목표 표 **주차별 매출 목표** `goal_week_targets` 1주차~이 주차 합 — 목표 표 매출 목표 월 칸을 누르면 입력 창 — 월 전체 목표는 직접 입력(주차 합계와 별개), 맨 아래 차이 = 월 목표 − 주차 합계)·월 누적 실적(1일~오늘)·누적 목표 대비 차액·%) | ② 결정 사항·메모 | ③ "N주차 작업 등록" 표(제목·담당자·프로젝트·섹션 → [적용] = 서버가 그 프로젝트에 작업 생성, `initMeetQuickTasks` — 주차별 서버 표 `goal_meeting_tasks`(마이그레이션 025)라 모두가 같이 보고, 남의 프로젝트 이름은 가림, 완료 프로젝트·섹션은 목록에서 뺌, 세부 작업 줄 `parent_id` 한 단계 — ↳·우클릭·Tab/Shift+Tab, [적용]은 위 줄 작업 밑에, [크게 열기] = 같은 표를 넓은 창으로), 실적 모듈 `performance_store` 매출은 머리 카드에만 읽기 전용 — 줄(쇼핑몰)별 자동 결과·이번주 실적·연결 배지·쇼핑몰 연결 메뉴는 폐지, 지난주 결과는 늘 직접 입력). 모든 열 너비 끌어서 조절(localStorage `pj_goal_col_w`), 세로 스크롤 틀 고정은 머리 줄+매출·로아스 줄까지, 항목 칸 +·우클릭으로 줄 위/아래 추가·삭제, 구분(구역) 칸 우클릭·⋯ = 구역 통째로 위/아래(`move-section`). 마감 알림(`reminders.py` 데몬 스레드, 영업일 09시, D-1/당일/지연, `task_reminders` 로 중복 방지, `PROJECT_REMINDER_*` env) — 마이그레이션 008. 라우터 핸들러는 동기 DB 라 `def` 로 둔다(`async def` 금지). 말풍선은 전부 아사나식 공용 말풍선(`.pj-hovertip`) — 새 기능도 `title=`/`data-tip=` 만 달고 별도 툴팁 구현 금지. 멤버 배정 후보는 `project` 권한 보유 등록 사용자에서 자동 목록(`GET /project/api/assignable-users`). 작업 배정·완료 시 관리자에게 메일(`app/mail.py` stdlib smtplib, `SMTP_*`+`PROJECT_NOTIFY_EMAIL` env, 미설정 시 조용히 skip, `BackgroundTasks` 비동기). 목표 표·회의록 칸 저장은 공용 `createFieldSaver`(같은 칸 요청 직렬화·보낸 값만 저장됨·실패 시 초안 유지·localStorage 초안 백업, 저장 실패면 구조 변경 중단 — docs/PROJECT_MODULE.md 6-9-3), 구역·항목 메뉴는 우클릭 + ⋮ 버튼(키보드·터치). ERP 메뉴 이름은 "Project"(`app/main.py` 모듈 목록 title). **PC 알림 프로그램**(`desktop/notifier/`, C# .NET Framework 4.8 WinForms exe 하나·트레이 상주, 마이그레이션 023 `notifier_links`·`notifier_tokens`) — 브라우저가 뒤에 있어도 태그·배정 알림을 웹 팝업과 같은 모양으로 화면 위에. 브라우저 `/project/notifier?code=` 승인으로 PC별 토큰(서버는 SHA-256 만, PC 는 DPAPI), `GET /project/api/notifier/alerts`(Bearer)는 웹 알림과 같은 `_alerts_payload`, 토큰마다 지금 사용자·권한 재확인. 프로그램이 돌고 있으면(최근 3분 확인, `notifier_active`) 웹 큰 팝업은 쉰다(`desktop: true`). 압축·난독화 금지(백신 오탐), 빌드 `desktop/notifier/build.ps1`, 상세 docs/PROJECT_MODULE.md 6-11. 댓글·답글 입력칸은 Enter 등록·Shift+Enter 줄바꿈(textarea), 설명란 이미지 더블클릭 = 별도 창 이미지 보기(확대·축소·끌어 이동). 작업 창은 **저장 버튼 없이 실시간 저장**(칸별 PUT, `saveField`/`saveChain`, 새 작업은 제목이 생기는 순간 생성). 댓글 답글·이모티콘 반응(마이그레이션 012 `task_comments.parent_id`·`task_comment_reactions`, 미적용 시 버튼 숨김·API 503), 완료 이력 줄은 `project_activity` completed 를 댓글 사이에 표시(댓글 수 제외), 댓글 `@아이디` 는 아이콘+이름 칩. 수신함은 확인 안 한 태그·읽지 않은 알림만(2026-10-08) — [확인] 버튼 없이 줄을 누르면 읽음·확인 처리(같은 작업 줄 함께) + 페이지 이동 없이 오른쪽 iframe 패널, 다른 줄을 고르거나 패널을 닫으면 그 줄은 목록에서 빠짐. 용어는 "세부 작업"(예전 하위 작업)·"메인 작업 추가". 패널(`/project/p/{pid}?task=&embed=1`, `html.pj-embed`). 상단 바 화면 배율 토글(`html.pj-ui-scale` → `.erp-app` zoom .75, 2880×1620·200%용) — **팝업은 반드시 `document.body` 에 붙인다**(배율 안의 fixed 좌표는 어긋남). 상세는 `docs/PROJECT_MODULE.md`
+- 프로젝트 관리 (`app/modules/project/`, `project_db`) — 아사나식. 프로젝트/서브프로젝트(self-FK `parent_id`, CASCADE)·프로젝트 색상(32색 — 아사나 16색 + 진한 16색, 수정 창 12열)·아이콘(`projects.icon`, Material Symbols 42종, 마이그레이션 011 + [아사나 아이콘] 탭 33종 `"asana:"+이름`, 채워진 모양 전용 부분 글꼴 `material-symbols-asana.woff2`)·작업(`tasks`: 담당자·우선순위·시작/마감)·진행단계(`project_stages` 칸반, 새 프로젝트는 섹션 없이 시작 — `create_project(seed_stages=True)` 일 때만 기본 4단계, 섹션 머리는 모두 `#f3f3f3` — 섹션별 색 지정 없음, 섹션 이름 굵게, 섹션 기본 담당자 `default_assignee_email` — 담당자 빈 작업을 그 섹션에 만들거나 옮기면 자동 배정, 마이그레이션 009)·멤버 배정(`project_members`)·활동이력(`project_activity`). 첫 화면(`/project/`)은 **내 작업 목록**(프로젝트 홈 카드 화면은 폐지). 프로젝트 화면은 캘린더(FullCalendar)/타임라인(vis-timeline)/보드/목록/대시보드 뷰 토글. 좌측 사이드바는 수신함·내 작업·휴지통·프로젝트 화면 공용(`templates/project/_side.html` + 프로젝트 목록 동작 `initSideTree`, 새 프로젝트/수정 모달 `_side_modals.html`) — 프로젝트 목록(순서 변경·✎·×)은 어느 화면에서나 같다. 보드는 아사나처럼 섹션이 가로로 계속 늘어나고(넘치면 가로 스크롤) 카드의 담당자·마감일을 클릭해 그 자리에서 바꾼다. 좌측 사이드바에 수신함·전체 보기(Pro user 이상 — 예전 오른쪽 위 "전체 프로젝트" 토글, `?scope=all`)·내 작업(접이식) 메뉴. 설명란 서식 도구에 글자 색·크기(서버는 span style 의 color·font-size 만 허용, `desc_inline_style`). 설명란은 주소 붙여넣기 시 자동 링크, 설명란·댓글에서 @로 멤버를 태그하면 (`task_mentions`, 마이그레이션 006) 수신함에 그 작업이 쌓인다. 진입 권한키 `project`(관리자 페이지 토글로 직원별 부여, admin 자동). **관리자 등급 4단계(2026-10-12) — 수퍼관리자(`SUPER_ADMIN_EMAIL` 한 명 고정, 추가 불가) > Admin(`role=admin`) > Pro user(`role=pro`) > User** — 판단은 `access.is_pro`(Pro user 이상)·`access.is_project_admin`(Admin 이상), 라우터 `_require_pro`, 화면 `pj_pro`·`pj_admin`(`_role_ctx`, `is_admin` 은 ERP 상단 관리자 메뉴용 그대로). pro 는 프로젝트 모듈 밖에서는 user 와 같다. 새 프로젝트·프로젝트 이름/색/아이콘/소유자 수정·멤버 배정(자기가 멤버인 프로젝트)·사이드바 순서·남의 댓글 수정/삭제·휴지통·전체 보기·담당자별 합계·전체 멤버 = Pro user 이상, 프로젝트·섹션 삭제 = Admin 이상 또는 만든 사람, 작업 삭제·서브프로젝트 = 멤버 누구나(표는 docs/PROJECT_MODULE.md 6-14). 배정 멤버(또는 owner)만 그 프로젝트를 조회 — **관리자도 멤버가 아니면 안 보임, 예외는 슈퍼관리자뿐**(2026-10-07, `access.sees_all_projects`; 사이드바 목록·검색·휴지통·알림도 같은 기준, 화면·API 모두 비멤버 403)하고 서브프로젝트/작업/단계 CRUD — URL 의 섹션·부모 작업이 그 프로젝트 것인지 서버가 검증. 실시간 반영은 `project_live_version` 카운터(마이그레이션 007, 미적용 시 MAX 폴백). 사이드바 전체 검색(`/api/search`, 제목·설명·댓글, pg_trgm) + 프로젝트/내 작업 필터 바(찾기·상태·담당자·마감·우선순위·정렬, 클라이언트 필터). 협업자(`task_followers`, 자동 팔로우: 만든 사람·담당자·댓글·@태그) — 완료·댓글 알림은 담당자+협업자에게만. 나를 태그하거나 작업이 배정되면 프로젝트 화면 가운데 아래에 깜박이는 큰 팝업(닫기 전까지, `initTaskAlerts` + `GET /api/notifications/alerts`). 작업 삭제는 휴지통(`project_trash`, 마이그레이션 010) — 삭제 직전 스냅샷 3개월 보관, Pro user 이상만 보기·복구(`/project/trash`). 권한은 **지금 기준 공통 모듈 `access.py`**(목록·배지·알림·멘션·메일 수신자·삭제·댓글 수정까지 — 멤버에서 빠지면 기록이 있어도 안 보이고 알림도 없음), 소유자 변경은 Pro user 이상, 연결(멀티호밍)된 작업은 연결된 프로젝트 멤버에게 읽기 전용(docs/PROJECT_MODULE.md 6-10). 연간 목표(마이그레이션 013, `goal_*` 테이블) — 사이드바 "목표" → 연도 펼침 → `/project/goals/{연도}` 에 매출(목표·실적·달성)·로아스 월별 숫자 + 업무 영역(상품·마케팅·컨텐츠·유통 등)별 연간·월별 글, 조회는 전원·입력(주차별 목표·연도 추가/삭제 포함)은 Pro user 이상. 3·6·9·12월 오른쪽 1~4분기 칸(글 칸 13=1분기·15=2분기·14=3분기·16=4분기 — 예전 반기 칸 번호 재사용, 15·16 은 마이그레이션 017) + 분기 월 칸 접기 애니메이션(localStorage `pj_goal_fold_q`, 표는 `width:1px`+`table-layout:fixed`), 영역·줄 이름 클릭 바로 수정, **엑셀식 칸 병합**(마우스로 끌어 사각형 선택 → 우클릭 셀 병합/병합 해제, 같은 영역 안 세로 `row_span` + 같은 분기 월 칸 가로, 글은 왼쪽 위 칸 — `goal_cell_merges`, 마이그레이션 014·015·017), 3열 줄 추가는 같은 항목 칸(2열) 안에(`goal_rows.label_cont`, 마이그레이션 016), 구조 변경은 새로고침 없이 제자리 다시 그리기(`refreshTable`)+애니메이션, 로아스는 % 표기. 월 머리 → **주간 회의록**(`/project/goals/{연도}/meetings/{월}`, 프로젝트 권한자 **누구나 수정** — Pro user 이상 [회의 완료](`completed_at`, 마이그레이션 022)면 잠금(지난주 결과는 다음 주 회의록이 열려 있는 동안 허용), 삭제·완료·완료 해제는 Pro user 이상, 표 첫 열 머리 글자 "구분", 주차 탭 — **주차는 그 달 안**(`store.month_weeks`: 1일이 월~금이면 1일~일요일이 1주차, 토·일이면 1일~다음 주 일요일, 그 뒤 월~일, 말일이 월·화면 앞 주차에 붙음, 회의록 `week_start` = 주차 시작일, 마이그레이션 020), `goal_meetings`·`goal_meeting_items` 마이그레이션 015 — 지난주 = **바로 앞 주차**(`store.prev_week_period`) 회의록의 같은 연결키 줄(`line_key`, 마이그레이션 018 — 생성 순서·이름 변경과 무관, 이름 추정 연결 금지)로 리뷰(열: 주요 업무·정량 목표 ‖ 전주 업무·결과(글, `result_note` 020)·전주 목표·결과 — 정량 목표·결과는 숫자면 원 정수 칸, 아니면 글 칸 `target_text`·`result_text`(예: 20개, 021)), 실적 조회 장애는 0원이 아니라 "미확인", 위에 목표 표 그 달 열 글을 영역별 "N월 계획" 카드로, 참석자 옆 [회의록 보드] = 그 주차의 빈 Google 슬라이드를 독립 창으로(오른쪽 🔗 아이콘 = 그 보드 링크 복사)(공유 드라이브 `MEETING_BOARD_FOLDER_ID`, 없으면 만듦, `app/integrations/google_slides.py`, Drive appProperties 로 주차 연결 — Drive·Slides 권한 토큰 필요), 표를 스크롤해도 보이는 머리 영역 3칸 = ① 월 계획 + 머리 줄에 숫자 4개 작게 1행(월 목표 매출·월 누적 목표 매출(목표 표 **주차별 매출 목표** `goal_week_targets` 1주차~이 주차 합 — 목표 표 매출 목표 월 칸을 누르면 입력 창 — 월 전체 목표는 직접 입력(주차 합계와 별개), 맨 아래 차이 = 월 목표 − 주차 합계)·월 누적 실적(1일~오늘)·누적 목표 대비 차액·%) | ② 결정 사항·메모 | ③ "N주차 작업 등록" 표(제목·담당자·프로젝트·섹션 → [적용] = 서버가 그 프로젝트에 작업 생성, `initMeetQuickTasks` — 주차별 서버 표 `goal_meeting_tasks`(마이그레이션 025)라 모두가 같이 보고, 남의 프로젝트 이름은 가림, 완료 프로젝트·섹션은 목록에서 뺌, 작업 칸(마이그레이션 026 `parent_task_id`) = 이미 있는 작업을 고르면 그 작업의 세부 작업으로 등록, 등록된 줄 제목 = 오른쪽 작업 창(편집, 저장 대기), [크게 열기] = 같은 표를 넓은 창으로), 실적 모듈 `performance_store` 매출은 머리 카드에만 읽기 전용 — 줄(쇼핑몰)별 자동 결과·이번주 실적·연결 배지·쇼핑몰 연결 메뉴는 폐지, 지난주 결과는 늘 직접 입력). 모든 열 너비 끌어서 조절(localStorage `pj_goal_col_w`), 세로 스크롤 틀 고정은 머리 줄+매출·로아스 줄까지, 항목 칸 +·우클릭으로 줄 위/아래 추가·삭제, 구분(구역) 칸 우클릭·⋯ = 구역 통째로 위/아래(`move-section`). 마감 알림(`reminders.py` 데몬 스레드, 영업일 09시, D-1/당일/지연, `task_reminders` 로 중복 방지, `PROJECT_REMINDER_*` env) — 마이그레이션 008. 라우터 핸들러는 동기 DB 라 `def` 로 둔다(`async def` 금지). 말풍선은 전부 아사나식 공용 말풍선(`.pj-hovertip`) — 새 기능도 `title=`/`data-tip=` 만 달고 별도 툴팁 구현 금지. 멤버 배정 후보는 `project` 권한 보유 등록 사용자에서 자동 목록(`GET /project/api/assignable-users`). 작업 배정·완료 시 관리자에게 메일(`app/mail.py` stdlib smtplib, `SMTP_*`+`PROJECT_NOTIFY_EMAIL` env, 미설정 시 조용히 skip, `BackgroundTasks` 비동기). 목표 표·회의록 칸 저장은 공용 `createFieldSaver`(같은 칸 요청 직렬화·보낸 값만 저장됨·실패 시 초안 유지·localStorage 초안 백업, 저장 실패면 구조 변경 중단 — docs/PROJECT_MODULE.md 6-9-3), 구역·항목 메뉴는 우클릭 + ⋮ 버튼(키보드·터치). ERP 메뉴 이름은 "Project"(`app/main.py` 모듈 목록 title). **PC 알림 프로그램**(`desktop/notifier/`, C# .NET Framework 4.8 WinForms exe 하나·트레이 상주, 마이그레이션 023 `notifier_links`·`notifier_tokens`) — 브라우저가 뒤에 있어도 태그·배정 알림을 웹 팝업과 같은 모양으로 화면 위에. 브라우저 `/project/notifier?code=` 승인으로 PC별 토큰(서버는 SHA-256 만, PC 는 DPAPI), `GET /project/api/notifier/alerts`(Bearer)는 웹 알림과 같은 `_alerts_payload`, 토큰마다 지금 사용자·권한 재확인. 프로그램이 돌고 있으면(최근 3분 확인, `notifier_active`) 웹 큰 팝업은 쉰다(`desktop: true`). 압축·난독화 금지(백신 오탐), 빌드 `desktop/notifier/build.ps1`, 상세 docs/PROJECT_MODULE.md 6-11. 댓글·답글 입력칸은 Enter 등록·Shift+Enter 줄바꿈(textarea), 설명란 이미지 더블클릭 = 별도 창 이미지 보기(확대·축소·끌어 이동). 작업 창은 **저장 버튼 없이 실시간 저장**(칸별 PUT, `saveField`/`saveChain`, 새 작업은 제목이 생기는 순간 생성). 댓글 답글·이모티콘 반응(마이그레이션 012 `task_comments.parent_id`·`task_comment_reactions`, 미적용 시 버튼 숨김·API 503), 완료 이력 줄은 `project_activity` completed 를 댓글 사이에 표시(댓글 수 제외), 댓글 `@아이디` 는 아이콘+이름 칩. 수신함은 확인 안 한 태그·읽지 않은 알림만(2026-10-08) — [확인] 버튼 없이 줄을 누르면 읽음·확인 처리(같은 작업 줄 함께) + 페이지 이동 없이 오른쪽 iframe 패널, 다른 줄을 고르거나 패널을 닫으면 그 줄은 목록에서 빠짐. 용어는 "세부 작업"(예전 하위 작업)·"메인 작업 추가". 패널(`/project/p/{pid}?task=&embed=1`, `html.pj-embed`). 상단 바 화면 배율 토글(`html.pj-ui-scale` → `.erp-app` zoom .75, 2880×1620·200%용) — **팝업은 반드시 `document.body` 에 붙인다**(배율 안의 fixed 좌표는 어긋남). 상세는 `docs/PROJECT_MODULE.md`
- 실적 (`app/modules/performance/`, `performance_db`) — 쇼핑몰 통합 매출. 네 영역 분리: ① 수집 `adapters/`(쇼핑몰 하나 = 어댑터 파일 하나 + `registry.py` 한 줄 + SQL seed 한 줄) + `sync.py`(공통 동기화, 같은 쇼핑몰 동시 실행 차단, 쇼핑몰별 실패 격리) ② 보안 `security/`(AES-256-GCM, 키 버전, 비밀값 가리기) + `credentials.py` ③ 계산 `calc.py`(주=월~일, 수수료 반올림은 `commission()` 한 곳, 요율 이력) + `db.py` ④ 화면 `dashboard.py`/`router.py`/템플릿. 쇼핑몰 API 인증정보는 `.env` 가 아니라 **설정 화면에서 입력 → 마스터 키 `APP_ENCRYPTION_KEY` 로 암호화해 DB 저장**, secret 원문은 화면으로 다시 보내지 않는다. 쇼핑몰 API 는 백엔드에서만 호출, 오류·로그·raw 는 `redact` 후 저장. 매출 기준일: 결제=결제일, 취소·반품=발생일(`sync.sales_date_for`). 금액은 원 단위 정수. 권한키 `performance`, 설정 화면은 모듈 권한자 누구나(일반 사용자는 수수료율만), 수수료 외 설정 API 는 `is_admin`. 매출 업데이트 진행 창에서 쇼핑몰별 [중지](그 쇼핑몰만 멈추고 다음 쇼핑몰로). 카페24 어댑터는 기존 `app/integrations/cafe24` 토큰 재사용. 1단계는 모의 데이터(`is_sample`)·구조까지, 실제 수집은 쇼핑몰별로 공식 문서 확인 후 순차 구현. 상세는 `docs/PERFORMANCE_MODULE.md`
diff --git a/app/modules/notice/templates/notice/admin.html b/app/modules/notice/templates/notice/admin.html
index 8980c64..ab9c63c 100644
--- a/app/modules/notice/templates/notice/admin.html
+++ b/app/modules/notice/templates/notice/admin.html
@@ -2,7 +2,7 @@
{% block head_extra %}
{# 프로젝트 화면 부품(설명 편집기·날짜 팝업·멤버 고르기)을 그대로 쓴다 — project.js 는 PJ_LIB_ONLY 로 부품만 #}
-
+
{% endblock %}
@@ -64,7 +64,7 @@
-
+
{% endif %}
{% endblock %}
diff --git a/app/modules/project/db.py b/app/modules/project/db.py
index 3d9f0dc..d6cc102 100644
--- a/app/modules/project/db.py
+++ b/app/modules/project/db.py
@@ -3349,9 +3349,26 @@ class ProjectStore:
conn.execute("UPDATE goal_meeting_items SET sort_order = %s WHERE id = %s", (n, x))
# ── 회의록 작업 등록 표(025) — 주차별 한 표, 모두가 같이 본다. [적용] 전 줄은 고치고, [적용]은 한 번만 ──
- _MT_COLS = ("id, week_start, parent_id, sort_order, title, assignee_email, project_id, stage_id, task_id, "
+ # 026 — 작업 칸(parent_task_id): 고르면 [적용] 때 그 작업의 세부 작업으로(비우면 그 섹션에 새 작업).
+ # 025 의 parent_id(표 안 줄끼리 세부 작업)는 화면에서 쓰지 않는다(열·값은 그대로, 읽기·쓰기 안 함).
+ _MT_BASE = ("id, week_start, sort_order, title, assignee_email, project_id, stage_id, task_id, "
"created_by, updated_by, created_at, updated_at")
+ def _mt_v26(self, conn: Any) -> bool:
+ """026(작업 칸 parent_task_id) 적용 여부 — 적용되면 한 번만 확인."""
+ if getattr(self, "_mt_v26_ok", False):
+ return True
+ ok = self._column_exists(conn, "goal_meeting_tasks", "parent_task_id")
+ if ok:
+ self._mt_v26_ok = True
+ return ok
+
+ def _mt_cols(self, conn: Any, prefix: str = "") -> str:
+ cols = [prefix + c.strip() for c in self._MT_BASE.split(",")]
+ if self._mt_v26(conn):
+ cols.append(prefix + "parent_task_id")
+ return ", ".join(cols)
+
def _mt_conn(self) -> Any:
return self._pool.connection()
@@ -3364,22 +3381,24 @@ class ProjectStore:
@staticmethod
def _mt_row(r: dict[str, Any]) -> dict[str, Any]:
- out = {k: r.get(k) for k in ("id", "parent_id", "sort_order", "title", "assignee_email", "project_id",
- "stage_id", "task_id", "created_by", "updated_by")}
- for k in ("id", "parent_id", "project_id", "stage_id", "task_id"):
+ out = {k: r.get(k) for k in ("id", "sort_order", "title", "assignee_email", "project_id",
+ "stage_id", "task_id", "parent_task_id", "created_by", "updated_by")}
+ for k in ("id", "project_id", "stage_id", "task_id", "parent_task_id"):
out[k] = int(out[k]) if out[k] is not None else None
out["week_start"] = r["week_start"].isoformat()
out["updated_at"] = r["updated_at"].astimezone(KST).isoformat(timespec="seconds") if r.get("updated_at") else ""
- for k in ("project_name", "project_status", "stage_name", "task_title", "task_project_id"):
+ for k in ("project_name", "project_status", "stage_name", "task_title", "task_project_id", "parent_task_title"):
if k in r:
out[k] = r[k]
if "task_exists" in r:
out["task_exists"] = bool(r["task_exists"])
return out
- def _mt_clean(self, conn: Any, fields: dict[str, Any], *, project_id: Any = ...) -> dict[str, Any]:
- """고칠 칸 정리 — title(200자)·assignee_email·project_id·stage_id(그 프로젝트 섹션). 프로젝트가 바뀌면 섹션을 비운다."""
+ def _mt_clean(self, conn: Any, fields: dict[str, Any], *, project_id: Any = None) -> dict[str, Any]:
+ """고칠 칸 정리 — title(200자)·assignee_email·project_id·stage_id(그 프로젝트 섹션)·parent_task_id(그 프로젝트 작업, 026).
+ 프로젝트가 바뀌면 섹션·작업을 비운다."""
clean: dict[str, Any] = {}
+ v26 = self._mt_v26(conn)
if "title" in fields:
t = store.norm_str(fields.get("title"))
if len(t) > 200:
@@ -3397,44 +3416,68 @@ class ProjectStore:
clean["project_id"] = pid
if "stage_id" not in fields:
clean["stage_id"] = None
+ if v26 and "parent_task_id" not in fields:
+ clean["parent_task_id"] = None
if "stage_id" in fields:
sid = fields.get("stage_id")
if sid in (None, ""):
clean["stage_id"] = None
else:
- if pid in (None, ...):
+ if pid is None:
raise ValueError("프로젝트를 먼저 고르세요.")
clean["stage_id"] = self._check_stage_in_project(conn, sid, int(pid))
+ if "parent_task_id" in fields:
+ if not v26:
+ raise store.MeetingParentTaskMigrationNeeded()
+ raw = fields.get("parent_task_id")
+ if raw in (None, ""):
+ clean["parent_task_id"] = None
+ else:
+ try:
+ tid = int(raw)
+ except (TypeError, ValueError):
+ raise ValueError("작업 값이 올바르지 않습니다.")
+ if pid is None:
+ raise ValueError("프로젝트를 먼저 고르세요.")
+ t = conn.execute("SELECT project_id FROM tasks WHERE id = %s", (tid,)).fetchone()
+ if t is None or int(t["project_id"]) != int(pid):
+ raise ValueError("이 프로젝트의 작업이 아닙니다.")
+ clean["parent_task_id"] = tid
return clean
+ def _mt_select(self, conn: Any, where: str, params: tuple[Any, ...]) -> list[dict[str, Any]]:
+ """줄 + 프로젝트·섹션·고른 작업 이름 + 만든 작업 존재 여부(목록·한 줄 응답 공용)."""
+ v26 = self._mt_v26(conn)
+ return conn.execute(
+ f"SELECT {self._mt_cols(conn, 'm.')}, "
+ " p.name AS project_name, p.status AS project_status, s.name AS stage_name, "
+ " t.title AS task_title, t.project_id AS task_project_id, (t.id IS NOT NULL) AS task_exists"
+ + (", pt.title AS parent_task_title " if v26 else " ") +
+ "FROM goal_meeting_tasks m "
+ "LEFT JOIN projects p ON p.id = m.project_id "
+ "LEFT JOIN project_stages s ON s.id = m.stage_id "
+ "LEFT JOIN tasks t ON t.id = m.task_id "
+ + ("LEFT JOIN tasks pt ON pt.id = m.parent_task_id " if v26 else "") +
+ f"WHERE {where} ORDER BY m.sort_order, m.id", params,
+ ).fetchall()
+
def list_meeting_tasks(self, *, week_start: date) -> list[dict[str, Any]]:
- """그 주차 표 — 순서대로(세부 작업 줄은 부모 바로 뒤에 화면이 묶는다). 프로젝트·섹션 이름·만든 작업 존재 여부를 붙인다."""
+ """그 주차 표 — 순서대로. 프로젝트·섹션·고른 작업 이름, 만든 작업 존재 여부를 붙인다."""
def run() -> list[dict[str, Any]]:
with self._mt_conn() as conn:
- rows = conn.execute(
- "SELECT m.id, m.week_start, m.parent_id, m.sort_order, m.title, m.assignee_email, m.project_id, "
- " m.stage_id, m.task_id, m.created_by, m.updated_by, m.created_at, m.updated_at, "
- " p.name AS project_name, p.status AS project_status, s.name AS stage_name, "
- " t.title AS task_title, t.project_id AS task_project_id, (t.id IS NOT NULL) AS task_exists "
- "FROM goal_meeting_tasks m "
- "LEFT JOIN projects p ON p.id = m.project_id "
- "LEFT JOIN project_stages s ON s.id = m.stage_id "
- "LEFT JOIN tasks t ON t.id = m.task_id "
- "WHERE m.week_start = %s ORDER BY m.sort_order, m.id", (week_start,),
- ).fetchall()
- return [self._mt_row(r) for r in rows]
+ return [self._mt_row(r) for r in self._mt_select(conn, "m.week_start = %s", (week_start,))]
return self._mt_call(run)
def get_meeting_task(self, *, item_id: int) -> dict[str, Any] | None:
def run() -> dict[str, Any] | None:
with self._mt_conn() as conn:
- r = conn.execute(f"SELECT {self._MT_COLS} FROM goal_meeting_tasks WHERE id = %s", (item_id,)).fetchone()
- return self._mt_row(r) if r else None
+ rows = self._mt_select(conn, "m.id = %s", (item_id,))
+ return self._mt_row(rows[0]) if rows else None
return self._mt_call(run)
def add_meeting_task(self, *, week_start: date, fields: dict[str, Any], by: str = "",
- parent_id: int | None = None, task_id: int | None = None) -> dict[str, Any]:
- """줄 추가(빈 줄도). parent_id = 세부 작업 줄(같은 주차 줄 밑). task_id = 예전 브라우저 표에서 옮겨 온 이미 등록된 줄."""
+ task_id: int | None = None) -> dict[str, Any]:
+ """줄 추가(빈 줄도). task_id = 예전 브라우저 표에서 옮겨 온 이미 등록된 줄."""
who = store.norm_str(by, lower=True)
def run() -> int:
@@ -3442,21 +3485,18 @@ class ProjectStore:
with conn.transaction():
self._check_meeting_open(conn, week_start)
clean = self._mt_clean(conn, fields)
- if parent_id is not None:
- par = conn.execute("SELECT week_start, parent_id FROM goal_meeting_tasks WHERE id = %s",
- (parent_id,)).fetchone()
- if par is None or par["week_start"] != week_start:
- raise ValueError("위 줄이 이 주차 표에 없습니다.")
- if par["parent_id"] is not None:
- raise ValueError("세부 작업 줄 밑으로는 넣을 수 없습니다(한 단계만).")
nxt = conn.execute("SELECT COALESCE(MAX(sort_order), -1) + 1 AS n FROM goal_meeting_tasks "
"WHERE week_start = %s", (week_start,)).fetchone()["n"]
+ cols = ["week_start", "sort_order", "title", "assignee_email", "project_id", "stage_id", "task_id",
+ "created_by", "updated_by"]
+ vals = [week_start, int(nxt), clean.get("title", ""), clean.get("assignee_email", ""),
+ clean.get("project_id"), clean.get("stage_id"), task_id, who, who]
+ if clean.get("parent_task_id") is not None:
+ cols.append("parent_task_id")
+ vals.append(clean["parent_task_id"])
return int(conn.execute(
- "INSERT INTO goal_meeting_tasks (week_start, parent_id, sort_order, title, assignee_email, "
- "project_id, stage_id, task_id, created_by, updated_by) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) "
- "RETURNING id",
- (week_start, parent_id, int(nxt), clean.get("title", ""), clean.get("assignee_email", ""),
- clean.get("project_id"), clean.get("stage_id"), task_id, who, who),
+ f"INSERT INTO goal_meeting_tasks ({', '.join(cols)}) VALUES ({', '.join(['%s'] * len(cols))}) "
+ "RETURNING id", vals,
).fetchone()["id"])
return self.get_meeting_task(item_id=self._mt_call(run)) # type: ignore[return-value]
@@ -3473,25 +3513,6 @@ class ProjectStore:
if row["task_id"] is not None:
raise store.GoalCellConflict("이미 [적용]해 작업으로 만든 줄입니다. 새로고침해 주세요.")
clean = self._mt_clean(conn, fields, project_id=row["project_id"])
- if "parent_id" in fields:
- # 세부 작업 줄로(Tab)·위 단계로(Shift+Tab) — 한 단계만: 위 줄은 같은 주차의 맨 위 단계 줄,
- # 자기 밑에 세부 작업 줄이 있는 줄은 세부 작업 줄이 될 수 없다.
- raw = fields.get("parent_id")
- try:
- pid = int(raw) if raw not in (None, "") else None
- except (TypeError, ValueError):
- raise ValueError("위 줄 값이 올바르지 않습니다.")
- if pid is not None:
- par = conn.execute("SELECT week_start, parent_id FROM goal_meeting_tasks WHERE id = %s",
- (pid,)).fetchone()
- if pid == item_id or par is None or par["week_start"] != row["week_start"]:
- raise ValueError("위 줄이 이 주차 표에 없습니다.")
- if par["parent_id"] is not None:
- raise ValueError("세부 작업 줄 밑으로는 넣을 수 없습니다(한 단계만).")
- if conn.execute("SELECT 1 FROM goal_meeting_tasks WHERE parent_id = %s LIMIT 1",
- (item_id,)).fetchone():
- raise ValueError("세부 작업 줄이 딸린 줄은 세부 작업이 될 수 없습니다.")
- clean["parent_id"] = pid
if not clean:
return
sets = ", ".join(f"{k} = %s" for k in clean)
@@ -3501,11 +3522,11 @@ class ProjectStore:
return self.get_meeting_task(item_id=item_id) # type: ignore[return-value]
def delete_meeting_task(self, *, item_id: int) -> dict[str, Any]:
- """줄 지우기(세부 작업 줄도 함께). 만든 작업은 라우터·화면이 따로 지운다(휴지통)."""
+ """줄 지우기. 만든 작업은 라우터·화면이 따로 지운다(휴지통)."""
def run() -> dict[str, Any]:
with self._mt_conn() as conn:
with conn.transaction():
- row = conn.execute(f"SELECT {self._MT_COLS} FROM goal_meeting_tasks WHERE id = %s FOR UPDATE",
+ row = conn.execute(f"SELECT {self._mt_cols(conn)} FROM goal_meeting_tasks WHERE id = %s FOR UPDATE",
(item_id,)).fetchone()
if row is None:
raise KeyError(item_id)
@@ -3515,28 +3536,26 @@ class ProjectStore:
return self._mt_call(run)
def apply_meeting_task(self, *, item_id: int, create: Any) -> tuple[dict[str, Any], bool]:
- """[적용] — 줄을 잠그고 아직 작업이 없을 때만 create(줄) 로 작업을 만들어 task_id 를 남긴다.
- (줄, 이번에 만들었는가). 두 사람이 동시에 눌러도 작업은 하나. create 가 실패하면 줄은 그대로."""
+ """[적용] — 줄을 잠그고 아직 작업이 없을 때만 create(줄, 상위 작업 id) 로 작업을 만들어 task_id 를 남긴다.
+ 작업 칸(parent_task_id)을 골랐으면 그 작업의 세부 작업으로(섹션 없이). (줄, 이번에 만들었는가).
+ 두 사람이 동시에 눌러도 작업은 하나. create 가 실패하면 줄은 그대로."""
def run() -> tuple[int, bool]:
with self._mt_conn() as conn:
with conn.transaction():
- row = conn.execute(f"SELECT {self._MT_COLS} FROM goal_meeting_tasks WHERE id = %s FOR UPDATE",
+ row = conn.execute(f"SELECT {self._mt_cols(conn)} FROM goal_meeting_tasks WHERE id = %s FOR UPDATE",
(item_id,)).fetchone()
if row is None:
raise KeyError(item_id)
self._check_meeting_open(conn, row["week_start"])
if row["task_id"] is not None:
return item_id, False
- parent_task = None
use = self._mt_row(row)
- if row["parent_id"] is not None:
- # 세부 작업 줄 — 위 줄이 만든 작업 밑에, 그 작업의 프로젝트로(줄의 프로젝트 칸은 쓰지 않는다)
- par = conn.execute("SELECT m.task_id, t.project_id FROM goal_meeting_tasks m "
- "LEFT JOIN tasks t ON t.id = m.task_id WHERE m.id = %s", (row["parent_id"],)).fetchone()
- parent_task = par["task_id"] if par else None
- if parent_task is None or par["project_id"] is None:
- raise ValueError("위 줄(상위 작업)을 먼저 [적용]하세요.")
- use = {**use, "project_id": int(par["project_id"]), "stage_id": None}
+ parent_task = use.get("parent_task_id")
+ if parent_task is not None:
+ t = conn.execute("SELECT project_id FROM tasks WHERE id = %s", (parent_task,)).fetchone()
+ if t is None or use["project_id"] is None or int(t["project_id"]) != int(use["project_id"]):
+ raise ValueError("고른 작업이 없어졌거나 다른 프로젝트로 옮겨졌습니다. 작업 칸을 다시 고르세요.")
+ use = {**use, "stage_id": None}
task = create(use, parent_task)
conn.execute("UPDATE goal_meeting_tasks SET task_id = %s, updated_at = now() WHERE id = %s",
(int(task["id"]), item_id))
diff --git a/app/modules/project/router.py b/app/modules/project/router.py
index f59afbb..e6c9900 100644
--- a/app/modules/project/router.py
+++ b/app/modules/project/router.py
@@ -2956,6 +2956,8 @@ def _goal_call(fn: Any, *args: Any, **kwargs: Any) -> Any:
raise HTTPException(status_code=409, detail="회의가 완료되어 수정할 수 없습니다. 관리자가 [완료 해제]하면 다시 고칠 수 있습니다.")
except store.MeetingMigration022Needed:
raise HTTPException(status_code=503, detail="회의 완료 기능은 project_db 마이그레이션 022 적용 후 사용할 수 있습니다.")
+ except store.MeetingParentTaskMigrationNeeded:
+ raise HTTPException(status_code=503, detail="작업 칸(이미 있는 작업의 세부 작업으로 등록)은 project_db 마이그레이션 026 적용 후 사용할 수 있습니다.")
except store.MeetingTaskMigrationNeeded:
raise HTTPException(status_code=503, detail="작업 등록 표(모두가 같이 보는 주차별 표)는 project_db 마이그레이션 025 적용 후 사용할 수 있습니다.")
except store.MeetingMigration020Needed:
@@ -3763,13 +3765,13 @@ def _quick_view(st: Any, user: dict[str, Any], rows: list[dict[str, Any]]) -> li
r = dict(r, visible=ok, registered=r.get("task_id") is not None) # 등록됨 여부는 누구에게나(작업 내용은 멤버만)
if not ok:
r.update(project_name="(볼 수 없는 프로젝트)", stage_name="", task_title="", task_id=None,
- task_project_id=None)
+ task_project_id=None, parent_task_id=None, parent_task_title="")
out.append(r)
return out
def _quick_fields(st: Any, user: dict[str, Any], payload: dict[str, Any]) -> dict[str, Any]:
- fields = {k: payload[k] for k in ("title", "assignee_email", "project_id", "stage_id") if k in payload}
+ fields = {k: payload[k] for k in ("title", "assignee_email", "project_id", "stage_id", "parent_task_id") if k in payload}
pid = fields.get("project_id")
if pid not in (None, ""):
try:
@@ -3792,16 +3794,12 @@ def api_list_quick_tasks(request: Request, week_start: str) -> JSONResponse:
@router.post("/api/goals/meetings/{week_start}/quick-tasks")
def api_add_quick_task(request: Request, week_start: str, payload: dict[str, Any] = Body(default={})) -> JSONResponse:
- """줄 추가 {title?, assignee_email?, project_id?, stage_id?, parent_id?(세부 작업 줄), task_id?(예전 브라우저 표의 등록된 줄)}."""
+ """줄 추가 {title?, assignee_email?, project_id?, stage_id?, parent_task_id?(작업 칸 — 그 작업의 세부 작업으로),
+ task_id?(예전 브라우저 표의 등록된 줄)}."""
user = _require_user(request)
st = _db_or_503(request)
ws = _goal_call(store.validate_week_start, week_start)
fields = _quick_fields(st, user, payload)
- parent = payload.get("parent_id")
- try:
- parent_id = int(parent) if parent not in (None, "") else None
- except (TypeError, ValueError):
- raise HTTPException(status_code=400, detail="parent_id 가 올바르지 않습니다.")
task_id = None
if payload.get("task_id") not in (None, ""):
# 옮겨 오는 등록된 줄 — 그 작업을 지금 내가 원 소속으로 다룰 수 있을 때만 이어 붙인다(남의 작업 id 를 끌어오지 못하게)
@@ -3811,8 +3809,7 @@ def api_add_quick_task(request: Request, week_start: str, payload: dict[str, Any
t = None
if t is not None and access.task_access(st, user, t) == access.FULL:
task_id = int(t["id"])
- row = _goal_call(st.add_meeting_task, week_start=ws, fields=fields, by=user["email"],
- parent_id=parent_id, task_id=task_id)
+ row = _goal_call(st.add_meeting_task, week_start=ws, fields=fields, by=user["email"], task_id=task_id)
return JSONResponse({"task": _quick_view(st, user, [row])[0]}, status_code=201)
@@ -3821,8 +3818,6 @@ def api_update_quick_task(request: Request, item_id: int, payload: dict[str, Any
user = _require_user(request)
st = _db_or_503(request)
fields = _quick_fields(st, user, payload)
- if "parent_id" in payload: # 세부 작업 줄로(Tab)·위 단계로(Shift+Tab) — 한 단계만(저장소가 검사)
- fields["parent_id"] = payload["parent_id"]
row = _goal_call(st.update_meeting_task, item_id=item_id, fields=fields, by=user["email"])
return JSONResponse({"task": _quick_view(st, user, [row])[0]})
@@ -3848,6 +3843,7 @@ def api_apply_quick_task(request: Request, item_id: int, bg: BackgroundTasks) ->
if row["project_id"] is None:
raise ValueError("프로젝트를 고르세요.")
rec = access.default_user_lookup(row["assignee_email"]) if row["assignee_email"] else None
+ # 작업 칸을 골랐으면 그 작업의 세부 작업(섹션 없음) — _create_task_for 가 프로젝트 멤버를, create_task 가 같은 프로젝트를 확인
payload = {"title": row["title"].strip(), "stage_id": None if parent_task_id else row["stage_id"],
"assignee_email": row["assignee_email"],
"assignee_name": (rec or {}).get("name") or (row["assignee_email"].split("@")[0] if row["assignee_email"] else ""),
diff --git a/app/modules/project/store.py b/app/modules/project/store.py
index 5ffbfc7..79498e2 100644
--- a/app/modules/project/store.py
+++ b/app/modules/project/store.py
@@ -435,6 +435,10 @@ class MeetingTaskMigrationNeeded(RuntimeError):
"""회의록 작업 등록 표(서버 저장)는 마이그레이션 025 뒤에만 된다."""
+class MeetingParentTaskMigrationNeeded(RuntimeError):
+ """작업 등록 표의 작업 칸(이미 있는 작업의 세부 작업으로)은 마이그레이션 026 뒤에만 된다."""
+
+
class MeetingMigration020Needed(RuntimeError):
"""새 주차(월요일이 아닌 시작일)·결과 글 칸·주차별 목표는 마이그레이션 020 뒤에만 된다."""
diff --git a/app/modules/project/templates/project/goal_meeting.html b/app/modules/project/templates/project/goal_meeting.html
index 4ade42f..e723bd2 100644
--- a/app/modules/project/templates/project/goal_meeting.html
+++ b/app/modules/project/templates/project/goal_meeting.html
@@ -1,7 +1,7 @@
{% extends "project/_meeting_content_base.html" if meeting_embedded else "erp_base.html" %}
{% block head_extra %}
-
+
{% endblock %}
@@ -119,11 +119,11 @@
{# 작업 등록 — 주차마다 한 표를 서버에(025, 모두가 같은 표 — project.js initMeetQuickTasks). 제목 = "N주차 작업 등록", 회의 완료면 읽기 전용 #}
{% set qw = weeks | selectattr("start", "equalto", week) | first %}
-
{% if week_n %}{{ week_n }}주차 {% endif %}작업 등록 제목 → 담당자·프로젝트·섹션 → [적용] · ↳ 또는 Tab = 세부 작업
+
{% if week_n %}{{ week_n }}주차 {% endif %}작업 등록 제목 → 담당자·프로젝트·섹션·작업 → [적용]
제목 아래 세 칸은 표를 스크롤해도 그대로 보입니다. 왼쪽은 월 계획이고 그 머리 줄 오른쪽에 숫자 4개(월 목표 · 누적 목표 · 누적 실적 · 목표 대비)가 작게 한 줄로 나옵니다(목표 표 매출 단위, 예: 백만원 — 숫자에 마우스를 올리면 원 단위 금액과 뜻). 가운데는 결정사항(진행상황 수시 공유 및 완료 되어야 할 것), 오른쪽은 작업 등록 표입니다.
작업 등록(제목에 N주차 작업 등록) — 주차마다 한 표를 모두가 같이 봅니다(다른 사람이 적거나 등록한 줄도 보임, 30초마다·창을 다시 볼 때 새로 읽음). 내가 멤버가 아닌 프로젝트를 고른 남의 줄은 프로젝트 이름을 가립니다. 회의 완료면 읽기 전용입니다.
- 세부 작업 — 줄에 마우스를 올리면 나오는 ↳(또는 우클릭 → 세부 작업 추가)로 바로 아래에 세부 작업 줄을 만듭니다. 제목 칸에서 Tab = 위 줄의 세부 작업으로, Shift+Tab = 다시 위 단계로(한 단계만). 세부 작업 줄은 위 줄의 프로젝트를 따르고 섹션이 없으며, 위 줄을 [적용]한 뒤 [적용]하면 그 작업의 세부 작업이 됩니다.
+ 작업 칸 — 비워 두면 고른 섹션에 새 작업으로, 작업을 고르면 그 작업의 세부 작업으로 등록합니다(목록 = 그 섹션의 진행 중인 메인 작업, 고르면 섹션 칸은 —). 등록된 줄의 제목을 누르면 오른쪽에 작업 창이 열려 바로 편집할 수 있습니다(작업 창에서 저장이 끝나야 닫히거나 다른 작업으로 바뀝니다).
크게 열기 — 같은 표를 넓은 창으로 열어 씁니다(줄·저장은 그대로, Esc·×로 닫기). 제목 칸에 작업 이름을 씁니다. 담당자·프로젝트·섹션 칸을 누르면 고를 수 있는 목록이 나옵니다(완료 프로젝트·완료 섹션은 목록에 나오지 않습니다). 목록 맨 위 새 프로젝트(Pro user 이상)·새 섹션(그 프로젝트 멤버)을 누르면 이름만 적어 바로 만들고 그 칸에 골라집니다. 새 프로젝트는 섹션 없이 시작하니 섹션 칸에서 새 섹션을 만들어 고르세요.
프로젝트는 내가 멤버인 프로젝트만 나오고, 고르면 첫 섹션이 자동으로 들어갑니다. 담당자는 그 프로젝트의 멤버·소유자 중에서 고릅니다(프로젝트를 먼저 고르면 정확합니다).
맨 오른쪽 적용을 누르면 그 프로젝트에 작업이 만들어지고, 줄에 등록됨 링크가 생깁니다. 줄은 이 브라우저에 남아 있어 새로고침해도 사라지지 않습니다. + 줄 추가로 줄을 늘립니다.
diff --git a/app/modules/project/templates/project/inbox.html b/app/modules/project/templates/project/inbox.html
index a7ec16b..33794b8 100644
--- a/app/modules/project/templates/project/inbox.html
+++ b/app/modules/project/templates/project/inbox.html
@@ -1,7 +1,7 @@
{% extends "erp_base.html" %}
{% block head_extra %}
-
+
{% endblock %}
@@ -101,5 +101,5 @@
{% include "project/_side_modals.html" %}
{% include "project/_member_tasks_modal.html" %}
-
+
{% endblock %}
diff --git a/app/modules/project/templates/project/mytasks.html b/app/modules/project/templates/project/mytasks.html
index fd26706..81b2782 100644
--- a/app/modules/project/templates/project/mytasks.html
+++ b/app/modules/project/templates/project/mytasks.html
@@ -1,7 +1,7 @@
{% extends "erp_base.html" %}
{% block head_extra %}
-
+
{% endblock %}
@@ -100,5 +100,5 @@
"today": {{ today | tojson }}
}
-
+
{% endblock %}
diff --git a/app/modules/project/templates/project/notifier.html b/app/modules/project/templates/project/notifier.html
index deb521c..a7c9610 100644
--- a/app/modules/project/templates/project/notifier.html
+++ b/app/modules/project/templates/project/notifier.html
@@ -1,7 +1,7 @@
{% extends "erp_base.html" %}
{% block head_extra %}
-
+
{% endblock %}
@@ -108,5 +108,5 @@
});
})();
-
+
{% endblock %}
diff --git a/app/modules/project/templates/project/project.html b/app/modules/project/templates/project/project.html
index d029d35..40cc4fc 100644
--- a/app/modules/project/templates/project/project.html
+++ b/app/modules/project/templates/project/project.html
@@ -1,7 +1,7 @@
{% extends "erp_base.html" %}
{% block head_extra %}
-
+
@@ -468,5 +468,5 @@
-
+
{% endblock %}
diff --git a/app/modules/project/templates/project/trash.html b/app/modules/project/templates/project/trash.html
index f974887..09ecfeb 100644
--- a/app/modules/project/templates/project/trash.html
+++ b/app/modules/project/templates/project/trash.html
@@ -1,7 +1,7 @@
{% extends "erp_base.html" %}
{% block head_extra %}
-
+
{% endblock %}
@@ -70,5 +70,5 @@
{% include "project/_side_modals.html" %}
{% include "project/_member_tasks_modal.html" %}
-
+
{% endblock %}
diff --git a/app/static/project.css b/app/static/project.css
index 22170e3..61f8953 100644
--- a/app/static/project.css
+++ b/app/static/project.css
@@ -2549,11 +2549,13 @@ html.pj-goal-selecting, html.pj-goal-selecting * { user-select: none !important;
}
.pj-ctxmenu-ic .pj-meet-quick-face { width: 20px; height: 20px; }
.pj-member-pick.is-owner { opacity: .75; }
-.pj-meet-quick-table th:nth-child(1) { width: 30%; }
-.pj-meet-quick-table th:nth-child(2) { width: 17%; }
-.pj-meet-quick-table th:nth-child(3) { width: 19%; }
-.pj-meet-quick-table th:nth-child(4) { width: 15%; }
-.pj-meet-quick-table th:nth-child(5) { width: 19%; }
+/* 제목·담당자·프로젝트·섹션·작업(세부 작업으로 넣을 작업)·버튼 */
+.pj-meet-quick-table th:nth-child(1) { width: 24%; }
+.pj-meet-quick-table th:nth-child(2) { width: 15%; }
+.pj-meet-quick-table th:nth-child(3) { width: 15%; }
+.pj-meet-quick-table th:nth-child(4) { width: 12%; }
+.pj-meet-quick-table th:nth-child(5) { width: 15%; }
+.pj-meet-quick-table th:nth-child(6) { width: 19%; }
.pj-meet-quick-acts { white-space: nowrap; text-align: right; }
.pj-meet-quick-del {
display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-left: 4px; vertical-align: middle;
@@ -3057,21 +3059,15 @@ html[data-pj-font="nanum-square-round"] { --pj-font: "NanumSquareRound", var(--p
/* 회의록 작업 등록 — 제목 앞 주차(N주차 작업 등록, 주차마다 따로 기억) */
.pj-meet-quick-week { color: var(--pj-accent); }
.pj-meet-quick-note { padding: 10px 8px; color: #8a9099; font-size: 12.5px; }
-/* 작업 등록 — 세부 작업 줄(↳ 들여쓰기)·줄 위 ↳ 추가 버튼·[크게 열기] 창(같은 표를 옮겨 쓴다) */
+/* 작업 등록 — [크게 열기] 창(같은 표를 옮겨 쓴다)·등록된 제목(누르면 오른쪽 작업 창) */
.pj-meet-quick h3 { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.pj-meet-quick-expand { margin-left: auto; order: 2; display: inline-flex; align-items: center; gap: 3px; }
.pj-meet-quick h3 small { order: 3; flex-basis: 100%; margin-left: 0; } /* 한 줄: 제목 + [크게 열기], 그 아래 안내 */
.pj-meet-quick-expand .material-symbols-outlined { font-size: 15px; }
-.pj-meet-quick-title { position: relative; }
-.pj-meet-quick-table tr.is-sub .pj-meet-quick-title { padding-left: 20px; }
-.pj-meet-quick-submark { position: absolute; left: 6px; top: 50%; transform: translateY(-50%); color: #9aa1a9; font-size: 13px; pointer-events: none; }
-.pj-meet-quick-addsub {
- position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; padding: 0;
- display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--pj-border, #e3e5e8); border-radius: 5px;
- background: #fff; color: var(--pj-ink-soft); cursor: pointer; opacity: 0; transition: opacity .12s;
-}
-.pj-meet-quick-addsub .material-symbols-outlined { font-size: 15px; }
-.pj-meet-quick-table tr:hover .pj-meet-quick-addsub, .pj-meet-quick-addsub:focus { opacity: 1; }
+.pj-meet-quick-open { display: block; width: 100%; padding: 2px 6px; border: none; background: none; text-align: left; font: inherit;
+ color: var(--pj-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; border-radius: 5px; }
+button.pj-meet-quick-open:hover { background: #f1f3f5; color: var(--pj-accent-dark, #2f5bb7); text-decoration: underline; }
+.pj-meet-quick-open.is-plain { cursor: default; color: var(--pj-ink-soft); }
.pj-meet-quick-inherit { display: block; padding: 0 4px; color: #9aa1a9; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.pj-meet-quick-modal { position: fixed; inset: 0; z-index: 2100; /* 고르기 메뉴(.pj-ctxmenu 2200)가 그 위에 */ display: flex; align-items: center; justify-content: center;
padding: 16px; box-sizing: border-box; background: rgba(15, 17, 21, .4); }
diff --git a/app/static/project.js b/app/static/project.js
index 9e9a303..9a95280 100644
--- a/app/static/project.js
+++ b/app/static/project.js
@@ -10667,8 +10667,8 @@
// · 등록된 줄의 [삭제] = 확인 뒤 그 작업도 삭제(휴지통 3개월), 적용 전 줄의 × = 줄만 지움.
// · 30초마다·창을 다시 볼 때 다시 읽는다(입력 중·저장 중엔 건너뜀). 회의 완료면 읽기 전용.
// · 이 브라우저에 남은 예전 표(pj_meet_quick:…)는 처음 열 때 서버로 한 번 옮기고 지운다.
- // · 세부 작업 줄(한 단계, 서버 parent_id) — ↳ 버튼·우클릭으로 추가, 제목 칸 Tab = 위 줄의 세부 작업으로, Shift+Tab = 위 단계로.
- // 프로젝트는 위 줄을 따르고 섹션은 없다. [적용]은 위 줄이 먼저(서버가 위 줄 작업 밑에 세부 작업으로 만든다).
+ // · 작업 칸(026 parent_task_id) — 비우면 그 섹션에 새 작업, 이미 있는 작업을 고르면 [적용] 때 그 작업의 세부 작업으로(섹션 없음).
+ // · 등록된 줄의 제목을 누르면 오른쪽에 작업 창(편집, 수신함과 같은 iframe·저장 대기).
// · [크게 열기] — 같은 표를 넓은 창으로 옮겨 쓴다(줄·저장 그대로), 닫으면 제자리.
function initMeetQuickTasks() {
const box = el("pj-meet-quick");
@@ -10693,41 +10693,26 @@
return url ? ''
: '' + escapeHtml(nameOf(email).slice(0, 1)) + "";
};
- const blank = function (parent) {
+ const blank = function () {
return { id: null, title: "", assignee: "", projectId: null, projectName: "", stageId: null, stageName: "",
- taskId: null, registered: false, visible: true, taskExists: true, chain: null,
- parentId: parent && parent.id ? parent.id : null, parentRef: parent || null };
+ parentTaskId: null, parentTaskTitle: "", taskId: null, registered: false, visible: true, taskExists: true, chain: null };
};
function fromServer(t) {
return { id: t.id, title: t.title || "", assignee: t.assignee_email || "", projectId: t.project_id,
- projectName: t.project_name || "", stageId: t.stage_id, stageName: t.stage_name || "", taskId: t.task_id,
- registered: !!t.registered, visible: t.visible !== false, taskExists: t.task_exists !== false, chain: null,
- parentId: t.parent_id || null, parentRef: null };
+ projectName: t.project_name || "", stageId: t.stage_id, stageName: t.stage_name || "",
+ parentTaskId: t.parent_task_id || null, parentTaskTitle: t.parent_task_title || "", taskId: t.task_id,
+ registered: !!t.registered, visible: t.visible !== false, taskExists: t.task_exists !== false, chain: null };
}
let rows = [];
let ready = false, unavailable = "";
- // 세부 작업 줄(한 단계) — 위 줄 = parentRef(아직 서버에 없는 줄) 또는 parentId
- function parentOf(r) {
- if (r.parentRef && rows.indexOf(r.parentRef) >= 0) return r.parentRef;
- if (r.parentId) return rows.find(function (x) { return x.id === r.parentId; }) || null;
- return null;
- }
- function childrenOf(p) { return rows.filter(function (x) { return parentOf(x) === p; }); }
- // 화면 순서 = 맨 위 단계 줄(지금 순서) 바로 뒤에 그 세부 작업 줄들
- function reorder() {
- const tops = rows.filter(function (r) { return !parentOf(r); });
- const out = [];
- tops.forEach(function (t) { out.push(t); childrenOf(t).forEach(function (c) { out.push(c); }); });
- rows = out;
- }
function padBlank() {
if (locked) return;
- const open = rows.filter(function (r) { return !r.registered && !parentOf(r); }).length;
+ const open = rows.filter(function (r) { return !r.registered; }).length;
for (let i = open; i < 3; i++) rows.push(blank());
}
let projects = null;
- const memberCache = {}, stageCache = {};
+ const memberCache = {}, stageCache = {}, taskCache = {};
async function loadProjects() {
if (projects) return projects;
const res = await api("GET", "/project/api/projects");
@@ -10750,26 +10735,27 @@
stageCache[pid] = (res.stages || []).slice().sort(function (a, b) { return a.sort_order - b.sort_order; });
return stageCache[pid];
}
+ // 작업 칸 후보 — 그 프로젝트의 (그 섹션) 미완료 메인 작업. 고르면 [적용] 때 그 작업의 세부 작업으로 만든다.
+ async function tasksOf(pid) {
+ if (taskCache[pid]) return taskCache[pid];
+ const res = await api("GET", "/project/api/projects/" + pid + "/tasks");
+ taskCache[pid] = (res.tasks || []).filter(function (t) { return t.project_id === pid && !t.completed_at && !t.parent_task_id; });
+ return taskCache[pid];
+ }
- // ── 저장 — 줄마다 차례대로. 서버에 없는 줄은 처음 채울 때 만든다(지금 칸 전부 + 위 줄을 보낸다 — 위 줄도 없으면 먼저) ──
+ // ── 저장 — 줄마다 차례대로. 서버에 없는 줄은 처음 채울 때 만든다(지금 칸 전부를 보낸다) ──
let pendingSaves = 0;
function persist(r, patch) {
pendingSaves++;
const run = async function () {
- const par = parentOf(r);
- if (par && !par.id) await persist(par, {});
- if (par && !par.id) throw new Error("위 줄을 저장하지 못했습니다");
if (!r.id) {
const res = await api("POST", listUrl, {
- title: r.title, assignee_email: r.assignee, project_id: par ? null : r.projectId,
- stage_id: par ? null : r.stageId, parent_id: par ? par.id : null,
+ title: r.title, assignee_email: r.assignee, project_id: r.projectId, stage_id: r.stageId,
+ parent_task_id: r.parentTaskId,
});
r.id = res.task.id;
- r.parentId = par ? par.id : null; r.parentRef = null;
} else {
- if (patch && Object.prototype.hasOwnProperty.call(patch, "parent_id") && patch.parent_id === undefined) patch.parent_id = par ? par.id : null;
await api("PUT", rowUrl(r.id), patch);
- if (patch && Object.prototype.hasOwnProperty.call(patch, "parent_id")) { r.parentId = patch.parent_id; r.parentRef = null; }
}
};
r.chain = (r.chain || Promise.resolve()).then(run).catch(function (e) {
@@ -10778,24 +10764,22 @@
}).finally(function () { pendingSaves--; });
return r.chain;
}
- function cell(kind, text, placeholder, disabled, extra) {
- return '";
+ function cell(kind, text, placeholder, disabled, title) {
+ return '";
}
function render() {
if (unavailable) {
- tbody.innerHTML = '
' + escapeHtml(unavailable) + "
";
+ tbody.innerHTML = '
' + escapeHtml(unavailable) + "
";
return;
}
- reorder();
tbody.innerHTML = rows.map(function (r, i) {
- const par = parentOf(r);
const ro = locked || r.registered;
let acts;
if (r.registered) {
const label = !r.taskExists ? "작업 삭제됨" : "등록됨";
const link = r.visible && r.taskId && r.taskExists
- ? '' + label + "" : "" + label + "";
+ ? '' + label + "" : "" + label + "";
acts = 'check_circle' +
link + "" + (!locked && r.visible
? '" +
+ acts = '' +
'';
}
- // 세부 작업 줄 — ↳ 들여쓰기, 프로젝트는 위 줄을 따르고 섹션은 없다(작업의 세부 작업)
- const projCell = par
- ? '' + escapeHtml(par.projectName || "위 줄 따름") + ""
- : cell("project", r.projectName, "프로젝트", ro);
- const stageCell = par ? '—' : cell("stage", r.stageName, "섹션", ro);
- const addSub = !par && !locked && r.visible
- ? '' : "";
- return '
' +
- '
' + (par ? '↳' : "") +
- '" + addSub + "
" +
+ // 제목 — 등록된 줄은 누르면 오른쪽에 작업 창(편집), 아니면 입력칸
+ const titleCell = r.registered
+ ? (r.visible && r.taskId && r.taskExists
+ ? '"
+ : '' + escapeHtml(r.title || "(제목 없음)") + "")
+ : '";
+ // 작업 칸 — 비우면 그 섹션에 새 작업, 고르면 그 작업의 세부 작업(↳ 표시)
+ const taskCell = r.parentTaskId
+ ? cell("task", "↳ " + (r.parentTaskTitle || "작업"), "", ro, "이 작업의 세부 작업으로 등록")
+ : cell("task", "", r.registered ? "—" : "새 작업", ro || !r.projectId, r.projectId ? "고르면 그 작업의 세부 작업으로 등록(비우면 섹션에 새 작업)" : "프로젝트를 먼저 고르세요");
+ return '