Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/mz 197 received envelop edit delete, 장부 그룹핑 제거 #113

Merged
merged 8 commits into from
Jan 31, 2024

Conversation

jinukeu
Copy link
Member

@jinukeu jinukeu commented Jan 31, 2024

💡 Issue

🌱 Key changes

  • 장부 봉투 수정, 삭제 구현했습니다.

✅ To Reviewers

친구 관련 요소를 편집하면 크래시가 발생하는데, 서버 문제여서 수정 요청해놨습니다.

📸 스크린샷

스크린샷
파일첨부바람
KakaoTalk_Video_2024-01-31-15-35-40.mp4

Comment on lines +118 to +125
category = if (categoryId != null) {
CategoryRequest(
id = categoryId,
customCategory = customCategory,
)
} else {
null
},
Copy link
Member

Choose a reason for hiding this comment

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

customCategory가 아니라 Category 자체가 null이어도 되나요?

Copy link
Member Author

Choose a reason for hiding this comment

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

받은 봉투에서는 Category를 입력받지 않아서 괜찮아요

Copy link
Member

Choose a reason for hiding this comment

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

아~ 대신 장부 id가 있군요

Comment on lines +31 to +35
private var isFirstVisited: Boolean = true

fun initData() = viewModelScope.launch {
if (isFirstVisited.not()) return@launch
isFirstVisited = false
Copy link
Member

Choose a reason for hiding this comment

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

isFirstVisited가 필요하게 된 경위가 궁금합니다

Copy link
Member Author

Choose a reason for hiding this comment

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

isFirstVisited가 없으면 초기 컴포지션이 일어날 때마다 아래의 로직이 수행돼요.

isFirstVisited가 없으면 디바이스 화면을 껏다가 키면 로직이 매번 재수행됩니다.

Comment on lines +59 to +62
fun updateEnvelopeIfNeed(envelopeUri: String?) = intent {
val envelope = envelopeUri?.let {
Json.decodeFromUri<Envelope>(it)
} ?: return@intent this
Copy link
Member

Choose a reason for hiding this comment

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

여기도 IfNeed라는 상황이 어떤 상황인지 궁금합니당

Copy link
Member Author

Choose a reason for hiding this comment

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

장부 상세 화면이 navBackEntry에서 envelopeUri를 넘겨받았다면, 해당 envelop를 업데이트 해주는 상황이에요

Copy link
Member

Choose a reason for hiding this comment

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

이해했습니다~

@jinukeu jinukeu merged commit 3038735 into develop Jan 31, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feat] 장부 필터 - 그룹핑 제거 [Feat] 받은 봉투 수정, 삭제 서버 연동
2 participants