Skip to content

Store report format per mode - #7

Closed
Peace-Min wants to merge 2 commits into
mainfrom
codex/report-format-per-mode
Closed

Store report format per mode#7
Peace-Min wants to merge 2 commits into
mainfrom
codex/report-format-per-mode

Conversation

@Peace-Min

Copy link
Copy Markdown
Owner

Summary

  • Store report marker/custom marker/indent separately for daily and weekly report flows
  • Preserve legacy report prefs while adding daily/weekly XML prefs
  • Add tests for independent daily/weekly formatting and XML roundtrip

Tests

  • npm.cmd test
  • dotnet build widget\TaskCalendarWidget.csproj

@Peace-Min

Copy link
Copy Markdown
Owner Author

내용을 현재 main에 반영 완료(재구현, 커밋 44bc84d — 보고서 서식 모드별 저장). 병합 대신 재반영했습니다. 감사합니다.

@Peace-Min Peace-Min closed this Jul 15, 2026
Peace-Min added a commit that referenced this pull request Jul 15, 2026
Codex PR#9(codex/report-descriptions-options)의 고유 기능만 현재 main에 재구현
(#9는 #7 위에 스택 → reportFormatPrefs 중복분은 제외, git diff pr7..pr9로 격리).
- #rptWithDesc('설명 포함', 기본 ON): 일정 메모·할일 노트를 보고서 항목 제목 아래 설명 라인으로
- #rptSkipEmpty('내용 없는 항목 제외', 기본 OFF): 설명 없는 일정/할일 제외(공수·버킷 포함)
- 3개 렌더 경로(buildReport 미리보기·buildReportText 복사·buildWeeklyFields.endwork)에 일관 적용
- CSS .rtask-main/.rtask-desc(테마 변수 → 다크 자동), 기존 .rtask-body 보존

커밋 본문 회귀 방지(핵심): git 커밋 본문(gitCommitBody→m.body→.rtask-body) 채널을 3경로 모두
보존하고 details를 '공존' 렌더 — git pushTitle의 body 인자 유지. #9 원본이 body를 몰라 details만
넣던 것을 body+details 병존으로 손병합.

게이트: 테스트 150 pass(148→+2) · 빌드 0/0 · 브라우저 실증(커밋 본문+일정 설명 동시 렌더,
설명 OFF 시 메모만 사라지고 커밋 본문 유지=독립 채널 확인) · 회귀(커밋내역 본문·buildReport ON→
.rtask-body·reportFormatPrefs·dayNotes) 전부 유지

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Peace-Min added a commit that referenced this pull request Jul 15, 2026
#7(서식 모드별 저장)과 동일 패턴을 포함 항목 선택에도 적용. localStorage tc_rptSources를
단일 객체 → {daily,weekly}로 확장(reportFormatKeyForMode 재사용, custom=weekly).
- loadRptSourcePrefs/applyRptSourcePrefs/saveRptSourcePrefs 추가
- 저장: buildReport 시 현재 보고 유형 키에 기록(다른 모드값 보존)
- 복원: setReportMode에서 applyRptSourcePrefs로 모드별 복원(openReport 단일 복원 제거)
- 하위호환: 구 단일 포맷 → 일간·주간 양쪽 이관

게이트: 테스트 162→163 pass(모드별 캐싱+구포맷 이관 신규) · 빌드 0/0 · 브라우저 실증
(일간 커밋OFF↔주간 커밋ON 독립 유지, 모드 왕복 시 각자 복원).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant