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

[mod] 상세페이지 홈페이지, 인스타, 전화번호 없는 경우에 대한 분기처리, 상세페이지, 검색뷰, 필터뷰 이슈 해결 #229

Merged
merged 7 commits into from
Feb 19, 2024

Conversation

jihyunniiii
Copy link
Collaborator

@jihyunniiii jihyunniiii commented Feb 18, 2024

Related issue 🛠

Work Description ✏️

  • 상세페이지 홈페이지, 인스타, 전화번호가 없는 경우에 대한 분기처리를 진행하였습니다.
  • 검색 뷰 관련 오류를 해결하였습니다. (item_bakery에서 역이 완전히 표시되지 않는 오류, 검색 2번 진행 시 앱이 터지는 오류)
  • 상세페이지 관련 오류를 해결하였습니다. (북마크 클릭 시 칩이 계속 쌓이는 오류)
  • 필터뷰 건너뛰기 터치영역 조절

Screenshot 📸

  • 검색 및 상세페이지 분기처리
Screen_recording_20240218_172516.mp4
  • 북마크
Screen_recording_20240218_172213.mp4

Uncompleted Tasks 😅

  • N/A

To Reviewers 📢

  • 지금 영상에는 전화번호 없는 경우에 빈 값이 뜨는데 이거 실제 더미 쌓을 때 - 로 넣어주신다고 하셨습니다. (홈페이지, 인스타가 없는 경우 -> " " 내려줌 + 뷰에서 사라지도록 구현, 전화번호 없는 경우 -> - 내려줌 + 뷰에 - 표시)
  • 하다가 북마크 클릭했을 때 칩이 계속 쌓이는 오류를 발견해서 그것도 고쳤어요 ~ (사진 참고 ㅋ.ㅋ)
스크린샷 2024-02-18 오후 5 32 40
  • initBreadTypeChips 함수 확장함수로 빼는 게 나을지 고민하다가 그냥 놔뒀는데,, 뭐가 나은 것 같으신가요,,?

Copy link
Member

@jooyyoo jooyyoo left a comment

Choose a reason for hiding this comment

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

수고하셨숨당🥖

this.toBreadTypePointM2Chip(layoutInflater)
}
)
private fun initBreadTypeChips(
Copy link
Member

Choose a reason for hiding this comment

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

흠 그러게요 chip 관련이라 같이 따로 확장함수로 빼도 괜찮을 것 같긴 합니당

Copy link
Member

Choose a reason for hiding this comment

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

이게 제가 모든 로직 확장함수로 빼려다가 일부만 뺀게, 리스트로 넘어오는 타입(BreadFilterType, ReviewData 등,, ) 이 다 다른데 거기서 breadType을 generic으로 받아서 접근할 수 가 없음여,,, 가능하면 빼면 좋을 거 같긴 하네염 근데 이게 경우의 수가 겁나 많아서 좀 고민이 필요함!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

마자요 ㅜ 저도 그래서 빼려다가 안 뺐는데 ㅜ 이따가 같이 고민해보면 좋을 것 같습니다 ~~

Copy link
Member

@Dan2dani Dan2dani left a comment

Choose a reason for hiding this comment

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

수고티비입니다

this.toBreadTypePointM2Chip(layoutInflater)
}
)
private fun initBreadTypeChips(
Copy link
Member

Choose a reason for hiding this comment

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

이게 제가 모든 로직 확장함수로 빼려다가 일부만 뺀게, 리스트로 넘어오는 타입(BreadFilterType, ReviewData 등,, ) 이 다 다른데 거기서 breadType을 generic으로 받아서 접근할 수 가 없음여,,, 가능하면 빼면 좋을 거 같긴 하네염 근데 이게 경우의 수가 겁나 많아서 좀 고민이 필요함!

@@ -53,7 +53,7 @@ data class ResponseDetailReview(
memberNickname = review.memberNickname,
reviewId = review.reviewId,
reviewText = review.reviewText,
recommendKeywordList = review.toRecommentKeyword()
recommendKeywordList = review.toRecommendKeyword()
Copy link
Member

Choose a reason for hiding this comment

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

ㅋㅋㅋㅋㅋ 오 감사합니다

) {
binding.bakery = bakery
binding.executePendingBindings()

// TODO: dana 다른 방식이 있는지 고민, 매 바인딩마다 removeAllViews 해야하는가 ?
with(binding.cgBakeryBreadTypes) {
this.removeAllViews()
initBreadTypeChips(this, position)
initBreadTypeChips(this, bakery.breadTypeList)
Copy link
Member

Choose a reason for hiding this comment

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

오옹 이 방식으로 햇어야 했네여

this.toBreadTypePointM2Chip(layoutInflater)
}
)
private fun initBreadTypeChips(
Copy link
Member

Choose a reason for hiding this comment

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

굳굳! 입니닷

Copy link
Member

Choose a reason for hiding this comment

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

나중에 이런 방식으로 다 바꾸는 것도 괜찮을 거 같네염!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

음하하 ㅋ.ㅋ

@@ -228,7 +228,7 @@

<TextView
android:id="@+id/tv_item_detail_bakery_info_homepage"
visibility="@{!bakeryInfo.homepageUrl.isEmpty()}"
visibility="@{!bakeryInfo.homepageUrl.trim().isEmpty()}"
Copy link
Member

Choose a reason for hiding this comment

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

trim()을 적용해야 하는 이유가 있나염?!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

서버에서 "" 이게 아니라 " " (공백 있게) 이걸로 내려준대요 ㅠ

Copy link
Member

Choose a reason for hiding this comment

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

아항 ㅜㅜ

@jihyunniiii jihyunniiii changed the title [mod] 상세페이지 홈페이지, 인스타, 전화번호 없는 경우에 대한 분기처리, 상세페이지, 검색뷰 오류 해결 [mod] 상세페이지 홈페이지, 인스타, 전화번호 없는 경우에 대한 분기처리, 상세페이지, 검색뷰, 필터뷰 이슈 해결 Feb 19, 2024
@jihyunniiii jihyunniiii merged commit 6495015 into develop Feb 19, 2024
1 check passed
@jihyunniiii jihyunniiii deleted the mod-detail-view branch February 19, 2024 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
3 participants