Skip to content

[#557] 위젯을 새로운 피쳐 모듈 기반으로 분리한다#560

Merged
opficdev merged 6 commits into
developfrom
chore/#557-widget
Jun 8, 2026
Merged

[#557] 위젯을 새로운 피쳐 모듈 기반으로 분리한다#560
opficdev merged 6 commits into
developfrom
chore/#557-widget

Conversation

@opficdev

@opficdev opficdev commented Jun 8, 2026

Copy link
Copy Markdown
Owner

🔗 연관된 이슈

🎯 의도

  • 위젯 동기화 관련 파일이 DevLogData, DevLogApp에 나뉘어 있어 모듈 책임이 흐려진 상태였음
  • 앱-위젯 브릿지 역할을 별도 DevLogWidget 모듈로 분리하고, 위젯 동기화 구현체와 핸들러를 해당 모듈에서 소유하도록 정리

📝 작업 내용

📌 요약

  • DevLogWidget 모듈 추가
  • 위젯 동기화 handler / bus 구현체를 DevLogWidget으로 이동
  • WidgetSyncEvent, WidgetSyncEventBus protocol은 Data boundary에 유지
  • 위젯 snapshot 조회용 Data adapter 추가
  • CI에 DevLogWidget 테스트 scheme 추가
  • README 아키텍처 이미지를 Tuist graph 기반 이미지로 갱신

🔍 상세

  • WidgetSyncEventBusImpl, WidgetSyncEventHandler, WidgetSessionSyncHandlerDevLogWidget으로 이동
  • WidgetAssembler를 추가해 위젯 동기화 bus 구현체와 handler 조립 책임을 DevLogWidget으로 이동
  • DevLogWidget target 의존성을 DevLogCore, DevLogData로 제한
  • WidgetTodoSnapshotRepository와 구현체를 추가해 DevLogWidget이 Domain repository를 직접 참조하지 않도록 adapter 구성
  • AppAssembler에서 WidgetAssemblerDataAssembler보다 먼저 조립하도록 구성
  • AppLayerAssembler에서 위젯 handler 등록 책임 제거
  • .github/workflows/ci.ymlDevLogWidget scheme 테스트 추가
  • README의 아키텍처 이미지를 docs/graph.png 기반 Tuist 모듈 그래프로 교체

📸 영상 / 이미지 (Optional)

@opficdev opficdev self-assigned this Jun 8, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

이번 풀 리퀘스트는 앱과 위젯 간의 브릿지 및 동기화 처리를 담당하는 DevLogWidget 프레임워크를 신설하고 관련 로직을 이관하는 변경 사항을 담고 있습니다. 이를 위해 WidgetTodoSnapshotRepository를 추가하여 위젯용 데이터를 조회하도록 개선하였으며, 관련 테스트 코드도 함께 작성되었습니다. 리뷰 의견으로는 테스트 환경의 시스템 달력 설정에 영향을 받지 않고 일관된 결과를 보장할 수 있도록 WidgetSyncEventHandlerTests에서 Calendar.current 대신 Calendar(identifier: .gregorian)을 사용할 것을 제안했습니다.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@opficdev opficdev merged commit b2ffa27 into develop Jun 8, 2026
5 checks passed
@opficdev opficdev deleted the chore/#557-widget branch June 8, 2026 15:18
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