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

[Feature/#20] : 약속 생성 마지막 2페이지 구현 #21

Merged
merged 9 commits into from
Jan 14, 2025

Conversation

gaeulzzang
Copy link
Contributor

@gaeulzzang gaeulzzang commented Jan 11, 2025

✅ 𝗖𝗵𝗲𝗰𝗸-𝗟𝗶𝘀𝘁

  • merge할 브랜치의 위치를 확인해 주세요.(main❌/develop⭕)
  • 리뷰가 필요한 경우 리뷰어를 지정해 주세요.
  • 리뷰는 PR이 올라오면 최대한 빠르게 진행합니다.
  • P1 단계의 리뷰는 빠르게 확인 후 반영합니다.
  • Approve된 PR은 assigner가 머지하고, 수정 요청이 온 경우 수정 후 다시 push를 합니다.

📌 𝗜𝘀𝘀𝘂𝗲𝘀

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

  • 칩 카테고리 로직 수정
  • 약속 등록 확인 페이지 구현
  • 약속 등록 완료 페이지 구현
  • 바텀네비게이션 가로선 추가

📷 𝗦𝗰𝗿𝗲𝗲𝗻𝘀𝗵𝗼𝘁

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

카테고리 텍스트에 따라 배경색 변경되는 로직 추가했구 하늘 언니 뷰랑 연결해야돼서 스크린샷은 프리뷰로 대체합니답 😪
그리고 하늘언니 뷰에서 내용들을 모두 전달해주어야 할 것 같네요.. like 앱잼 회원가입 view...
그룹 아이디, 약속 이름, 약속 시간, 일자, 카테고리, 소요시간 정보 같은 정보 화면 연결 할 때 꼭 전달해주세요!!!

@gaeulzzang gaeulzzang added ⭐ [FEAT] 새로운 기능 구현 💟 [UI] UI 작업 🍂 가을 가응가 labels Jan 11, 2025
@gaeulzzang gaeulzzang self-assigned this Jan 11, 2025
@gaeulzzang gaeulzzang requested a review from a team as a code owner January 11, 2025 05:49
Copy link
Contributor

@youjin09222 youjin09222 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 14 to 20
val categoryType = CategoryType.fromText(text)
val resolvedBackgroundColor = when (categoryType) {
CategoryType.IMPORTANT -> NoostakTheme.colors.orange
CategoryType.SCHEDULE -> NoostakTheme.colors.blue
CategoryType.HOBBY -> NoostakTheme.colors.purple
CategoryType.ETC -> NoostakTheme.colors.mint
}
Copy link
Contributor

Choose a reason for hiding this comment

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

P3: 확실히 깔꼼하네요! 👍👍

Comment on lines 3 to 17
enum class CategoryType {
IMPORTANT, SCHEDULE, HOBBY, ETC;

companion object {
fun fromText(text: String): CategoryType {
return when (text.uppercase()) {
"중요" -> IMPORTANT
"일정" -> SCHEDULE
"취미" -> HOBBY
"기타" -> ETC
else -> ETC
}
}
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

P3: enum class 사용 너무 좋습니다ㅏㅏ

Comment on lines +189 to +241
@Composable
fun AppointmentInfoRow(
@DrawableRes icon: Int,
label: String,
content: String,
additionalContent: String? = null,
isChip: Boolean = false
) {
Row(
modifier = Modifier.fillMaxWidth()
) {
Row(
verticalAlignment = Alignment.CenterVertically
) {
Image(
imageVector = ImageVector.vectorResource(id = icon),
contentDescription = null
)
Text(
modifier = Modifier.padding(start = 3.dp),
text = label,
color = NoostakTheme.colors.gray700,
style = NoostakTheme.typography.b4Regular
)
}
Spacer(modifier = Modifier.weight(1f))
if (isChip) {
NoostakCategoryChip(text = content)
} else {
Column(
modifier = Modifier.fillMaxWidth(),
verticalArrangement = Arrangement.spacedBy(5.dp)
) {
Text(
modifier = Modifier.fillMaxWidth(),
text = content,
style = NoostakTheme.typography.b4SemiBold,
color = NoostakTheme.colors.gray900,
textAlign = TextAlign.End
)
if (additionalContent != null) {
Text(
modifier = Modifier.fillMaxWidth(),
text = additionalContent,
style = NoostakTheme.typography.b4SemiBold,
color = NoostakTheme.colors.gray900,
textAlign = TextAlign.End
)
}
}
}
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

P3: 오 이거 너무 야무지게 잘 만드셨네요!!

Comment on lines +35 to +42
@Composable
fun AppointmentSubmitRoute(
groupId: Long,
appointmentName: String,
appointmentDate: String,
appointmentTime: String? = null,
appointmentCategory: String,
appointmentDuration: Int,
Copy link
Contributor

@youjin09222 youjin09222 Jan 13, 2025

Choose a reason for hiding this comment

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

P2: 매개변수가 꽤 많은데 Entity 사용하는건 어떠신가요??

Copy link
Contributor Author

Choose a reason for hiding this comment

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

하늘 언니 뷰 완료되면 그때 언니랑 얘기해볼게욥 👍

Comment on lines +34 to +39
groupId: Long,
appointmentName: String,
appointmentDate: String,
appointmentTime: String? = null,
appointmentCategory: String,
appointmentDuration: Int,
Copy link
Contributor

Choose a reason for hiding this comment

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

P2: 여기도 Entity 사용하면 가독성과 유지보수에 좋을 것 같네요!

Copy link
Member

@Eonji-sw Eonji-sw left a comment

Choose a reason for hiding this comment

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

LGTM
나중에 dimens 값만 사용해주면 될 것 같네요

core/src/main/java/com/sopt/core/type/CategoryType.kt Outdated Show resolved Hide resolved
@gaeulzzang gaeulzzang merged commit 8d5c5b6 into develop Jan 14, 2025
1 check passed
@gaeulzzang gaeulzzang deleted the feature/#20-appointment-create-complete-ui branch January 22, 2025 06:55
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.

[UI] : 약속 생성 완료 페이지 구현
3 participants