-
Notifications
You must be signed in to change notification settings - Fork 9
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
출석 정보 가져오기 구현 #1015
base: feature/refactor-attendance-screen
Are you sure you want to change the base?
출석 정보 가져오기 구현 #1015
Conversation
* Attendance screen compose setting (#676) * feat: implement NewAttendanceActivity * feat: implement NewAttendanceViewModel * chore: add compose-lifecycle dependency * feat: define AttendanceAction * feat: implement screens * feat: use SoptTheme in designsystem * chore: data class -> class로 변경 * chore: 람다 프로퍼티 이름 명시 * chore: SoptTheme darkTheme 기본값 사용 * chore: 필요없는 함수 제거 * chore: 구현 안 된 함수에 TODO 삽입 * chore: 동작하지 않는 Preview 제거 * chore: AttendanceAction 내 뷰모델 참조 제거 * chore: code format 변경 * chore: make stamp design system internal * chore: extract string resource * feat: implement AttendanceCodeCard * feat: implement AttendanceCodeCardList * chore: change logic * feat: implement AttendanceCodeDialog * feat: implement attendance button * chore: string resource 추출 * chore: change parameter List to ImmutableList * chore: reformat codee
|
|
||
import java.time.LocalDateTime | ||
|
||
data class AttendanceInfo( |
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.
data class AttendanceInfo( | |
data class Attendance( |
로 줄이는건 어떨까요? Info는 불필요한 단어인 것 같아서요!
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.
is AttendanceInfo.AttendanceDayType.NoAttendance -> { | ||
val sessionInfo = attendanceInfo.attendanceDayType.sessionInfo | ||
AttendanceDayType.Event( | ||
eventDate = "${sessionInfo.sessionStartTime} - ${sessionInfo.sessionEndTime}", |
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.
LocalDateTime.parse
로 파싱한걸 그대로 string으로 변환되면 2025-01-01T00:00:000
이런식으로 출력될 것 같은데, 혹시 어떻게 출력되는지 알 수 있을까요?
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.
요 부분 까먹고있다가 확인해서 작업했습니다! a1d1134 -> bac1a01
Kotlin Playground에서 테스트 해봤고, 잘 동작하는 것 같아요 ~!
val firstAttendanceResponse: SoptEventResponse.AttendanceResponse? = soptEventResponse.attendances.firstOrNull() | ||
val secondAttendanceResponse: SoptEventResponse.AttendanceResponse? = soptEventResponse.attendances.lastOrNull() |
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.
이거 lastOrNull
로 가도 괜찮을까요?
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.
예시 보니깐 attendances
를 반드시 2개로 주긴 하더라구요. 더 좋은 방법이 있는지 생각해보겠습니다. 감사합니다!
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.
한번 확인해주시고 문제 없으면 바로 머지 갑시다 👍🏻 고생했어요
What is this issue?
출석 정보를 가져오는 API를 연결하고 도메인으로 전환, Ui에 반영까지 작업하였습니다.
추후 세션을 만들어서 테스트 해보고 수정 필요하면 수정해서 다시 올리겠슴다
Reference