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

[TNT-115] 연결코드 화면 UI 구현 및 연결 #34

Merged
merged 40 commits into from
Jan 26, 2025

Conversation

SeonJeongk
Copy link
Contributor

@SeonJeongk SeonJeongk commented Jan 24, 2025

📝 작업 내용

  • [TNT-115] 파트너 연결 기능 구현 #18

  • 연결 코드 관련 화면들을 구현했습니다 (trainer, trainee로 분리해 구현)

    • 트레이너 연결 코드 생성 UI
    • 트레이니 연결 코드 입력 UI
    • 트레이니 수강 회차 UI
    • 유저 연결 완료 UI
    • 트레이니 프로필 UI
  • 트레이너의 트레이니 연결 완료 화면은 FCM으로 뜨는 화면이기 때문에 이전 화면으로 아무것도 연결되지 않은 상태입니다

  • API는 나오는대로 연결할 예정입니다. 트레이너와 트레이니 프로필 데이터도 API 연결하면서 설정할 예정입니다

📸 실행 화면

트레이너 코드 생성 화면

trainer_code.mp4

트레이너의 트레이니 연결 완료 화면

trainee_profile.mp4

트레이니 연결 화면

trainee.mp4

🙆🏻 리뷰 요청 사항

진짜진짜진짜진짜 죄송합니다.

👀 레퍼런스

https://developer.android.com/develop/ui/views/touch-and-input/copy-paste?hl=ko#duplicate-notifications

- 연결 화면에서 홈 화면으로 이동 시 백스택 모두 제거
- 스택 제거 여부는 clearBackStack 플래그로 제어 가능
- TrainerConnectUiState의 page를 TrainerConnectComplete로 변경해 완료 화면 확인
@SeonJeongk SeonJeongk added ✨ Feat 기능 구현 🎨 Design UI 및 디자인 작업 🌻 선정 김씨 집안 막내 김선정 labels Jan 24, 2025
@SeonJeongk SeonJeongk self-assigned this Jan 24, 2025
@SeonJeongk SeonJeongk requested a review from hoyahozz January 24, 2025 18:12
Copy link
Member

@hoyahozz hoyahozz left a comment

Choose a reason for hiding this comment

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

👍👍👍👍👍

@@ -26,24 +25,27 @@ internal class TrainerConnectViewModel @Inject constructor() :
TrainerConnectUiEvent.OnNextClick -> navigateToNext()
TrainerConnectUiEvent.OnBackClick -> navigateToBack()
TrainerConnectUiEvent.OnSkipClick -> navigateToHome()
else -> {}
Copy link
Member

Choose a reason for hiding this comment

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

else 분기 안해도 될듯염?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

안그래두 뒤에 PR에서 지웠습니다!

if (!trainee.caution.isNullOrEmpty()) {
TextWithBackground(
label = stringResource(R.string.caution),
text = trainee.caution!!,
Copy link
Member

Choose a reason for hiding this comment

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

non-null assertion 사용하지 않기 !

Copy link
Contributor Author

Choose a reason for hiding this comment

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

넵😿 수정해올게요

import co.kr.tnt.trainee.connect.component.InputState.UNFOCUSED
import co.kr.tnt.trainee.connect.component.InputState.VALID

enum class InputState {
Copy link
Member

Choose a reason for hiding this comment

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

private 해도 될 것 같아용

Copy link
Contributor Author

Choose a reason for hiding this comment

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

TraineeConnectViewModelTraineeConnectContract 에서도 사용하고 있어서 public으로 둬야할 것 같습니다

model로 옮겨둘까요?!

Copy link
Member

Choose a reason for hiding this comment

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

넵넵!

@SeonJeongk SeonJeongk merged commit 58d69c1 into develop Jan 26, 2025
1 check passed
@SeonJeongk SeonJeongk deleted the feature/TNT-115 branch January 26, 2025 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ Feat 기능 구현 🌻 선정 김씨 집안 막내 김선정 🎨 Design UI 및 디자인 작업
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants