-
Notifications
You must be signed in to change notification settings - Fork 0
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
[feat] 동적 inflate를 위한 chip 관련 구현, BreadTypeList Dto 형태 수정 및 관련 뷰 수정 #227
Conversation
List로 전부 전환 후 기존 엔티티 삭제 예정
…hips 호출하고, 람다식 작성
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수고하셨숩니당 ~
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
따로 만들어서 관리하니까 확실히 코드가 깔끔해지는군요 짱짱쓰
breadTypeList = data.breadTypeList.mapNotNull { breadType -> | ||
BreadFilterType.values().find { | ||
it.id == breadType.breadTypeId | ||
} | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
오 훨씬 좋네용
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
enum으로 바꾸는거 굳이죵 ~~
@@ -12,3 +15,17 @@ data class Bakery( | |||
val bakeryPicture: String, | |||
val breadType: BreadType, | |||
) | |||
|
|||
// TODO: 차후 네이밍 수정 | |||
data class BakeryInformation( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이 네이밍도 괜찮을 듯요? ㅋ.ㅋ
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
그런가염? 뭐가 나을까요
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BakeryIdentity 추천해봅니당
@@ -75,7 +75,7 @@ class BakeryListFragment : | |||
viewModel.bakeryListState.flowWithLifecycle(lifecycle).onEach { | |||
when (it) { | |||
is UiState.Success -> { | |||
bakeryAdapter.setBakeryList(it.data.toMutableList()) | |||
// bakeryAdapter.setBakeryList(it.data.toMutableList()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
여기 왜 주석 처리 되어있나염?????
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
여기 페이징 전환할 대 하려구요 ㅋㅎ
// 생명 주기 상태가 최소 CREATED 일 때만 수집하도록 제한 | ||
viewModel.profileInfo.flowWithLifecycle( | ||
viewLifecycleOwner.lifecycle, | ||
Lifecycle.State.CREATED |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
와 핑글 때 멘토님 피드백이 이런 의미였군요 감솨합니다 ~
|
||
// TODO: dana 다른 방식이 있는지 고민, 매 바인딩마다 removeAllViews 해야하는가 ? | ||
with(binding.cgBakeryBreadTypes) { | ||
this.removeAllViews() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
요거 매 바인딩마다 안 하면 칩이 안 사라지는 문제가 발생하게 되나요? 재사용 때문엥?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
칩이 동적으로 바인딩되는거라서 원래 있던거에 추가로 생김요 ㅜㅜ
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
무슨 방법 없을까여 근데 이게 제일 깔끔한 거 같기도,,,
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이게 이미 있었다니 충격 ㄷ.ㄷ
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수고했어얌🩵
@@ -12,3 +15,17 @@ data class Bakery( | |||
val bakeryPicture: String, | |||
val breadType: BreadType, | |||
) | |||
|
|||
// TODO: 차후 네이밍 수정 | |||
data class BakeryInformation( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BakeryIdentity 추천해봅니당
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
마술사 같다...
Related issue 🛠
Work Description ✏️
(관리 + 랜더링 시점에서 리스트를 만들어내는게 비효율적이라고 생각)
Screenshot 📸
나 이거 사진이 안올라감
Uncompleted Tasks 😅
To Reviewers 📢
차후에 논의