Skip to content

[Feat/#17] 나만의 메뉴 주문 UI 구현#26

Merged
jyvnee merged 5 commits intodevelopfrom
feat/#17-order-ui
Nov 25, 2025
Merged

[Feat/#17] 나만의 메뉴 주문 UI 구현#26
jyvnee merged 5 commits intodevelopfrom
feat/#17-order-ui

Conversation

@jyvnee
Copy link
Collaborator

@jyvnee jyvnee commented Nov 21, 2025

✅ 𝗖𝗵𝗲𝗰𝗸-𝗟𝗶𝘀𝘁

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

📌 𝗜𝘀𝘀𝘂𝗲𝘀

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

  • 나마의 메뉴 리스트 페이지 구현

📷 𝗦𝗰𝗿𝗲𝗲𝗻𝘀𝗵𝗼𝘁

Screen_recording_20251121_191101.mp4

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

서버 연결하면 뷰모델이랑 Route 로직 좀 바뀔 것 같습니당

@jyvnee jyvnee self-assigned this Nov 21, 2025
@jyvnee jyvnee added ✨ Feat 새로운 기능 구현 🖥️ UI UI 작업 🍀 지현 labels Nov 21, 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.

수고하셨습니다!! 🤩

data object Loading : UiState<Nothing>

data class Success<T>(
data class Success<out T>(
Copy link
Collaborator

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.

Success에 out T를 붙이면 Success을 Success로도 볼 수 있어서
클래스 자체를 타입으로 사용할 때 상위 타입 호환성을 유지할 수 있습니다.
근데 생각해보니 Success만 따로 다룰 일이 없어서 굳이 out을 써주지 않아도 되겠네요..!

Comment on lines +13 to +14
constructor() : ViewModel() {
private val _uiState = MutableStateFlow<OrderUiState>(OrderUiState())
Copy link
Collaborator

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.

타입 명시해준 것 말씀하시는 건가욥..??!
특별한 이유가 있는 것은 아니고.. 그냥 습관적으로 써버렸는데.. 타입 추론 되는 부분이라 생략해줘도 될 것 같네요

@jyvnee jyvnee merged commit 8d67a7d into develop Nov 25, 2025
1 check passed
@jyvnee jyvnee deleted the feat/#17-order-ui branch November 25, 2025 06:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

✨ Feat 새로운 기능 구현 🍀 지현 🖥️ UI UI 작업

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feat] 나만의 메뉴 주문 UI 구현

2 participants