-
Notifications
You must be signed in to change notification settings - Fork 0
[TNT-309] 신규 TextField 일괄 적용 #144
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
Conversation
SeonJeongk
left a comment
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.
전부 새로 적용하시느라 넘 고생하셨습니다 ;-;
아래 사항들과 리뷰만 한 번 확인 부탁드립니다!
(머지되는대로 트레이니 마이페이지 수정 화면에도 적용하여 PR 업로드 하겠습니다🙏)
1. text_counter 형식
text_counter를 디자인 시스템에 맞게
%1$d/%2$d자에서 %1$d / %2$d 으로 수정 부탁드립니다!
2. TnTOutlinedTextField 삭제
삭제된 TextField파일의 TnTOutlinedTextField가 남아있는 화면들이 있습니다!
리뷰로 남겨놨으니 해당 부분들 확인 부탁드립니다!!
- TraineeBasicInfoPage
- TraineeNoteForTrainerPage
...ure/trainee/mealrecord/src/main/java/co/kr/tnt/trainee/mealrecord/TraineeMealRecordScreen.kt
Show resolved
Hide resolved
.../trainee/mealrecord/src/main/java/co/kr/tnt/trainee/mealrecord/TraineeMealRecordViewModel.kt
Show resolved
Hide resolved
feature/trainer/addptsession/src/main/java/co/kr/tnt/trainer/addptsession/AddPtSessionScreen.kt
Show resolved
Hide resolved
feature/trainee/signup/src/main/java/co/kr/tnt/trainee/signup/TraineeBasicInfoPage.kt
Show resolved
Hide resolved
|
TnTLabeledTextField(
value = caution ?: "",
onValueChange = { newValue ->
onChangeCaution(newValue)
},
modifier = Modifier.padding(horizontal = 20.dp),
size = TnTTextFieldSize.LARGE,
placeholder = "내용을 입력해주세요.",
isWarning = (caution?.length ?: 0) >= MAX_LENGTH,
warningMessage = stringResource(R.string.text_length_overflow),
maxLength = 100,
) |
|
리뷰 남겨주신 내용 일괄 수정 완료하였습니다! 감사합니다 ~!! PR 내용도 추가했어요!! |
SeonJeongk
left a comment
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.
고생하셨습니다!!
추가로 달아주신 PR 내용 덕분에 이해가 확실히 됐습니다👍
📝 작업 내용
Closes [TNT-309] TextField 컴포넌트 변경 #143
디자인 시스템에 적용된 신규
TextField를 모든 화면에 일괄 적용하였습니다.CodeEntryPage- 초대 코드 입력PTSessionFormPage- PT 세션 정보 입력 (구조 개선)TraineeMealRecordScreen- 식단 기록TraineeBasicInfoPage- 트레이니 기본 정보 입력TraineeProfileSetupPage- 트레이니 프로필 설정AddPtSessionScreen- PT 세션 추가TrainerInviteScreen- 트레이너 초대 코드 입력TrainerModifyMyInfo- 트레이너 정보 수정TrainerProfileSetupPage- 트레이너 프로필 설정TextField는 다음 세 가지 타입으로 나눠집니다.!TextField- 경고 메시지나 타이틀을 제외한 순수한TextField컴포넌트LabeledTextField- 경고 메시지, 타이틀을 포함한 컴포넌트SelectableTextField- 클릭 가능한 컴포넌트LineHeightStyle을 적용하였습니다.LineHeightStyle의 속성 때문입니다.LineHeight는, 피그마와 다르게Text Baseline사이의 거리를 의미합니다.Both가 기본 속성으로, 첫 줄의 텍스트는 위에 다른 텍스트가 없으므로Line Height가 적용되지 않습니다.None속성을 적용하여, 해당 텍스트 위, 아래에 텍스트 유무와 상관없이Line Height를 적용합니다.📸 실행 화면
🙆🏻 리뷰 요청 사항
TextField구현부는Preview를 제외하고 보시면 될 것 같습니다!👀 레퍼런스