Skip to content

refactor(mindrecord): 화면 no-op 콜백 31건 — #1540 에서 MVI 재작성분 분리 #1820

Open

Description

@OnlyReadOneBook

작업 유형

refactor — 동작 변경 없는 구조·책임·경계 개선

주 담당 모듈

mindrecord — 마음의 기록

개요

#1540(no-op 콜백 디폴트 50건 청소) 중 화면 컴포저블 31건을 분리한다. MVI 전환(#1807)이 화면 시그니처를 Content(state, onIntent) 로 바꾸면서 이 콜백들을 없애기 때문이다. #1540 은 리프 컴포넌트 19건으로 지금 진행할 수 있다.

왜 분리하는가

MVI 전환 후 화면 컴포저블은 콜백 파라미터 대신 onIntent: (Intent) -> Unit 하나를 받는다. 지금 화면 31건의 디폴트를 지워도 그 파라미터 자체가 사라진다 — 청소한 자리가 없어진다. 리프 컴포넌트는 계속 콜백을 받으므로 영향이 없다.

이 이슈가 가져가는 화면 31건 (#1540 에서 이관)

파일 건수
screen/sender/DiaryWriteScreen.kt 11
screen/sender/DailyQuestionWriteScreen.kt 9
screen/sender/DraftListScreen.kt 3
screen/sender/DailyQuestionAnswerListScreen.kt 3
screen/sender/HomeScreen.kt · screen/sender/DiaryScreen.kt 각 2
screen/receiver/ReceiverMindRecordScreen.kt 1

#1540 에 남는 리프 컴포넌트 19건 (선행 없이 진행 가능)

KeyBoardToolBar.kt 5 · WriteTextField.kt 2 · DiaryComponent.kt 2 · DiaryCard.kt 2 · DailyQuestionListCard.kt 2 · WeeklyReportReviewCard.kt 1 · TodayQuestionCard.kt 1 · MemoriesCard.kt 1 · feature/home WeeklySummaryGrid.kt 3

완료 조건

자식 이슈

No response

참고

분리 출처: #1540 (부모 #1388) · 선행: #1807 (mindrecord MVI 전환) · 전환 총괄: #1811

규약 문서: docs/convention/composable-callback-defaults.md — MVI 화면에서 이 규칙이 어떻게 적용되는지는 #1801 이 문서에 명시한다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:mindrecord마음의 기록 기능 영역refactor동작 변경 없이 코드 구조·책임·경계를 개선하는 작업

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions