Skip to content

Conversation

ashwon12
Copy link
Contributor

@ashwon12 ashwon12 commented Jan 23, 2025

๐Ÿ’ก Issue

๐ŸŒฑ Key changes

  • ๋กœ๊ทธ์ธ ์Šคํฌ๋ฆฐ ์ƒ์„ฑ
  • ๋ทฐ๋ชจ๋ธ ์ƒ์„ฑ
  • state , intent, effect ์ƒ์„ฑ

โœ… To Reviewers

screen ๋‹จ์œ„๋กœ ๊ณ ๋ คํ•ด์„œ state ์„ ์–ธํ–ˆ์Šต๋‹ˆ๋‹ค !

  • UI ์ƒํƒœ ๊ด€๋ จ ์ถ”๊ฐ€ ์ˆ˜์ •

sealed class๋กœ ํ•˜๋‚˜์˜ State๋ฅผ ๋งŒ๋“ค๊ณ  ๊ตฌํ˜„ vs
ํ•˜๋‚˜์˜ State data class๋กœ ๊ด€๋ฆฌํ•˜๊ธฐ

( data class ๋กœ ๊ฐœ๋ฐœ )

  1. sealed class๊ฒฝ์šฐ state๋ณ„๋กœ ์ค‘๋ณต๋œ ๊ฐ’์ด ๋งŽ์•„์งˆ ์ˆ˜ ์žˆ์Œ
  2. mvistore ๋‚ด๋ถ€์—์„œ copy๋ฅผ ํ†ตํ•ด state ์—…๋ฐ์ดํŠธ๋˜๋„๋ก ๋˜์–ด์žˆ์Œ ( ์ด๋ฏธ data class์ฒ˜๋Ÿผ ๊ตฌํ˜„ )

๋‚ด์šฉ ์ •๋ฆฌ

๐Ÿ“ธ ์Šคํฌ๋ฆฐ์ƒท

๋กœ๊ทธ์ธ
แ„‰แ…ณแ„แ…ณแ„…แ…ตแ†ซแ„‰แ…ฃแ†บ 2025-01-23 แ„‹แ…ฉแ„’แ…ฎ 3 52 09

Summary by CodeRabbit

  • ์ƒˆ๋กœ์šด ๊ธฐ๋Šฅ

    • ๋กœ๊ทธ์ธ ํ™”๋ฉด์˜ ์‚ฌ์šฉ์ž ์ธํ„ฐํŽ˜์ด์Šค ๊ฐœ์„ 
    • ๋กœ๊ทธ์ธ ๋ฐ ํšŒ์›๊ฐ€์ž… ์ž…๋ ฅ ์„น์…˜ ์ถ”๊ฐ€
    • ๋กœ๊ทธ์ธ ์ƒํƒœ ๋ฐ ์ธํ…ํŠธ ๊ด€๋ฆฌ๋ฅผ ์œ„ํ•œ ์ƒˆ๋กœ์šด ์•„ํ‚คํ…์ฒ˜ ๋„์ž…
  • ๋ฒ„๊ทธ ์ˆ˜์ •

    • ๋กœ๊ทธ์ธ ํ™”๋ฉด์˜ ๊ตฌ์กฐ์  ๊ฐœ์„ ์„ ํ†ตํ•œ ์ž ์žฌ์  ๋ฒ„๊ทธ ํ•ด๊ฒฐ
  • UI ๋ณ€๊ฒฝ

    • ์ƒˆ๋กœ์šด ๋กœ๊ทธ์ธ ํ™”๋ฉด ๋””์ž์ธ ์ ์šฉ
    • ๋กœ๊ทธ์ธ ์ผ๋Ÿฌ์ŠคํŠธ๋ ˆ์ด์…˜ ์ถ”๊ฐ€
    • ์ž…๋ ฅ ํ•„๋“œ ๋ฐ ๋ฒ„ํŠผ ์Šคํƒ€์ผ ์—…๋ฐ์ดํŠธ
  • ์ข…์†์„ฑ ์—…๋ฐ์ดํŠธ

    • Hilt ๋„ค๋น„๊ฒŒ์ด์…˜ ์ปดํฌ์ฆˆ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ ์ถ”๊ฐ€
    • ์•ฑ ์ปดํฌ๋„ŒํŠธ ์˜์กด์„ฑ ๊ด€๋ฆฌ ๊ฐœ์„ 

