-
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/#34] 장소 상세 페이지 StoreInfo, StoreInfoItem 구현 #35
base: develop
Are you sure you want to change the base?
Conversation
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.
코리 끗~~!!
) | ||
) { | ||
StoreInfoItem( | ||
title = "Menu", |
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.
P2: 이 부분 스트링 추출해주면 좋을 것 같네요!
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.
추출완료했습니다!
HorizontalDashedLine() | ||
StoreInfoItem( | ||
title = "Location", | ||
subTitle = "이키", |
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.
P1: 이키?!??!?!?!?!?!??!? 잡았다!!
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.
어라라! 수정했습니다! 구조가 많이 바뀌어서 다시한번 확인 부탁드려요!
@Composable | ||
fun StoreInfo( | ||
menuItems: List<String>, | ||
locationItems: List<String>, |
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.
P2: locationItems가 리스트인 이유가 무엇일까요?? 프리뷰를 보니 주소를 의미하는 인자인 것 같은데 주소는 스트링으로 받아도 충분할 것 같아요!
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.
p2) 리스트를 사용하지 말고, immutableList로 추후 수정해주세요
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.
구조가 바뀌어서 수정한 부분 확인 부탁드립니다!
import com.spoony.spoony.core.designsystem.theme.SpoonyAndroidTheme | ||
|
||
@Composable | ||
fun StoreInfo( |
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.
P1: 상호명이 빠졌어요!! 인자로 추가해주세요~~
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.
구조가 바뀌었습니다! 확인 부탁드려요!
fun StoreInfoItem( | ||
title: String, | ||
subTitle: String? = null, | ||
items: List<String>, |
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.
P2: 필수인자는 위로!!
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.
수정했습니다!
subTitle: String? = null, | ||
items: List<String>, | ||
isMenu: Boolean = true, | ||
modifier: Modifier = Modifier |
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.
P4: modifier는 옵셔널 중 가장 위로 올려주세요😊
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.
수정했습니다!
bottomStart = 8.dp, | ||
bottomEnd = 8.dp | ||
) to PaddingValues( | ||
vertical = 22.dp, |
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.
P1: 패딩값 다시 한번 확인 부탁드려요~!
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.
디쌤분들과 협의하에 수정완료했습니다!
verticalArrangement = Arrangement.spacedBy(12.dp) | ||
) { | ||
items.forEach { item -> | ||
IconText( |
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.
P1: 메뉴일 때랑 상호명일 때 아이콘 색상 달라서 색상도 따로 지정해주세요!
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.
같아보이는데 어떤부분 말씀일까요?!
|
||
@Composable | ||
private fun IconText( | ||
icon: Int, |
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.
icon: Int, | |
@DrawableRes icon: Int, |
P3: 필수는 아니지만,, 이렇게 Drawable id만 받을 수 있도록 설정해주는 것도 좋을 것 같아요!
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.
ImageVector로 수정했습니다!
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.
고생하셨습니다!
코드리뷰 반영하시고 다시 노티 부탁드립니다!
@Composable | ||
fun StoreInfo( | ||
menuItems: List<String>, | ||
locationItems: List<String>, |
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.
p2) 리스트를 사용하지 말고, immutableList로 추후 수정해주세요
menuItems: List<String>, | ||
locationItems: List<String>, | ||
modifier: Modifier = Modifier, | ||
isBlurred: Boolean = true |
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.
p2) isBlurred의 default값이 true인 이유가 있을까요?
서버에서 내려주는 값일텐데 디폴트가 존재하는 이유가 없다고 생각돼요
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.
보이다가 안보이는 것보단 안보이다가 서버에서 isBlurred 가 false 라는것이 떴을 때 보이도록하는게 좋아보였습니다.
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.
default값을 없애는 것이 더 좋아보입니다.
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.
수정완료했습니다.
import com.spoony.spoony.core.designsystem.theme.SpoonyAndroidTheme | ||
|
||
@Composable | ||
fun StoreInfoItem( |
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.
p1) StoreInfoItem이라는 컴포넌트를 재활용 하기에 불편한 것 같습니다.
isMenu라는 변수로 두가지 상태를 제어한다는 것이 추후 재사용에 상당히 불리한 것 같습니다.
Base를 하나 만들고 이를 활용한 두개의 컴포넌트를 만드는 방법도 있으니 고민해보시면 좋을 것 같습니다.
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.
구조 수정했습니다 확인 부탁드립니다!
Column( | ||
verticalArrangement = Arrangement.spacedBy(12.dp) | ||
) { | ||
items.forEach { item -> |
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.
p2) 여기도 key를 추가하면 좋을 것 같습니다.
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.
수정했습니다!
@Composable | ||
private fun IconText( | ||
icon: Int, | ||
iconSize: Int, |
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.
p3) size를 나타내려면 dp로 받아오는게 직관적인 것 같아요.
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.
수정 부탁드립니다
import com.spoony.spoony.core.designsystem.theme.SpoonyAndroidTheme | ||
import kotlinx.collections.immutable.immutableListOf | ||
|
||
@Composable | ||
fun StoreInfo( |
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.
p1) 너무 외부까지 slot으로 뚫은 것 같아요.
내부에서 일부 선언해서 컴포넌트로 사용할 수 있게 해주세요
현재 Preview를 보시면 컴포넌트를 사용하는데 최소 120줄을 사용하고 있어요.
이것은 컴포넌트라고 볼 수 없을 것 같아요
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.
넵 수정했습니다!
subTitle: String? = null, | ||
items: List<String>, | ||
isMenu: Boolean = true, | ||
content: @Composable () -> Unit, |
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.
p2) content는 맨 뒤에 넣어서 lambda로 쓸 수 있게 해주세요
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.
진짜 찐찐막 코리
app/src/main/res/values/strings.xml
Outdated
<string name="PLACE_DETAIL_STORE_INFO_MENU_TITLE">Menu</string> | ||
<string name="PLACE_DETAIL_STORE_INFO_LOCATION_TITLE">Location</string> |
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.
P1: string은 snake case로 네이밍합니다!! 이름만 수정해주세요~~!!
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.
수고하셨습니다~~🚀
Related issue 🛠
Work Description ✏️
Screenshot 📸
To Reviewers 📢