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

[YDS-#218] Atom - SuffixTextField 구현 #268

Merged
merged 10 commits into from
Apr 10, 2024

Conversation

leeeyubin
Copy link
Member

@leeeyubin leeeyubin commented Apr 8, 2024

Summary

  • TextField 중 SuffixTextField가 compose로 되어있지 않아, 이를 구현하였습니다.

Describe your changes

Issue

To reviewers

  • 아직 미흡한 부분이 많이 있을 것 같아서 피드백 해주시면 수정하겠습니다!

PR 올리기 전 체크 리스트

  • version.properties의 버전을 업데이트 했나요?

@leeeyubin leeeyubin added the yds-compose YDS Compose 버전 label Apr 8, 2024
@leeeyubin leeeyubin requested a review from cometj03 April 8, 2024 17:51
@leeeyubin leeeyubin self-assigned this Apr 8, 2024
@leeeyubin leeeyubin requested review from a team and removed request for a team April 8, 2024 17:58
Copy link
Member

@cometj03 cometj03 left a comment

Choose a reason for hiding this comment

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

수고하셨습니다 제가 봤을 땐 딱히 수정할 부분이 없어보여요!

isError: Boolean = false,
isEnabled: Boolean = true,
placeHolder: String = "",
suffixLabel: String = "",
Copy link
Member

Choose a reason for hiding this comment

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

SuffixTextField니까 suffixLabel 인자의 기본값을 주지 않는 것이 어떨까요? 그리고 text도 마찬가지로 기본값이 없는 것 제안해봅니다!

@@ -1,2 +1,2 @@
versionName=2.5.10
versionName=2.5.11
Copy link
Member

Choose a reason for hiding this comment

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

컴포넌트 하나가 추가된 PR이니까 중간의 번호를 올리는 게 좋을 것 같아요! 2.6.0

text: String = "",
modifier: Modifier = Modifier,
isError: Boolean = false,
isEnabled: Boolean = true,
Copy link
Member

Choose a reason for hiding this comment

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

@leeeyubin
Copy link
Member Author

@cometj03 말씀해주신 거 반영해서 수정했습니다! 어프루브 주시면 머지할게요!

isError: Boolean = false,
isDisabled: Boolean = true,
placeHolder: String = "",
suffixLabel: String,
Copy link
Member

@giovannijunseokim giovannijunseokim Apr 10, 2024

Choose a reason for hiding this comment

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

기본값 없는 파라미터는 맨 위로 올리는게 통일성있어 보입니다!

코틀린 문서에서 찾아봤는데 그런 얘기는 못 찾았지만, 대부분의 컴포저블에서 기본값 없는 파라미터들이 먼저 나오는 모습이 보이네요. 아마 Named Arguments를 사용하지 않더라도 자연스럽게 느껴지도록 기본값 없는 파라미터를 먼저 쓰도록 하는 것 같아요 !

Copy link
Member Author

Choose a reason for hiding this comment

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

오 그 부분은 몰랐네요! 감사합니당

textColor = YdsTheme.colors.textSecondary,
),
isError = isError,
enabled = isDisabled,
Copy link
Member

@giovannijunseokim giovannijunseokim Apr 10, 2024

Choose a reason for hiding this comment

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

기존 사용되는 enabled로 사용하려면, !isDisabled로 사용하는 것이 맞지 않을까요!?

Copy link
Member Author

Choose a reason for hiding this comment

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

앗 맞네요! 제가 놓쳤습니다😅 피드백 반영했습니다!

Copy link
Member

@giovannijunseokim giovannijunseokim left a comment

Choose a reason for hiding this comment

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

리뷰 한 번씩 확인해주세요! 고생하셨습니다 ~!!! 👍👍

Row(modifier = Modifier.padding(top = 8.dp)) {
Spacer(
modifier = Modifier
.width(16.dp),
Copy link
Member

Choose a reason for hiding this comment

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

엇 제가 피그마 확인해봤을 땐 8dp던데 16dp였을까요..?

Copy link
Member Author

Choose a reason for hiding this comment

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

확인해보니 8dp가 맞네요!! 다음엔 더 꼼꼼히 보겠습니닷

Copy link
Member Author

Choose a reason for hiding this comment

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

현재 다른 TextField들도 hintText는 8dp인데 16dp로 되어있는 것 같습니다..! 같이 수정해놓을까요??

Copy link
Member

Choose a reason for hiding this comment

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

그럼 확인하고 그렇게 해주시면 감사하겠습니다!

Copy link
Member Author

Choose a reason for hiding this comment

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

넵 수정 완료했습니다!

@leeeyubin leeeyubin merged commit 7eddeec into develop Apr 10, 2024
1 check passed
@leeeyubin leeeyubin deleted the feature/bona/suffixtextfield branch April 10, 2024 23:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
yds-compose YDS Compose 버전
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Atom - SuffixTextField
3 participants