Skip to content

Conversation

@gaeulzzang
Copy link
Contributor

✅ 𝗖𝗵𝗲𝗰𝗸-𝗟𝗶𝘀𝘁

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

📌 𝗜𝘀𝘀𝘂𝗲𝘀

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

  • 소요시간 이상 연속으로 입력했을 때만 통과, 연속이 아닌 시간이 하나라도 포함될 경우 스낵바 띄우기!
  • 연속으로 입력 불가능시 체크박스 눌러야 통과
  • 체크박스 누르는 순간 입력했던 시간들 삭제

📷 𝗦𝗰𝗿𝗲𝗲𝗻𝘀𝗵𝗼𝘁

default.mp4

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

체크박스 컴포넌트 만들어서 하늘언니 약속 생성 부분 코드 수정했어요 @twogarlic

@gaeulzzang gaeulzzang added 🍂 가을 가응가 ⭐ [FEAT] 새로운 기능 구현 labels Apr 23, 2025
@gaeulzzang gaeulzzang self-assigned this Apr 23, 2025
@gaeulzzang gaeulzzang requested a review from a team as a code owner April 23, 2025 03:59
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.

엄청 까다로웠을 텐데 진짜 고생 많았으어🥺

Copy link
Contributor

Choose a reason for hiding this comment

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

P3: 체크박스 컴포넌트로 따로 빼놓은거 너무 좋습니다!

Copy link
Contributor

Choose a reason for hiding this comment

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

P3 : 히히 체크박스도 생겻다 감사함니두

NoostakAndroidTheme {
NoostakCheckbox(
isChecked = true,
text = "체크박스블라블라"
Copy link
Contributor

Choose a reason for hiding this comment

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

P3: 이거 뭔디 ㅋㅋㅋㅋㅋ

isChecked = isChecked,
onCheckedChange = {
isChecked = it
if (isChecked) selectedData = emptyList()
Copy link
Contributor

Choose a reason for hiding this comment

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

P3: 오호 체크 박스 선택 시 이렇게 초기화했구나! 베리굿!

return false
}

val sorted = selectedDate.sortedBy { LocalDateTime.parse(it.startTime) }
Copy link
Contributor

@youjin09222 youjin09222 Apr 23, 2025

Choose a reason for hiding this comment

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

P3: 시간 정렬하는 방법 너무 좋은디!

Comment on lines +108 to +112
val finalBlockDuration = Duration.between(currentStart, currentEnd).toHours()
if (finalBlockDuration < duration) {
emitSideEffect(AppointmentCheckSideEffect.ShowSnackBar(R.string.sb_appointment_check_invalid))
return false
}
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 +91 to +107
for (i in 1 until sorted.size) {
val nextStart = LocalDateTime.parse(sorted[i].startTime)
val nextEnd = LocalDateTime.parse(sorted[i].endTime)

if (nextStart == currentEnd) {
currentEnd = nextEnd
} else {
// 블록이 끊기면 검사
val blockDuration = Duration.between(currentStart, currentEnd).toHours()
if (blockDuration < duration) {
emitSideEffect(AppointmentCheckSideEffect.ShowSnackBar(R.string.sb_appointment_check_invalid))
return false
}
currentStart = nextStart
currentEnd = nextEnd
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

P3: 오 이렇게 연속 여부 판단했구나 대단한디?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

지피티는 정말 대단한 친구야 흙흙

Copy link
Contributor

@twogarlic twogarlic left a comment

Choose a reason for hiding this comment

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

어푸어푸 ~

@gaeulzzang gaeulzzang merged commit 39352bd into develop Apr 24, 2025
1 check passed
@gaeulzzang gaeulzzang deleted the feature/#5-duration-fix branch April 24, 2025 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🍂 가을 가응가 ⭐ [FEAT] 새로운 기능 구현

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FIX] : 소요시간 이하로 입력 방지

4 participants