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-114] 회원가입 화면 플로우 연결 #37

Merged
merged 16 commits into from
Jan 26, 2025
Merged

Conversation

SeonJeongk
Copy link
Contributor

@SeonJeongk SeonJeongk commented Jan 26, 2025

📝 작업 내용

화면 연결

  • 트레이너, 트레이니 회원가입 플로우 화면들을 연결했습니다
  • 회원가입 플로우 뒤에 각 역할 별 연결하기 화면까지 연결했습니다
  • 연결하기 화면에서 뒤로가기 or 건너뛰기 를 누르면 홈 화면으로 이동하도록 수정했습니다
    • **뒤로가기**의 경우, isFromMyPage 를 넘겨받아
      • true ➡️ 뒤로 이동
      • false ➡️ 회원가입에서 넘어왔다 판단하고 홈으로 이동
    • 더하여 isFromMyPage 를 통해 **상단바**도 다르게 보여지도록 수정해뒀습니다
      • true ➡️ 뒤로가기 버튼 노출
      • false ➡️ 건너뛰기 버튼 노출

수정 사항

  • 그래프 내부 화면들의 이름을 Screen에서 Page로 변경
  • 여러 모듈에서 동일하게 사용하는 스트링 리소스들은 core:ui에서 가져다 쓰도록 수정(uiResource)
  • 트레이니 초대코드 입력 화면으로 이동하면 뜨던 Dialog 삭제
  • 초대코드 인증하기 버튼 비활성화 조건 추가

📸 실행 화면

트레이너 회원가입 + 연결 코드

trainer.mp4

트레이니 회원가입 + 연결 코드

⬇️ 연결하기 화면 건너뛰기

trainee.mp4

⬇️ 연결하기 화면 뒤로가기

trainee_3.mp4

⬇️ 연결 완료

trainee_2.mp4

🙆🏻 리뷰 요청 사항

없습니다!

👀 레퍼런스

@SeonJeongk SeonJeongk added ✨ Feat 기능 구현 🎨 Design UI 및 디자인 작업 🌻 선정 김씨 집안 막내 김선정 labels Jan 26, 2025
@SeonJeongk SeonJeongk self-assigned this Jan 26, 2025
@github-actions github-actions bot requested a review from hoyahozz January 26, 2025 15:45
@SeonJeongk SeonJeongk changed the title Feature/tnt 114 [TNT-114] 회원가입 화면 플로우 연결 Jan 26, 2025
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.

고생하셨습니다 ~~!

isFromMyPage 은 다음 PR에서 수정하든지 아니면 좀 더 좋은 방법을 찾아봅시당

너무 구체적인 이름이라 수정을 해야할 것 같긴 하네요 '-'

verticalAlignment = Alignment.CenterVertically,
modifier = Modifier.padding(vertical = 8.dp),
) {
if (isError && !warningMessage.isNullOrEmpty()) {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
if (isError && !warningMessage.isNullOrEmpty()) {
if (isError && warningMessage.isNullOrEmpty().not()) {

요런 방식으로도 쓸 수 있어염 ㅎ.ㅎ 근데 이건 취향차이 !

@@ -33,28 +30,43 @@ import co.kr.tnt.core.ui.R as uiResource
@Composable
internal fun CodeEntryPage(
state: TraineeConnectUiState,
isFromMyPage: Boolean,
Copy link
Member

Choose a reason for hiding this comment

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

humm...

@@ -13,6 +13,7 @@ import co.kr.tnt.trainee.connect.model.PTSessionFormData

@Composable
internal fun TraineeConnectRoute(
isFromMyPage: Boolean,
Copy link
Member

Choose a reason for hiding this comment

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

humm..

@@ -63,8 +70,7 @@ fun TraineeProfileSetupScreen() {
)

Scaffold(
// TODO 버튼 클릭 시 트레이너/트레이니 화면으로 이동
topBar = { TnTTopBarWithBackButton(onBackClick = {}) },
topBar = { TnTTopBarWithBackButton(onBackClick = { onBackClick() }) },
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
topBar = { TnTTopBarWithBackButton(onBackClick = { onBackClick() }) },
topBar = { TnTTopBarWithBackButton(onBackClick = onBackClick) },

람다도 리컴포지션 카운트에 영향을 줍니다!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

전부 수정했습니다!

enabled = text.isNotBlank() && !isWarning,
onClick = { },
onClick = { onNextClick() },
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
onClick = { onNextClick() },
onClick = onNextClick,

}
TnTBottomButton(
text = stringResource(uiResource.string.start),
onClick = { onNextClick() },
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
onClick = { onNextClick() },
onClick = onNextClick,

@@ -63,7 +70,7 @@ fun TrainerProfileSetupScreen() {
)

Scaffold(
topBar = { TnTTopBarWithBackButton(onBackClick = {}) },
topBar = { TnTTopBarWithBackButton(onBackClick = { onBackClick() }) },
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
topBar = { TnTTopBarWithBackButton(onBackClick = { onBackClick() }) },
topBar = { TnTTopBarWithBackButton(onBackClick = onBackClick) },

modifier = Modifier.align(Alignment.BottomCenter),
enabled = text.isNotBlank() && !isWarning,
onClick = { },
onClick = { onNextClick() },
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
onClick = { onNextClick() },
onClick = onNextClick,

}
TnTBottomButton(
text = stringResource(uiResource.string.start),
onClick = { onNextClick() },
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
onClick = { onNextClick() },
onClick = onNextClick,

// TODO 115 머지되면 connect로 이동
TrainerSignUpRoute(
navigateToPrevious = navigateToPrevious,
navigateToConnect = { navigateToConnect() },
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
navigateToConnect = { navigateToConnect() },
navigateToConnect = navigateToConnect,

@SeonJeongk SeonJeongk merged commit bc3f374 into develop Jan 26, 2025
1 check passed
@SeonJeongk SeonJeongk deleted the feature/TNT-114 branch January 26, 2025 20:56
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