@ashwon12 ashwon12 added Feature ๊ธฐ๋Šฅ ์ถ”๊ฐ€, ๊ฐœ๋ฐœ Design UI ๋ฐ ๋””์ž์ธ ๊ด€๋ จ ์ž‘์—… labels Jan 23, 2025
@ashwon12 ashwon12 requested a review from jinukeu January 23, 2025 06:53
@ashwon12 ashwon12 self-assigned this Jan 23, 2025
Copy link

coderabbitai bot commented Jan 23, 2025

Walkthrough

์ด ํ’€ ๋ฆฌํ€˜์ŠคํŠธ๋Š” ๋กœ๊ทธ์ธ ๊ธฐ๋Šฅ์˜ ์ƒˆ๋กœ์šด ๊ตฌํ˜„์„ ์†Œ๊ฐœํ•ฉ๋‹ˆ๋‹ค. ํ”„๋กœ์ ํŠธ์— Hilt ์ข…์†์„ฑ ์ฃผ์ž…์„ ํ†ตํ•ฉํ•˜๊ณ , ๋กœ๊ทธ์ธ ํ™”๋ฉด์˜ ๊ตฌ์กฐ๋ฅผ ๊ฐœ์„ ํ•˜๋ฉฐ, ์ƒํƒœ ๊ด€๋ฆฌ๋ฅผ ์œ„ํ•œ ์ƒˆ๋กœ์šด ์•„ํ‚คํ…์ฒ˜๋ฅผ ๋„์ž…ํ–ˆ์Šต๋‹ˆ๋‹ค. ์ฃผ์š” ๋ณ€๊ฒฝ ์‚ฌํ•ญ์€ LoginViewModel, LoginState, LoginScreen ๋“ฑ์˜ ์ƒˆ๋กœ์šด ์ปดํฌ๋„ŒํŠธ ์ถ”๊ฐ€์™€ ๊ธฐ์กด ๋„ค๋น„๊ฒŒ์ด์…˜ ๋กœ์ง์˜ ์—…๋ฐ์ดํŠธ๋ฅผ ํฌํ•จํ•ฉ๋‹ˆ๋‹ค.

Changes

