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

πŸ”— :: (#399) μΈμ¦ν•˜κΈ° ν…μŠ€νŠΈ ν•„λ“œ 높이 μˆ˜μ • #401

Conversation

parkuiery
Copy link
Member

@parkuiery parkuiery commented Oct 18, 2024

κ°œμš”

μΈμ¦ν•˜κΈ° λ²„νŠΌμ„ ν…μŠ€νŠΈ ν•„λ“œ μ•ˆμ— μΆ”κ°€ν•˜μ˜€μŠ΅λ‹ˆλ‹€.
image

μž‘μ—… λ‚΄μš©

ν•  말

μ—†μŒ

Summary by CodeRabbit

  • μƒˆλ‘œμš΄ κΈ°λŠ₯

    • 인증 λ²„νŠΌμ„ ν¬ν•¨ν•œ JobisTextField μ»΄ν¬λ„ŒνŠΈ μ—…λ°μ΄νŠΈ, μ‚¬μš©μžκ°€ ν…μŠ€νŠΈ ν•„λ“œμ—μ„œ 직접 인증 μž‘μ—…μ„ μˆ˜ν–‰ν•  수 μžˆλ„λ‘ κ°œμ„ .
    • 이메일 μž…λ ₯ ν™”λ©΄κ³Ό 인증 ν™”λ©΄μ—μ„œ λ²„νŠΌμ„ λŒ€μ²΄ν•˜λŠ” λ§€κ°œλ³€μˆ˜ν™”λœ μ ‘κ·Ό 방식 적용.
  • λ¬Έμ„œν™”

    • 인증 κ΄€λ ¨ κΈ°λŠ₯을 μœ„ν•œ μƒˆλ‘œμš΄ λ¬Έμžμ—΄ λ¦¬μ†ŒμŠ€ μΆ”κ°€: "인증 ν•˜κΈ°", "μž¬λ°œμ†‘".

@parkuiery parkuiery added the 버그 버그λ₯Ό μˆ˜μ •ν•©λ‹ˆλ‹€. label Oct 18, 2024
@parkuiery parkuiery self-assigned this Oct 18, 2024
@parkuiery parkuiery requested a review from a team as a code owner October 18, 2024 08:17
Copy link
Contributor

coderabbitai bot commented Oct 18, 2024

Walkthrough

이 λ³€κ²½ 사항은 JobisTextField ꡬ성 μš”μ†Œμ— μ—¬λŸ¬ 가지 μˆ˜μ •μ„ λ„μž…ν•©λ‹ˆλ‹€. μƒˆλ‘œμš΄ 컴포저블 ν•¨μˆ˜μΈ JobisVerificationButton이 μΆ”κ°€λ˜μ–΄ 인증 μ½”λ“œ 전솑 μƒνƒœμ— 따라 λ‹€λ₯Έ ν…μŠ€νŠΈλ₯Ό ν‘œμ‹œν•©λ‹ˆλ‹€. TextField ν•¨μˆ˜λŠ” μƒˆλ‘œμš΄ λ§€κ°œλ³€μˆ˜μΈ showVerificationButton, onVerificationClick, isSendAuthenticationCodeλ₯Ό ν¬ν•¨ν•˜λ„λ‘ μ—…λ°μ΄νŠΈλ˜μ–΄, 인증 λ²„νŠΌμ˜ κ°€μ‹œμ„±κ³Ό λ™μž‘μ„ μ œμ–΄ν•©λ‹ˆλ‹€. 이와 ν•¨κ»˜ μ—¬λŸ¬ νŒŒμΌμ—μ„œ UI ꡬ성 μš”μ†Œμ˜ κΈ°λŠ₯을 κ°„μ†Œν™”ν•˜κ³  ν–₯μƒμ‹œν‚€λŠ” 변경이 μ΄λ£¨μ–΄μ‘ŒμŠ΅λ‹ˆλ‹€.

Changes

파일 경둜 λ³€κ²½ μš”μ•½
core/design-system/src/main/java/team/.../JobisTextField.kt JobisVerificationButton μΆ”κ°€, TextField 및 JobisTextField에 μƒˆλ‘œμš΄ λ§€κ°œλ³€μˆ˜ μΆ”κ°€.
core/design-system/src/main/res/values/strings.xml μƒˆλ‘œμš΄ λ¬Έμžμ—΄ λ¦¬μ†ŒμŠ€ authentication 및 re_send_authentication_code μΆ”κ°€.
feature/signup/src/main/java/team/.../InputEmailScreen.kt JobisSmallButton 제거, JobisTextField에 λ§€κ°œλ³€μˆ˜ μΆ”κ°€ν•˜μ—¬ κΈ°λŠ₯ 톡합.
feature/verify-email/src/main/java/team/.../VerifyEmailScreen.kt JobisSmallButton 제거, JobisTextField에 λ§€κ°œλ³€μˆ˜ μΆ”κ°€ν•˜μ—¬ 인증 μ½”λ“œ 전솑 λͺ¨λΈ 톡합.
feature/verify-email/src/main/java/team/.../VerifyEmailViewModel.kt onAuthenticationClick λ©”μ„œλ“œμ—μ„œ 이메일 μ£Όμ†Œ ꡬ성 μˆ˜μ •, 일관성 ν–₯상.

Possibly related issues

Possibly related PRs

Suggested labels

λ¦¬νŒ©ν† λ§

Suggested reviewers

  • Tmdhoon2

Poem

🐰
ν…μŠ€νŠΈ ν•„λ“œμ— λ²„νŠΌμ΄ 생겼넀,
μΈμ¦ν•˜κΈ°, 이제 μ‰½κ²Œ ν•  수 μžˆλ„€.
클릭 ν•œ λ²ˆμ— μ½”λ“œκ°€ λ‚ μ•„κ°€,
Rabbit의 기쁨, μ—¬κΈ°μ„œ μ‹œμž‘ν•˜λ„€!
πŸ₯•βœ¨


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❀️ Share
πŸͺ§ Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Outside diff range and nitpick comments (3)
core/design-system/src/main/res/values/strings.xml (1)

27-27: μƒˆλ‘œμš΄ λ¬Έμžμ—΄ λ¦¬μ†ŒμŠ€κ°€ μΆ”κ°€λ˜μ—ˆμŠ΅λ‹ˆλ‹€. λͺ…λͺ… κ·œμΉ™μ— λŒ€ν•œ μž‘μ€ μ œμ•ˆμ΄ μžˆμŠ΅λ‹ˆλ‹€.

"re_send_authentication_code" 킀와 "μž¬λ°œμ†‘" 값을 가진 μƒˆλ‘œμš΄ λ¬Έμžμ—΄ λ¦¬μ†ŒμŠ€κ°€ 적절히 μΆ”κ°€λ˜μ—ˆμŠ΅λ‹ˆλ‹€. μ΄λŠ” 인증 μ½”λ“œ μž¬μ „μ†‘ κΈ°λŠ₯에 μ ν•©ν•œ ν…μŠ€νŠΈμž…λ‹ˆλ‹€.

λ‹€λ§Œ, κΈ°μ‘΄ 파일의 λͺ…λͺ… κ·œμΉ™κ³Όμ˜ 일관성을 μœ„ν•΄ ν‚€ 이름을 "resendauthenticationcode"둜 λ³€κ²½ν•˜λŠ” 것을 κ³ λ €ν•΄ λ³΄μ‹œκΈ° λ°”λžλ‹ˆλ‹€. 예λ₯Ό λ“€μ–΄:

-    <string name="re_send_authentication_code">μž¬λ°œμ†‘</string>
+    <string name="resendauthenticationcode">μž¬λ°œμ†‘</string>

μ΄λ ‡κ²Œ ν•˜λ©΄ 파일 λ‚΄μ˜ λ‹€λ₯Έ λ¬Έμžμ—΄ λ¦¬μ†ŒμŠ€μ™€ μΌκ΄€λœ ν˜•μ‹μ„ μœ μ§€ν•  수 μžˆμŠ΅λ‹ˆλ‹€.

feature/verify-email/src/main/java/team/retum/jobis/verify/email/ui/VerifyEmailScreen.kt (1)

153-156: UI κ°œμ„ μ„ μœ„ν•œ 쒋은 λ³€κ²½μ‚¬ν•­μž…λ‹ˆλ‹€.

이메일 μž…λ ₯ ν•„λ“œμ— 인증 λ²„νŠΌμ„ ν†΅ν•©ν•œ 것은 μ‚¬μš©μž κ²½ν—˜μ„ ν–₯μƒμ‹œν‚€λŠ” 쒋은 μ ‘κ·Ό λ°©μ‹μž…λ‹ˆλ‹€. μ½”λ“œκ°€ 간결해지고 UIκ°€ 더 μ§κ΄€μ μœΌλ‘œ λ³€κ²½λ˜μ—ˆμŠ΅λ‹ˆλ‹€.

가독성을 λ”μš± 높이기 μœ„ν•΄ λ‹€μŒκ³Ό 같이 λ§€κ°œλ³€μˆ˜λ₯Ό μ •λ ¬ν•˜λŠ” 것을 κ³ λ €ν•΄ λ³΄μ„Έμš”:

JobisTextField(
    title = stringResource(id = R.string.email),
    value = email,
    hint = stringResource(id = R.string.hint_email),
    onValueChange = onEmailChange,
    showEmailHint = true,
    checkDescription = stringResource(id = R.string.description_email_sent),
    errorDescription = stringResource(id = R.string.description_conflict_email),
    showDescription = showEmailDescription,
    descriptionType = emailDescriptionType,
    showVerificationButton = true,
    onVerificationClick = onAuthenticationClick,
    isSendAuthenticationCode = sendAuthenticationCode(),
)

μ΄λ ‡κ²Œ ν•˜λ©΄ μƒˆλ‘œ μΆ”κ°€λœ λ§€κ°œλ³€μˆ˜λ“€μ΄ 더 λˆˆμ— λ„κ²Œ λ©λ‹ˆλ‹€.

core/design-system/src/main/java/team/retum/jobisdesignsystemv2/textfield/JobisTextField.kt (1)

135-135: ν…μŠ€νŠΈ 색상을 onPrimary둜 λ³€κ²½ν•˜μ—¬ 가독성을 ν–₯μƒμ‹œν‚€μ„Έμš”.

λ²„νŠΌμ˜ 배경색이 JobisTheme.colors.primaryμ΄λ―€λ‘œ, ν…μŠ€νŠΈ 색상을 JobisTheme.colors.onPrimary둜 λ³€κ²½ν•˜λ©΄ λŒ€λΉ„κ°€ λ†’μ•„μ Έ μ‚¬μš©μžμ—κ²Œ 더 λͺ…ν™•ν•˜κ²Œ 보일 κ²ƒμž…λ‹ˆλ‹€.

μ œμ•ˆλœ μˆ˜μ • 사항:

-            color = JobisTheme.colors.onSurfaceVariant,
+            color = JobisTheme.colors.onPrimary,
πŸ“œ Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

πŸ“₯ Commits

Files that changed from the base of the PR and between e765c1b and 5772cf3.

πŸ“’ Files selected for processing (5)
  • core/design-system/src/main/java/team/retum/jobisdesignsystemv2/textfield/JobisTextField.kt (6 hunks)
  • core/design-system/src/main/res/values/strings.xml (1 hunks)
  • feature/signup/src/main/java/team/retum/signup/ui/InputEmailScreen.kt (1 hunks)
  • feature/verify-email/src/main/java/team/retum/jobis/verify/email/ui/VerifyEmailScreen.kt (1 hunks)
  • feature/verify-email/src/main/java/team/retum/jobis/verify/email/viewmodel/VerifyEmailViewModel.kt (1 hunks)
🧰 Additional context used
πŸ”‡ Additional comments (3)
core/design-system/src/main/res/values/strings.xml (1)

26-26: LGTM: μƒˆλ‘œμš΄ λ¬Έμžμ—΄ λ¦¬μ†ŒμŠ€κ°€ 적절히 μΆ”κ°€λ˜μ—ˆμŠ΅λ‹ˆλ‹€.

"authentication" 킀와 "인증 ν•˜κΈ°" 값을 가진 μƒˆλ‘œμš΄ λ¬Έμžμ—΄ λ¦¬μ†ŒμŠ€κ°€ μ˜¬λ°”λ₯΄κ²Œ μΆ”κ°€λ˜μ—ˆμŠ΅λ‹ˆλ‹€. μ΄λŠ” 기쑴의 λͺ…λͺ… κ·œμΉ™μ„ λ”°λ₯΄κ³  있으며, 인증 κΈ°λŠ₯에 μ ν•©ν•œ ν…μŠ€νŠΈμž…λ‹ˆλ‹€.

feature/verify-email/src/main/java/team/retum/jobis/verify/email/viewmodel/VerifyEmailViewModel.kt (1)

73-73: 이메일 μ£Όμ†Œ ꡬ성 κ°œμ„ 

이 변경은 onAuthenticationClick λ©”μ„œλ“œμ—μ„œ 이메일 μ£Όμ†Œλ₯Ό κ΅¬μ„±ν•˜λŠ” 방식을 κ°œμ„ ν–ˆμŠ΅λ‹ˆλ‹€. EMAIL_ADDRESSλ₯Ό μΌκ΄€λ˜κ²Œ μΆ”κ°€ν•¨μœΌλ‘œμ¨ onNextClick λ©”μ„œλ“œμ™€ λ™μΌν•œ λ°©μ‹μœΌλ‘œ 이메일 μ£Όμ†Œλ₯Ό μ²˜λ¦¬ν•˜κ²Œ λ˜μ—ˆμŠ΅λ‹ˆλ‹€.

μ΄λŸ¬ν•œ 변경은 λ‹€μŒκ³Ό 같은 이점을 μ œκ³΅ν•©λ‹ˆλ‹€:

  1. μ½”λ“œμ˜ 일관성 ν–₯상
  2. 이메일 μ£Όμ†Œ 처리의 톡일성 확보
  3. 잠재적인 버그 예방
feature/signup/src/main/java/team/retum/signup/ui/InputEmailScreen.kt (1)

148-151: JobisTextField μ»΄ν¬λ„ŒνŠΈμ˜ κ°œμ„ λœ κΈ°λŠ₯성을 μŠΉμΈν•©λ‹ˆλ‹€.

JobisTextField μ»΄ν¬λ„ŒνŠΈμ— μƒˆλ‘œμš΄ λ§€κ°œλ³€μˆ˜λ₯Ό μΆ”κ°€ν•œ 것은 쒋은 κ°œμ„ μž…λ‹ˆλ‹€. μ΄λŸ¬ν•œ λ³€κ²½μœΌλ‘œ 인해:

  1. μ»΄ν¬λ„ŒνŠΈμ˜ μž¬μ‚¬μš©μ„±μ΄ ν–₯μƒλ˜μ—ˆμŠ΅λ‹ˆλ‹€.
  2. 인증 λ²„νŠΌ κΈ°λŠ₯이 ν…μŠ€νŠΈ ν•„λ“œμ— 직접 ν†΅ν•©λ˜μ–΄ μ½”λ“œκ°€ 더 λͺ¨λ“ˆν™”λ˜μ—ˆμŠ΅λ‹ˆλ‹€.
  3. UI ꡬ성이 더 μœ μ—°ν•΄μ Έ λ‹€μ–‘ν•œ 상황에 μ‰½κ²Œ μ μš©ν•  수 있게 λ˜μ—ˆμŠ΅λ‹ˆλ‹€.

μ΄λŸ¬ν•œ 변경은 μ½”λ“œμ˜ μœ μ§€λ³΄μˆ˜μ„±κ³Ό 가독성을 크게 ν–₯μƒμ‹œν‚΅λ‹ˆλ‹€.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Outside diff range and nitpick comments (2)
core/design-system/src/main/java/team/retum/jobisdesignsystemv2/textfield/JobisTextField.kt (2)

104-136: 인증 λ²„νŠΌ κ΅¬ν˜„μ΄ 잘 λ˜μ—ˆμŠ΅λ‹ˆλ‹€. 클릭 μ˜μ—­ κ°œμ„ μ„ μœ„ν•œ μ œμ•ˆμ΄ μžˆμŠ΅λ‹ˆλ‹€.

JobisVerificationButton ν•¨μˆ˜κ°€ 잘 κ΅¬ν˜„λ˜μ—ˆμŠ΅λ‹ˆλ‹€. ν•˜μ§€λ§Œ 클릭 κ°€λŠ₯ν•œ μ˜μ—­μ„ μ΅œλŒ€ν™”ν•˜κΈ° μœ„ν•΄ modifier μˆœμ„œλ₯Ό μ•½κ°„ μ‘°μ •ν•˜λŠ” 것이 μ’‹κ² μŠ΅λ‹ˆλ‹€.

λ‹€μŒκ³Ό 같이 μˆ˜μ •ν•˜λŠ” 것을 κ³ λ €ν•΄λ³΄μ„Έμš”:

        modifier = modifier
-           .clickable(
-               onClick = onVerificationClick,
-           )
            .background(
                color = JobisTheme.colors.primary,
                shape = RoundedCornerShape(8.dp),
            )
            .padding(
                horizontal = 8.dp,
                vertical = 4.dp,
            )
+           .clickable(
+               onClick = onVerificationClick,
+           )

μ΄λ ‡κ²Œ ν•˜λ©΄ νŒ¨λ”©μ„ ν¬ν•¨ν•œ 전체 μ˜μ—­μ΄ 클릭 κ°€λŠ₯ν•΄μ§‘λ‹ˆλ‹€.


363-365: JobisTextField ν•¨μˆ˜μ— μƒˆ λ§€κ°œλ³€μˆ˜κ°€ 적절히 μΆ”κ°€λ˜μ—ˆμŠ΅λ‹ˆλ‹€. λ¬Έμ„œ μ—…λ°μ΄νŠΈλ₯Ό κ³ λ €ν•΄λ³΄μ„Έμš”.

JobisTextField ν•¨μˆ˜μ— 인증 λ²„νŠΌ κ΄€λ ¨ μƒˆ λ§€κ°œλ³€μˆ˜λ“€μ΄ 잘 μΆ”κ°€λ˜μ—ˆμŠ΅λ‹ˆλ‹€. 기본값을 μ œκ³΅ν•˜μ—¬ 이전 λ²„μ „κ³Όμ˜ ν˜Έν™˜μ„±μ„ μœ μ§€ν•œ 것도 μ’‹μŠ΅λ‹ˆλ‹€.

ν•¨μˆ˜ 주석(KDoc)에 μƒˆλ‘œ μΆ”κ°€λœ λ§€κ°œλ³€μˆ˜λ“€μ— λŒ€ν•œ μ„€λͺ…을 μΆ”κ°€ν•˜λŠ” 것을 κ³ λ €ν•΄λ³΄μ„Έμš”. μ΄λŠ” λ‹€λ₯Έ κ°œλ°œμžλ“€μ΄ 이 μ»΄ν¬λ„ŒνŠΈλ₯Ό μ‚¬μš©ν•  λ•Œ 도움이 될 κ²ƒμž…λ‹ˆλ‹€.

πŸ“œ Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

πŸ“₯ Commits

Files that changed from the base of the PR and between 5772cf3 and 9b2f636.

πŸ“’ Files selected for processing (1)
  • core/design-system/src/main/java/team/retum/jobisdesignsystemv2/textfield/JobisTextField.kt (6 hunks)
🧰 Additional context used
πŸ”‡ Additional comments (2)
core/design-system/src/main/java/team/retum/jobisdesignsystemv2/textfield/JobisTextField.kt (2)

52-52: μƒˆλ‘œμš΄ import 문이 적절히 μΆ”κ°€λ˜μ—ˆμŠ΅λ‹ˆλ‹€.

clickable μœ ν‹Έλ¦¬ν‹°λ₯Ό κ°€μ Έμ˜€λŠ” import 문이 μΆ”κ°€λ˜μ—ˆμŠ΅λ‹ˆλ‹€. μ΄λŠ” μƒˆλ‘œμš΄ 인증 λ²„νŠΌ κΈ°λŠ₯κ³Ό 관련이 μžˆμ–΄ λ³΄μž…λ‹ˆλ‹€.


150-152: TextField ν•¨μˆ˜μ— 인증 λ²„νŠΌ κΈ°λŠ₯이 잘 ν†΅ν•©λ˜μ—ˆμŠ΅λ‹ˆλ‹€.

TextField ν•¨μˆ˜μ— μƒˆλ‘œμš΄ λ§€κ°œλ³€μˆ˜λ“€μ΄ μΆ”κ°€λ˜μ—ˆκ³ , JobisVerificationButton이 μ‘°κ±΄λΆ€λ‘œ λ Œλ”λ§λ˜λ„λ‘ κ΅¬ν˜„λ˜μ—ˆμŠ΅λ‹ˆλ‹€. 이 변경사항듀은 κΈ°μ‘΄ μ»΄ν¬λ„ŒνŠΈμ˜ ꡬ쑰λ₯Ό 잘 λ”°λ₯΄κ³  있으며, μƒˆλ‘œμš΄ κΈ°λŠ₯을 적절히 ν†΅ν•©ν•˜κ³  μžˆμŠ΅λ‹ˆλ‹€.

Also applies to: 234-239

Copy link
Member

Choose a reason for hiding this comment

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

이거 μœ„μ— Kdoc ν•œ 번 μž‘μ„±ν•΄μ£Όμ‹€ 수 μžˆλ‚˜μš”??

Copy link
Member Author

Choose a reason for hiding this comment

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

μΆ”κ°€ν•˜μ˜€μŠ΅λ‹ˆλ‹Ή

parkuiery and others added 2 commits October 18, 2024 23:34
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Outside diff range and nitpick comments (2)
core/design-system/src/main/java/team/retum/jobisdesignsystemv2/textfield/JobisTextField.kt (2)

104-136: μƒˆλ‘œμš΄ JobisVerificationButton 컴포저블이 잘 κ΅¬ν˜„λ˜μ—ˆμŠ΅λ‹ˆλ‹€.

이 컴포저블은 인증 λ²„νŠΌμ˜ κΈ°λŠ₯을 잘 μΊ‘μŠν™”ν•˜κ³  있으며, μž¬μ‚¬μš© κ°€λŠ₯ν•œ λ°©μ‹μœΌλ‘œ κ΅¬ν˜„λ˜μ—ˆμŠ΅λ‹ˆλ‹€. λ‹€μŒκ³Ό 같은 점이 특히 μ’‹μŠ΅λ‹ˆλ‹€:

  1. stringResourceλ₯Ό μ‚¬μš©ν•˜μ—¬ λ‹€κ΅­μ–΄ 지원을 μš©μ΄ν•˜κ²Œ ν–ˆμŠ΅λ‹ˆλ‹€.
  2. JobisTheme와 JobisTypographyλ₯Ό μ‚¬μš©ν•˜μ—¬ λ””μžμΈ μ‹œμŠ€ν…œκ³Όμ˜ 일관성을 μœ μ§€ν–ˆμŠ΅λ‹ˆλ‹€.
  3. clickable μˆ˜μ •μžλ₯Ό μ˜¬λ°”λ₯΄κ²Œ μ μš©ν•˜μ—¬ 전체 μ˜μ—­μ΄ 클릭 κ°€λŠ₯ν•˜λ„λ‘ ν–ˆμŠ΅λ‹ˆλ‹€.

접근성을 κ°œμ„ ν•˜κΈ° μœ„ν•΄ Box에 semantics μˆ˜μ •μžλ₯Ό μΆ”κ°€ν•˜λŠ” 것을 κ³ λ €ν•΄λ³΄μ„Έμš”. 예λ₯Ό λ“€μ–΄:

.semantics { role = Role.Button }

μ΄λ ‡κ²Œ ν•˜λ©΄ 슀크린 리더 μ‚¬μš©μžμ—κ²Œ 이 μš”μ†Œκ°€ λ²„νŠΌμž„μ„ λͺ…ν™•νžˆ μ•Œλ¦΄ 수 μžˆμŠ΅λ‹ˆλ‹€.


317-319: JobisTextField 컴포저블이 인증 κΈ°λŠ₯을 μ§€μ›ν•˜λ„λ‘ 적절히 μˆ˜μ •λ˜μ—ˆμŠ΅λ‹ˆλ‹€.

μƒˆλ‘œμš΄ λ§€κ°œλ³€μˆ˜ showVerificationButton, onVerificationClick, isSendAuthenticationCodeλ₯Ό μΆ”κ°€ν•˜κ³  이λ₯Ό λ‚΄λΆ€ TextField에 μ „λ‹¬ν•˜λŠ” λ°©μ‹μœΌλ‘œ 인증 κΈ°λŠ₯을 잘 ν†΅ν•©ν–ˆμŠ΅λ‹ˆλ‹€. 특히 λ‹€μŒ 사항듀이 잘 μ²˜λ¦¬λ˜μ—ˆμŠ΅λ‹ˆλ‹€:

  1. μƒˆ λ§€κ°œλ³€μˆ˜μ— λŒ€ν•œ κΈ°λ³Έκ°’ μ„€μ •μœΌλ‘œ κΈ°μ‘΄ μ‚¬μš© μ½”λ“œμ™€μ˜ ν˜Έν™˜μ„±μ„ μœ μ§€ν–ˆμŠ΅λ‹ˆλ‹€.
  2. KDoc에 μƒˆ λ§€κ°œλ³€μˆ˜μ— λŒ€ν•œ μ„€λͺ…을 μΆ”κ°€ν•˜μ—¬ λ¬Έμ„œν™”λ₯Ό 잘 μœ μ§€ν–ˆμŠ΅λ‹ˆλ‹€.

KDoc의 가독성을 λ”μš± κ°œμ„ ν•˜κΈ° μœ„ν•΄, μƒˆλ‘œ μΆ”κ°€λœ λ§€κ°œλ³€μˆ˜λ“€μ— λŒ€ν•œ μ„€λͺ…을 쑰금 더 μƒμ„Ένžˆ μž‘μ„±ν•˜λŠ” 것이 μ’‹κ² μŠ΅λ‹ˆλ‹€. 예λ₯Ό λ“€μ–΄:

/**
 * @param showVerificationButton 인증 λ²„νŠΌμ„ ν‘œμ‹œν• μ§€ μ—¬λΆ€λ₯Ό κ²°μ •ν•©λ‹ˆλ‹€. 기본값은 falseμž…λ‹ˆλ‹€.
 * @param onVerificationClick 인증 λ²„νŠΌμ„ ν΄λ¦­ν–ˆμ„ λ•Œ 호좜될 ν•¨μˆ˜μž…λ‹ˆλ‹€. 기본값은 빈 λžŒλ‹€ ν•¨μˆ˜μž…λ‹ˆλ‹€.
 * @param isSendAuthenticationCode 인증 μ½”λ“œκ°€ 이미 μ „μ†‘λ˜μ—ˆλŠ”μ§€ μ—¬λΆ€λ₯Ό λ‚˜νƒ€λƒ…λ‹ˆλ‹€. 이 값에 따라 λ²„νŠΌμ˜ ν…μŠ€νŠΈκ°€ λ³€κ²½λ©λ‹ˆλ‹€. 기본값은 falseμž…λ‹ˆλ‹€.
 */

μ΄λ ‡κ²Œ ν•˜λ©΄ 각 λ§€κ°œλ³€μˆ˜μ˜ μ—­ν• κ³Ό 기본값에 λŒ€ν•΄ 더 λͺ…ν™•ν•˜κ²Œ 이해할 수 μžˆμŠ΅λ‹ˆλ‹€.

Also applies to: 366-368, 405-407

πŸ“œ Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

πŸ“₯ Commits

Files that changed from the base of the PR and between 6b44275 and e5f767c.

πŸ“’ Files selected for processing (1)
  • core/design-system/src/main/java/team/retum/jobisdesignsystemv2/textfield/JobisTextField.kt (7 hunks)
🧰 Additional context used
πŸ”‡ Additional comments (2)
core/design-system/src/main/java/team/retum/jobisdesignsystemv2/textfield/JobisTextField.kt (2)

52-52: μƒˆλ‘œμš΄ import 문이 적절히 μΆ”κ°€λ˜μ—ˆμŠ΅λ‹ˆλ‹€.

team.retum.jobisdesignsystemv2.utils.clickableλ₯Ό importν•˜μ—¬ μ»€μŠ€ν…€ clickable μˆ˜μ •μžλ₯Ό μ‚¬μš©ν•  수 있게 λ˜μ—ˆμŠ΅λ‹ˆλ‹€. μ΄λŠ” ν”„λ‘œμ νŠΈ μ „λ°˜μ— 걸쳐 μΌκ΄€λœ 클릭 λ™μž‘μ„ μ œκ³΅ν•˜λŠ” 데 도움이 될 κ²ƒμž…λ‹ˆλ‹€.


150-152: TextField 컴포저블에 인증 λ²„νŠΌ κΈ°λŠ₯이 적절히 ν†΅ν•©λ˜μ—ˆμŠ΅λ‹ˆλ‹€.

μƒˆλ‘œμš΄ λ§€κ°œλ³€μˆ˜ showVerificationButton, onVerificationClick, isSendAuthenticationCodeλ₯Ό μΆ”κ°€ν•˜κ³ , μ‘°κ±΄λΆ€λ‘œ JobisVerificationButton을 λ Œλ”λ§ν•˜λŠ” λ°©μ‹μœΌλ‘œ 인증 κΈ°λŠ₯을 ν…μŠ€νŠΈ ν•„λ“œμ— 잘 ν†΅ν•©ν–ˆμŠ΅λ‹ˆλ‹€. μ΄λŸ¬ν•œ μ ‘κ·Ό 방식은 λ‹€μŒκ³Ό 같은 이점이 μžˆμŠ΅λ‹ˆλ‹€:

  1. μž¬μ‚¬μš©μ„±: 인증 λ²„νŠΌμ˜ ν‘œμ‹œ μ—¬λΆ€λ₯Ό μ™ΈλΆ€μ—μ„œ μ œμ–΄ν•  수 μžˆμ–΄ μœ μ—°μ„±μ΄ ν–₯μƒλ˜μ—ˆμŠ΅λ‹ˆλ‹€.
  2. κ΄€μ‹¬μ‚¬μ˜ 뢄리: 인증 둜직이 TextField λ‚΄λΆ€λ‘œ μΊ‘μŠν™”λ˜μ–΄ μ‚¬μš©ν•˜λŠ” μͺ½μ˜ μ½”λ“œκ°€ κ°„κ²°ν•΄μ§‘λ‹ˆλ‹€.
  3. 일관성: κΈ°μ‘΄ TextField ꡬ쑰λ₯Ό μœ μ§€ν•˜λ©΄μ„œ μƒˆλ‘œμš΄ κΈ°λŠ₯을 μžμ—°μŠ€λŸ½κ²Œ μΆ”κ°€ν–ˆμŠ΅λ‹ˆλ‹€.

Also applies to: 234-239

@parkuiery parkuiery requested a review from Tmdhoon2 October 18, 2024 23:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
버그 버그λ₯Ό μˆ˜μ •ν•©λ‹ˆλ‹€.
Projects
Development

Successfully merging this pull request may close these issues.

μΈμ¦ν•˜κΈ° ν…μŠ€νŠΈ ν•„λ“œ 높이 μˆ˜μ •
2 participants