-
Notifications
You must be signed in to change notification settings - Fork 0
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
[TNT-190] 트레이니 연결 요청 팝업 기능 구현 #110
Conversation
- '3일간 보지 않기' 기능 구현 필요
- 현재 완료된 회차에 0 입력 가능하도록 조건 수정
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.
class ConnectLocalDataSource @Inject constructor( | ||
@Named(CONNECT_STORAGE_NAME) private val connectPreferences: DataStore<Preferences>, | ||
) { | ||
val homeDialogHiddenDate: Flow<String?> = connectPreferences.data.map { preferences -> |
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.
변수명이 UI와 의존성을 지니지 않도록
ExplicitDeniedConnectDate
와 같은 방식으로 네이밍하는게 좋을 것 같아요!
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.
앗 넵 수정했습니다!
|
||
val lastHiddenDate = connectRepository.getHomeDialogHiddenDate().firstOrNull() | ||
val isHidden = lastHiddenDate != null && | ||
Duration.between(lastHiddenDate, currentDateTime).toHours() < 72 |
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.
72
상수 선언해두면 좋을 것 같아요 !_!
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.
수정했습니다!
@@ -99,18 +107,25 @@ internal fun TrainerConnectCompletePage( | |||
@Composable | |||
private fun ProfileSection( | |||
profile: User, | |||
context: Context, |
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.
추후에 painter
받아서 사용하는 쪽에서 placeholder
설정하는 방식으로 만들면 좋을 것 같아요
그럼 context
도 안받아도 될듯요!
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.
음! 나중에 수정해두겠습니다
# Conflicts: # feature/trainee/signup/src/main/java/co/kr/tnt/trainee/signup/TraineeSignUpViewModel.kt # feature/trainer/signup/src/main/java/co/kr/tnt/trainer/signup/TrainerSignUpViewModel.kt
📝 작업 내용
Closes [TNT-190] 트레이너 연결 요청 팝업 #53
홈 화면 진입 시 연결 요청 팝업이 자동으로 표시되도록 구현했습니다.
연결되지 않은 상태
이고3일 동안 보지 않기
로 설정한 시간이 지났다면다이얼로그를 표시하도록 처리했습니다.
3일 동안 보지 않기 기능을 구현했습니다.
3일 동안 보지 않기
를 선택하면 다이얼로그가 닫히는 순간의 LocalDateTime을ConnectLocalDataSource
에 저장하도록 구현했습니다.회원가입 및 프로필 사진과 관련된 수정 사항 포함되어 있습니다
📸 실행 화면
트레이너 연결 이후 팝업 노출
default.mp4
3일동안 보지 않기 동작
3.mp4
🙆🏻 리뷰 요청 사항
없습니다.. 영상에 보이는 연결 완료 화면 이미지 오류는 해결했습니다!

👀 레퍼런스