ํŒŒ์ผ ๋ณ€๊ฒฝ ์š”์•ฝ
app/src/main/java/com/yapp/app/official/navigation/YappNavHost.kt ํŒŒ๋ผ๋ฏธํ„ฐ ์ด๋ฆ„ ๋ณ€๊ฒฝ: onSignUpClick โ†’ onClickSignUp
build-logic/src/main/java/com/yapp/HiltAndroid.kt Hilt ๋„ค๋น„๊ฒŒ์ด์…˜ ์ปดํฌ์ฆˆ ์˜์กด์„ฑ ์ถ”๊ฐ€
core/ui/build.gradle.kts androidx.appcompat ์˜์กด์„ฑ ์ œ๊ฑฐ
feature/login/build.gradle.kts Hilt ํ”Œ๋Ÿฌ๊ทธ์ธ ์ถ”๊ฐ€
feature/login/src/main/java/com/yapp/feature/login/* ๋กœ๊ทธ์ธ ๊ด€๋ จ ์ƒˆ๋กœ์šด ์ปดํฌ๋„ŒํŠธ ๋ฐ ๊ธฐ๋Šฅ ์ถ”๊ฐ€
gradle/libs.versions.toml Hilt ๋„ค๋น„๊ฒŒ์ด์…˜ ์ปดํฌ์ฆˆ ๋ฒ„์ „ ์ฐธ์กฐ ์ถ”๊ฐ€

Assessment against linked issues

๋ชฉํ‘œ ํ•ด๊ฒฐ ์—ฌ๋ถ€ ์„ค๋ช…
๋กœ๊ทธ์ธ ๋ทฐ ๊ตฌํ˜„ [#23] โœ…

Possibly related PRs

  • Feature/#26 navigationย #27: ๋กœ๊ทธ์ธ ๋„ค๋น„๊ฒŒ์ด์…˜ ๊ทธ๋ž˜ํ”„ ํŒŒ๋ผ๋ฏธํ„ฐ ์ด๋ฆ„ ๋ณ€๊ฒฝ๊ณผ ๊ด€๋ จ

Suggested labels

CodeRabbit

Suggested reviewers

  • jinukeu

Poem

๐Ÿฐ ๋กœ๊ทธ์ธ์˜ ๋ฌธ์„ ์—ด๋ฉฐ
์ฝ”๋“œ์˜ ํ† ๋ผ ๊นก์ด๊นก์ด
์ƒํƒœ์™€ ๋ทฐ๊ฐ€ ์ถค์„ ์ถ”๋„ค
Hilt์˜ ๋งˆ๋ฒ•์œผ๋กœ ๋น›๋‚˜๋Š” ๊ธธ
์ƒˆ๋กœ์šด ๊ธฐ๋Šฅ ๋ฐ˜์ง๋ฐ˜์ง! ๐ŸŒŸ


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:

โ€ผ๏ธ IMPORTANT
Auto-reply has been disabled for this repository in the CodeRabbit settings. The CodeRabbit bot will not respond to your replies unless it is explicitly tagged.

  • 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 generate docstrings to generate docstrings for this PR. (Beta)
  • @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.

@ashwon12
Copy link
Contributor Author

@jinukeu
์ง„์šฑ๋‹˜ state ์ •์˜๋ฅผ ๋‹ค์‹œ ํ•ด์•ผํ•  ๊ฒƒ ๊ฐ™์•„์„œ ์ˆ˜์ • ๋จธ์ง€ ์™„๋ฃŒํ•˜๊ณ  ์žฌ์š”์ฒญ ๋“œ๋ฆฌ๊ฒ ์Šต๋‹ˆ๋‹ค !!!!

@ashwon12 ashwon12 requested a review from jinukeu January 24, 2025 18:50
@ashwon12
Copy link
Contributor Author

@jinukeu ๋ฆฌ๋ทฐ ์žฌ์š”์ฒญ ๋“œ๋ฆฝ๋‹ˆ๋‹น

Copy link
Member

@jinukeu jinukeu left a comment

Choose a reason for hiding this comment

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

๋„ค์ด๋ฐ ๋ถ€๋ถ„์€ ๊ฐ™์ด ๋งž์ถฐ๋ณด๋ฉด ์ข‹์„ ๊ฒƒ ๊ฐ™๋„ค์š”~!

@@ -21,7 +21,7 @@ fun YappNavHost(
modifier = modifier,
) {
loginNavGraph(
signupDestination = { navigator.navigateSignUpScreen() }
onClickSignUp = { navigator.navigateSignUpScreen() }
Copy link
Member

Choose a reason for hiding this comment

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

A: navigateToSignUp ๋„ค์ด๋ฐ์ด ๋” ์ข‹์„๊ฑฐ๊ฐ™์•„์š”

is LoginSideEffect.ShowToast -> {
Toast.makeText(context, effect.message, Toast.LENGTH_SHORT).show()
}
is LoginSideEffect.ShowSignUpDialog -> {}
Copy link
Member

Choose a reason for hiding this comment

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

A: ShowSignUpDialog๋Š” SideEffect๋ณด๋‹ค๋Š” State๋กœ ๊ด€๋ฆฌํ•˜๋Š”๊ฒŒ ์ข‹์„๊ฑฐ์—์š” (๋‹ค์Œ PR์—์„œ ํ•œ๋ฒˆ ํ•ด๋ณด์‹œ์ฃ )

@ashwon12
Copy link
Contributor Author

@coderabbitai review

Copy link

coderabbitai bot commented Jan 25, 2025

โœ… Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

Copy link

@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: 21

๐Ÿ“œ Review details

Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
Plan: Pro

๐Ÿ“ฅ Commits

Reviewing files that changed from the base of the PR and between 81ab12d and 409f40a.

๐Ÿ“’ Files selected for processing (15)
  • app/src/main/java/com/yapp/app/official/navigation/YappNavHost.kt (1 hunks)
  • build-logic/src/main/java/com/yapp/HiltAndroid.kt (1 hunks)
  • core/ui/build.gradle.kts (0 hunks)
  • feature/login/build.gradle.kts (1 hunks)
  • feature/login/src/main/java/com/yapp/feature/login/LoginScreen.kt (1 hunks)
  • feature/login/src/main/java/com/yapp/feature/login/LoginState.kt (1 hunks)
  • feature/login/src/main/java/com/yapp/feature/login/LoginViewModel.kt (1 hunks)
  • feature/login/src/main/java/com/yapp/feature/login/component/LoginDivider.kt (1 hunks)
  • feature/login/src/main/java/com/yapp/feature/login/component/LoginInputSection.kt (1 hunks)
  • feature/login/src/main/java/com/yapp/feature/login/component/LoginSignUpSection.kt (1 hunks)
  • feature/login/src/main/java/com/yapp/feature/login/component/TopTitle.kt (1 hunks)
  • feature/login/src/main/java/com/yapp/feature/login/navigation/LoginNavigation.kt (1 hunks)
  • feature/login/src/main/res/drawable/illust_login_yappu.xml (1 hunks)
  • feature/login/src/main/res/values/strings.xml (1 hunks)
  • gradle/libs.versions.toml (2 hunks)
๐Ÿ’ค Files with no reviewable changes (1)
  • core/ui/build.gradle.kts
๐Ÿ”‡ Additional comments (8)
feature/login/src/main/res/drawable/illust_login_yappu.xml (1)

1-95: ์ „๋ฐ˜์ ์ธ ๋ฒกํ„ฐ ๋“œ๋กœ์–ด๋ธ” ๊ตฌํ˜„์ด ์ž˜ ๋˜์–ด์žˆ์Šต๋‹ˆ๋‹ค.

๋ณต์žกํ•œ ์ผ๋Ÿฌ์ŠคํŠธ๋ ˆ์ด์…˜์„ ๋ฒกํ„ฐ ๋“œ๋กœ์–ด๋ธ”๋กœ ์ž˜ ๊ตฌํ˜„ํ•˜์˜€์Šต๋‹ˆ๋‹ค. ๋‹ค๋งŒ, ์œ„์—์„œ ์–ธ๊ธ‰ํ•œ ์ตœ์ ํ™” ์‚ฌํ•ญ๋“ค์„ ๊ณ ๋ คํ•˜์—ฌ ๊ฐœ์„ ํ•˜๋ฉด ๋” ์ข‹์„ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค.

build-logic/src/main/java/com/yapp/HiltAndroid.kt (1)

16-16: Hilt Navigation Compose ์˜์กด์„ฑ ์ถ”๊ฐ€๊ฐ€ ์ ์ ˆํ•ฉ๋‹ˆ๋‹ค.

๋กœ๊ทธ์ธ ๊ธฐ๋Šฅ์˜ ๋„ค๋น„๊ฒŒ์ด์…˜ ์š”๊ตฌ์‚ฌํ•ญ์„ ์œ„ํ•ด ํ•„์š”ํ•œ ์˜์กด์„ฑ์ด ์ž˜ ์ถ”๊ฐ€๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

feature/login/src/main/java/com/yapp/feature/login/LoginState.kt (2)

4-12: ๐Ÿ› ๏ธ Refactor suggestion

์ƒํƒœ ํด๋ž˜์Šค์˜ ์ผ๊ด€์„ฑ ์žˆ๋Š” ๋„ค์ด๋ฐ์ด ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค.

  1. ๋„ค์ด๋ฐ ์ผ๊ด€์„ฑ ๊ฐœ์„ :

    • pwFailDescription โ†’ passwordFailDescription
    • isPWVisible โ†’ isPasswordVisible
    • isActivateLoginButton โ†’ isLoginButtonEnabled
  2. ๊ธฐ๋ณธ ์ปดํฌ๋„ŒํŠธ์˜ ๋„ค์ด๋ฐ ๊ทœ์น™์„ ๋”ฐ๋ฅด๊ธฐ ์œ„ํ•ด:

    • failDescription โ†’ errorDescription
 data class LoginState(
     val id: String = "",
     val password: String = "",
-    val idFailDescription : String? = null,
-    val pwFailDescription : String? = null,
-    val isPWVisible: Boolean = false,
+    val idErrorDescription: String? = null,
+    val passwordErrorDescription: String? = null,
+    val isPasswordVisible: Boolean = false,
 ){
-    val isActivateLoginButton : Boolean = id.isNotEmpty() && password.isNotEmpty()
+    val isLoginButtonEnabled: Boolean = id.isNotEmpty() && password.isNotEmpty()
 }

Likely invalid or redundant comment.


14-19: ๐Ÿ› ๏ธ Refactor suggestion

LoginIntent ํด๋ž˜์Šค์˜ ์ผ๊ด€์„ฑ ๊ฐœ์„ ์ด ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค.

  1. ๋„ค์ด๋ฐ ์ผ๊ด€์„ฑ:
    • InputPW โ†’ InputPassword
  2. ํฌ๋งทํŒ… ์ผ๊ด€์„ฑ:
    • ๊ด„ํ˜ธ ์ฃผ๋ณ€ ๊ณต๋ฐฑ ์ œ๊ฑฐ ํ•„์š”
 sealed interface LoginIntent {
-    data class InputID (val id : String) : LoginIntent
-    data class InputPW ( val pw : String ) : LoginIntent
+    data class InputId(val id: String) : LoginIntent
+    data class InputPassword(val password: String) : LoginIntent
     data object ClickLoginButton : LoginIntent
     data object ClickSignUpButton : LoginIntent
 }

Likely invalid or redundant comment.

app/src/main/java/com/yapp/app/official/navigation/YappNavHost.kt (1)

24-24: ๐Ÿงน Nitpick (assertive)

๋„ค๋น„๊ฒŒ์ด์…˜ ํ•จ์ˆ˜ ๋„ค์ด๋ฐ ๊ฐœ์„ ์ด ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค.

์ด์ „ ๋ฆฌ๋ทฐ ํ”ผ๋“œ๋ฐฑ์— ๋”ฐ๋ผ ๋™์ž‘์„ ๋” ๋ช…ํ™•ํ•˜๊ฒŒ ๋‚˜ํƒ€๋‚ด๋Š” ๋„ค์ด๋ฐ์œผ๋กœ ๋ณ€๊ฒฝํ•˜๋Š” ๊ฒƒ์ด ์ข‹๊ฒ ์Šต๋‹ˆ๋‹ค:

  • navigateSignUpScreen โ†’ navigateToSignUp
-            onClickSignUp = { navigator.navigateSignUpScreen() }
+            onClickSignUp = { navigator.navigateToSignUp() }

Likely invalid or redundant comment.

feature/login/src/main/java/com/yapp/feature/login/component/LoginInputSection.kt (1)

49-62: ๐Ÿงน Nitpick (assertive)

Preview ํ•จ์ˆ˜๋ฅผ ๊ฐœ์„ ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

ํ”„๋ฆฌ๋ทฐ ํ•จ์ˆ˜์— ๋‹ค์Œ ๊ฐœ์„ ์‚ฌํ•ญ์„ ์ ์šฉํ•˜๋ฉด ์ข‹๊ฒ ์Šต๋‹ˆ๋‹ค:

  • ๋ถˆํ•„์š”ํ•œ Column ์ œ๊ฑฐ
  • ์˜๋ฏธ ์žˆ๋Š” ํ…Œ์ŠคํŠธ ๋ฐ์ดํ„ฐ ์‚ฌ์šฉ
  • ๋‹ค์–‘ํ•œ ์ƒํƒœ ํ…Œ์ŠคํŠธ (ํ™œ์„ฑ/๋น„ํ™œ์„ฑ ๋“ฑ)
@Preview(showBackground = true)
@Composable
private fun LoginScreenPreview() {
    YappTheme {
-       Column {
            LoginInputSection(
-               "",
-               "",
+               email = "[email protected]",
+               password = "password123",
                onIDChange = {},
                onPWChange = {},
-               false,
+               isActive = true,
-               {}
+               onLoginClick = {}
            )
-       }
    }
}

Likely invalid or redundant comment.

feature/login/build.gradle.kts (1)

5-5: Hilt ํ”Œ๋Ÿฌ๊ทธ์ธ ์ถ”๊ฐ€๊ฐ€ ์ ์ ˆํ•ฉ๋‹ˆ๋‹ค.

์˜์กด์„ฑ ์ฃผ์ž…์„ ์œ„ํ•œ Hilt ํ”Œ๋Ÿฌ๊ทธ์ธ์ด ์˜ฌ๋ฐ”๋ฅด๊ฒŒ ์ถ”๊ฐ€๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

gradle/libs.versions.toml (1)

20-21: Hilt Navigation Compose ์˜์กด์„ฑ์ด ์ ์ ˆํ•˜๊ฒŒ ์ถ”๊ฐ€๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

๋ฒ„์ „๊ณผ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ ์„ค์ •์ด ์˜ฌ๋ฐ”๋ฅด๊ฒŒ ๊ตฌ์„ฑ๋˜์–ด ์žˆ์Šต๋‹ˆ๋‹ค.

Also applies to: 55-56

Comment on lines +48 to +54
@Preview(showBackground = true)
@Composable
private fun LoginScreenPreview() {
YappTheme {
TopTitle()
}
}
Copy link

Choose a reason for hiding this comment

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

๐Ÿงน Nitpick (assertive)

ํ”„๋ฆฌ๋ทฐ ๊ธฐ๋Šฅ์„ ๋”์šฑ ๊ฐœ์„ ํ•ด๋ณด์„ธ์š”.

ํ”„๋ฆฌ๋ทฐ๊ฐ€ ์ž˜ ๊ตฌํ˜„๋˜์–ด ์žˆ์Šต๋‹ˆ๋‹ค๋งŒ, ๋‹ค์–‘ํ•œ ๋””๋ฐ”์ด์Šค ์„ค์ •๊ณผ ํ…Œ๋งˆ์—์„œ์˜ ๋ชจ์Šต์„ ํ™•์ธํ•  ์ˆ˜ ์žˆ๋„๋ก ๊ฐœ์„ ํ•˜๋ฉด ์ข‹์„ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค.

๋‹ค์Œ๊ณผ ๊ฐ™์ด ์ˆ˜์ •ํ•ด๋ณด์„ธ์š”:

 @Preview(showBackground = true)
+@Preview(showBackground = true, uiMode = Configuration.UI_MODE_NIGHT_YES)
+@Preview(showBackground = true, device = Devices.TABLET)
 @Composable
 private fun LoginScreenPreview() {
     YappTheme {
         TopTitle()
     }
 }

ํ•„์š”ํ•œ import๋ฌธ๋„ ์ถ”๊ฐ€ํ•ด์ฃผ์„ธ์š”:

import android.content.res.Configuration
import androidx.compose.ui.tooling.preview.Devices

Comment on lines +19 to +24
id : String,
pw : String,
onIDChange: (String) -> Unit,
onPWChange: (String) -> Unit,
isActive : Boolean,
clickButton : () -> Unit
Copy link

Choose a reason for hiding this comment

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

๐Ÿงน Nitpick (assertive)

ํŒŒ๋ผ๋ฏธํ„ฐ ๋„ค์ด๋ฐ์„ ์ผ๊ด€์„ฑ ์žˆ๊ฒŒ ์ˆ˜์ •ํ•ด์ฃผ์„ธ์š”.

ํ˜„์žฌ ํŒŒ๋ผ๋ฏธํ„ฐ ๋„ค์ด๋ฐ์ด ์ผ๊ด€์„ฑ์ด ์—†์Šต๋‹ˆ๋‹ค:

  • id, pw๋Š” ๋” ๋ช…ํ™•ํ•œ ์ด๋ฆ„์ด ์ข‹์Šต๋‹ˆ๋‹ค
  • clickButton์€ ๋‹ค๋ฅธ ์ฝœ๋ฐฑ ๋„ค์ด๋ฐ๊ณผ ์ผ์น˜์‹œํ‚ค๋Š” ๊ฒƒ์ด ์ข‹์Šต๋‹ˆ๋‹ค
- id : String,
- pw : String,
+ email: String,
+ password: String,
  onIDChange: (String) -> Unit,
  onPWChange: (String) -> Unit,
  isActive : Boolean,
- clickButton : () -> Unit
+ onLoginClick: () -> Unit
๐Ÿ“ Committable suggestion

โ€ผ๏ธ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
id : String,
pw : String,
onIDChange: (String) -> Unit,
onPWChange: (String) -> Unit,
isActive : Boolean,
clickButton : () -> Unit
email: String,
password: String,
onIDChange: (String) -> Unit,
onPWChange: (String) -> Unit,
isActive : Boolean,
onLoginClick: () -> Unit

onPWChange : (String) -> Unit,
) {
Column {
Spacer(Modifier.height(72.dp))
Copy link

Choose a reason for hiding this comment

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

๐Ÿงน Nitpick (assertive)

ํ•˜๋“œ์ฝ”๋”ฉ๋œ dimension ๊ฐ’๋“ค์„ ๋ฆฌ์†Œ์Šค๋กœ ์ถ”์ถœํ•˜๋Š” ๊ฒƒ์ด ์ข‹์Šต๋‹ˆ๋‹ค.

์—ฌ๋Ÿฌ ๊ณณ์—์„œ ์‚ฌ์šฉ๋˜๋Š” spacing ๊ฐ’๋“ค(72.dp, 24.dp, 32.dp)์„ dimens.xml ํŒŒ์ผ๋กœ ์ถ”์ถœํ•˜์—ฌ ์žฌ์‚ฌ์šฉ์„ฑ์„ ๋†’์ด๊ณ  ์ผ๊ด€์„ฑ์„ ์œ ์ง€ํ•˜๋Š” ๊ฒƒ์ด ์ข‹์Šต๋‹ˆ๋‹ค.

Also applies to: 77-77, 79-79

Comment on lines +29 to +33
internal fun LoginRouteScreen(
onClickSignUP: (String) -> Unit,
modifier: Modifier = Modifier,
viewModel: LoginViewModel = hiltViewModel()
) {
Copy link

Choose a reason for hiding this comment

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

๐Ÿงน Nitpick (assertive)

ํŒŒ๋ผ๋ฏธํ„ฐ ๋„ค์ด๋ฐ ์ผ๊ด€์„ฑ ๊ฐœ์„ ์ด ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค.

onClickSignUP์˜ 'UP' ๋ถ€๋ถ„์ด ์ผ๋ฐ˜์ ์ธ ๋„ค์ด๋ฐ ์ปจ๋ฒค์…˜๊ณผ ๋งž์ง€ ์•Š์Šต๋‹ˆ๋‹ค. onClickSignUp์œผ๋กœ ์ˆ˜์ •ํ•˜๋Š” ๊ฒƒ์ด ์ข‹๊ฒ ์Šต๋‹ˆ๋‹ค.

-    onClickSignUP: (String) -> Unit,
+    onClickSignUp: (String) -> Unit,
๐Ÿ“ Committable suggestion

โ€ผ๏ธ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
internal fun LoginRouteScreen(
onClickSignUP: (String) -> Unit,
modifier: Modifier = Modifier,
viewModel: LoginViewModel = hiltViewModel()
) {
internal fun LoginRouteScreen(
onClickSignUp: (String) -> Unit,
modifier: Modifier = Modifier,
viewModel: LoginViewModel = hiltViewModel()
) {

@ashwon12 ashwon12 merged commit 096e60f into develop Jan 25, 2025
1 check passed
@ashwon12 ashwon12 deleted the feature/#23-login branch January 28, 2025 15:15
@coderabbitai coderabbitai bot mentioned this pull request Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Design UI ๋ฐ ๋””์ž์ธ ๊ด€๋ จ ์ž‘์—… Feature ๊ธฐ๋Šฅ ์ถ”๊ฐ€, ๊ฐœ๋ฐœ
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature] ๋กœ๊ทธ์ธ ๋ทฐ
2 participants