Skip to content

[Feat/#33] 마이메뉴 화면 서버 연결 (GET)#35

Merged
ckals413 merged 5 commits intodevelopfrom
feat/#33-my-menu-api
Nov 26, 2025
Merged

[Feat/#33] 마이메뉴 화면 서버 연결 (GET)#35
ckals413 merged 5 commits intodevelopfrom
feat/#33-my-menu-api

Conversation

@ckals413
Copy link
Collaborator

✅ 𝗖𝗵𝗲𝗰𝗸-𝗟𝗶𝘀𝘁

  • 팀원들을 리뷰어로 지정해 주세요.
  • 리뷰는 PR이 올라오면 최대한 빠르게 진행합니다.
  • Approve된 PR은 assigner가 머지하고,
    수정 요청이 온 경우 수정 후 다시 push를 합니다.

📌 𝗜𝘀𝘀𝘂𝗲𝘀

📎 𝗪𝗼𝗿𝗸 𝗗𝗲𝘀𝗰𝗿𝗶𝗽𝘁𝗶𝗼𝗻

  • 나만의 메뉴 조회 API (GET)을 연결했고,
  • 컵 size에 따라 가격 변동을 반영했습니다!

📷 𝗦𝗰𝗿𝗲𝗲𝗻𝘀𝗵𝗼𝘁

2025-11-26.055953.mp4

💬 𝗧𝗼 𝗥𝗲𝘃𝗶𝗲𝘄𝗲𝗿𝘀

옵션 퍼스널 가격 부분을 제외하고 API 연결 및 가격 변경 로직을 추가해뒀습니다!

@ckals413 ckals413 self-assigned this Nov 25, 2025
@ckals413 ckals413 added the ✨ Feat 새로운 기능 구현 label Nov 25, 2025
@ckals413 ckals413 linked an issue Nov 25, 2025 that may be closed by this pull request
1 task
@ckals413 ckals413 added 💻 API 서버 통신 작업 😎 차민 labels Nov 25, 2025
Copy link
Collaborator

@znayeonzn znayeonzn left a comment

Choose a reason for hiding this comment

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

오 넘 깔끔해요!! 수고하셨습니다!

Copy link
Collaborator

@jyvnee jyvnee left a comment

Choose a reason for hiding this comment

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

굿굿 잘했다!

Comment on lines +99 to +104
val sizePrice = when (selectedSize) {
DrinkSize.TALL -> menu.sizePrices.tall
DrinkSize.GRANDE -> menu.sizePrices.grande
DrinkSize.VENTI -> menu.sizePrices.venti
}
val totalPrice = menu.price + sizePrice
Copy link
Collaborator

Choose a reason for hiding this comment

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

이 로직은 뷰모델로 안 빼고 UI에서 처리하는 이유가 있나요??

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

UI 상태에 따라 단순 계산을 해서 UI에서 처리했습니다!

Comment on lines +69 to +85
modifier = modifier
.fillMaxSize()
.background(StarbucksTheme.colors.white)
) {
uiState.menuLoadState.onSuccess { menu ->
MyMenuContent(
menu = menu,
selectedTab = uiState.selectedTab,
selectedSize = uiState.selectedSize,
isPersonalCupChecked = uiState.isPersonalCupChecked,
onTabSelected = onTabSelected,
onSizeSelected = onSizeSelected,
onPersonalCupToggle = onPersonalCupToggle,
onBackClick = onBackClick
)
}
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

혹시 여기서 밖에 Column으로 감싸신 이유가 있나요?? MyMenuContent 안에서도 Column 써서 Column이 특별한 이유 없이 중첩되는 것 같은데 Column을 사용하신 이유가 궁금합니다

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

아 처음에는 Loading, Error에 대해서 처리하는 부분을 넣으려고 해서 한번 감쌌는데,, 일단 성공 로직만 화면에 보이게 해서 바깥의 Coulmn을 제거하겠습니다!

Column(
modifier = Modifier
.weight(1f)
.verticalScroll(rememberScrollState())
Copy link
Collaborator

Choose a reason for hiding this comment

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

보니까 PersonalOptionContent랑 MyMenuRegisterBar 사이에 패딩 있어서 Column에 bottom 패딩 주던가 PersonalOptionContent 아래에 따로 패딩 줘야 할 것 같아요

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
Collaborator

@usuuhyn usuuhyn left a comment

Choose a reason for hiding this comment

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

짱이에요 !! 수고하셧습니다

Copy link
Collaborator

@jyvnee jyvnee left a comment

Choose a reason for hiding this comment

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

굿 수고햇서

@ckals413 ckals413 merged commit 5fb64b7 into develop Nov 26, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

💻 API 서버 통신 작업 ✨ Feat 새로운 기능 구현 😎 차민

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feat] 마이메뉴 화면 서버 연결 (GET)

4 participants