๐ :: (#51) packgename์ ๋๋ฌธ์์์ ์๋ฌธ์๋ก ๋ณ๊ฒฝํ์ต๋๋ค.#55
๐ :: (#51) packgename์ ๋๋ฌธ์์์ ์๋ฌธ์๋ก ๋ณ๊ฒฝํ์ต๋๋ค.#55kimjeakwan merged 11 commits intodevelopfrom
Conversation
Walkthrough์ด ํ ๋ฆฌํ์คํธ๋ ์ฌ๋ฌ ํ์ผ์ ๊ฑธ์ณ ํ์ ์์ ๋ฐ ํจํค์ง ๋ค์ด๋ฐ ํ์คํ๋ฅผ ์งํํฉ๋๋ค. ๊ตฌ์ฒด์ ์ผ๋ก, Changes
Suggested labels
Suggested reviewers
Poem
Tip ๐ Web search-backed reviews and chat
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? ๐ชง TipsChatThere are 3 ways to chat with CodeRabbit:
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)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Actionable comments posted: 1
๐งน Nitpick comments (2)
presentation/src/main/java/view/login/screen/LoginScreen.kt (2)
63-71: ํจ์ ํ๋ผ๋ฏธํฐ ๋ค์ด๋ฐ์ ๋ณด๋ค ์ง๊ด์ ์ผ๋ก ๋ณ๊ฒฝํ๋ ๊ฒ์ ๊ถ์ฅํฉ๋๋ค.
ClickButton์ Boolean ํ์ ์์๋ ๋ถ๊ตฌํ๊ณ ๋์ฌ๊ฐ ํฌํจ๋์ง ์์ ์ํ๋ผ๋ ์ ์ด ๋ช ํํ์ง ์์ต๋๋ค.leIsClickLoginButton์ญ์ ํด๋ฆญ ์ฒ๋ฆฌ ํจ์๋ฅผ ์๋ฏธํ๋ค๋ ์ฌ์ค์ ์ฝ๊ฒ ์ธ์งํ๊ธฐ ์ด๋ ต์ต๋๋ค.isButtonClicked,onButtonClick๋ฑ์ ์ด๋ฆ์ผ๋ก ๋ณ๊ฒฝํ๋ฉด ๊ฐ๋ ์ฑ์ด ํ์ธต ๋์์ง๋๋ค.
73-94: ์๋ฌ ์ฒ๋ฆฌ ๋ก์ง์ ์ธ๋ถํํ๋ฉด ์ ์ง๋ณด์์ ๋์์ด ๋ฉ๋๋ค.
ํ์ฌonErrorToast์message = 0์ผ๋ก ๊ณ ์ ๋ ๊ฐ์ด ์ ๋ฌ๋๊ณ ์์ต๋๋ค. ๋ค์ํ ์์ธ ์ํฉ์ ๊ตฌ๋ถํ์ฌ ๋ฉ์์ง๋ฅผ ์๋ง๊ฒ ์ค์ ํ๊ฑฐ๋, ๋ณ๋์ ์๋ฌ ํ์ (์: enum)์ ์ฌ์ฉํ๋ ๋ฐฉ๋ฒ์ ๊ณ ๋ คํด๋ณด์ธ์.
๐ Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
๐ Files selected for processing (1)
presentation/src/main/java/view/login/screen/LoginScreen.kt(4 hunks)
๐ Additional comments (4)
presentation/src/main/java/view/login/screen/LoginScreen.kt (4)
12-14: ์๋ก์ด ๋ฐํ์ API ์ํฌํธ๊ฐ ์ ์ ํ๊ฒ ์ถ๊ฐ๋์์ต๋๋ค.
collectAsStateWithLifecycle์mutableStateOf๋ฑ Jetpack Compose์ ์ํ ๊ด๋ฆฌ๋ฅผ ์ํ API ์ฌ์ฉ์ ํ์ํ ์ํฌํธ๊ฐ ์ ๋ฐ์๋์์ต๋๋ค.
26-33: ํจํค์ง ๋ฐ ๋ผ์ด๋ธ๋ฌ๋ฆฌ ๋ค์ด๋ฐ ๊ตฌ์กฐ๊ฐ ์ผ๊ด์ฑ ์๊ฒ ์ ์ฉ๋์์ต๋๋ค.
DI์ ์ํ ๊ด์ฐฐ ๋ฑ์ ํ์ํ ์์กด์ฑ์ด ์ ์์ ์ผ๋ก ์ถ๊ฐ ๋ฐ ๋ณ๊ฒฝ๋์์ผ๋ฉฐ, ์์ ๋ ํจํค์ง ๊ฒฝ๋ก(viewmodel โ viewmodel.login.uistate ๋ฑ)๊ฐ ๋ฌธ์ ์์ด ์ฐ๊ฒฐ๋ฉ๋๋ค.
160-169: ๋ฏธ๋ฆฌ๋ณด๊ธฐ(Preview) ๊ตฌํ์ด ์ ์ ํฉ๋๋ค.
ํ ์คํธ ๋ฐ ๋์์ธ ํ์ธ์ ์ํด ํ์ํ ํ๋ผ๋ฏธํฐ๋ค์ด ์ ์ ๋ฌ๋๊ณ ์์ด, Compose ํ๋ฆฌ๋ทฐ์์ UI๋ฅผ ์ฝ๊ฒ ๊ฒ์ฆํ ์ ์์ต๋๋ค.
141-150: GAuthSigninWebView์ ์ฌ์ฉ๋ clientId์ redirectUri๊ฐ ์์ ๋ฌธ์์ด๋ก ๋ ธ์ถ๋๊ณ ์์ต๋๋ค.
์ด ๊ฐ๋ค์ด ์ค์ ๋ฏผ๊ฐํ ์ ๋ณด์ธ์ง, ํน์ ๋จ์ ํ ์คํธ ํ๋ ์ด์คํ๋์ธ์ง ํ์ธ์ด ํ์ํฉ๋๋ค. ๋ฏผ๊ฐํ ์ ๋ณด๋ผ๋ฉด ์์ ํ ๋ฐฉ์์ผ๋ก ๊ด๋ฆฌํด์ผ ํฉ๋๋ค.์๋ ์คํฌ๋ฆฝํธ๋ฅผ ํตํด ๊ด๋ จ ํค์๋๊ฐ ๋ค๋ฅธ ๊ณณ์์๋ ์ฌ์ฉํ๋์ง ๊ฒ์ํด ๋ณผ ์ ์์ต๋๋ค:
โ Verification successful
๐ Script executed:
#!/bin/bash rg "ghskfend|ghskfen" -A 5Length of output: 645
ํ๋ ์ด์คํ๋ ๋ฌธ์์ด ์ฌ์ฉ ํ์ธ๋จ
์ค์บ ๊ฒฐ๊ณผ, โghskfendโ์ โghskfenโ ๋ฌธ์์ด์ ์ค์งpresentation/src/main/java/view/login/screen/LoginScreen.ktํ์ผ์์๋ง ์ฌ์ฉ๋๊ณ ์์ผ๋ฉฐ, ์ค์ ๋ฏผ๊ฐํ ์ ๋ณด๋ผ๊ธฐ๋ณด๋ค๋ ํ๋ ์ด์คํ๋๋ก ๋ณด์ ๋๋ค. ๋ง์ฝ ์ด ๊ฐ๋ค์ด ์ค์ ๋ฏผ๊ฐํ ๋ฐ์ดํฐ๋ผ๋ฉด ๋ณ๋์ ์์ ํ ๊ด๋ฆฌ ๋ฐฉ์(์: ํ๊ฒฝ ๋ณ์ ๊ด๋ฆฌ, ์ํธํ ์ ์ฅ ๋ฑ)์ด ํ์ํ๊ฒ ์ง๋ง, ํ ์์ ์์๋ ๋จ์ ํ๋ ์ด์คํ๋๋ก ํ๋จ๋ฉ๋๋ค.
| val (ClickButton, leIsClickLoginButton) = rememberSaveable { mutableStateOf(false) } | ||
|
|
||
| LoginScreen( | ||
| modifier = modifier, | ||
| ClickButton = ClickButton, | ||
| loginUiState = loginUiState, | ||
| saveTokenUiState = saveTokenUiState, | ||
| onErrorToast = { throwable, message -> }, | ||
| navigateToHome = navigateToHome, | ||
| gAuthLogin = { code -> authViewModel.gAuthLogin(code = code) }, | ||
| leIsClickLoginButton = {leIsClickLoginButton(!ClickButton)} |
There was a problem hiding this comment.
๐ ๏ธ Refactor suggestion
rememberSaveable ์ํ ๋ณ์ ๋ฐ ํจ์๋ช
์ด ์ถฉ๋๋์ด ํผ๋์ ์ ๋ฐํ ์ ์์ต๋๋ค.
๋์ผํ ์ด๋ฆ(leIsClickLoginButton)์ ์ํ์ Setter ํจ์์ ํ๋ผ๋ฏธํฐ๋ก ํจ๊ป ์ฌ์ฉํ๊ณ ์์ด, ๊ฐ๋
์ฑ๊ณผ ์ ์ง๋ณด์์ฑ์ ๋ฌธ์ ๊ฐ ์๊ธธ ์ ์์ต๋๋ค. Setter ํจ์๋ฅผ ๋ช
ํํ ๊ตฌ๋ถํ ์ ์๋๋ก ์๋์ฒ๋ผ ๋ณ๊ฒฝ์ ์ ์๋๋ฆฝ๋๋ค.
- val (ClickButton, leIsClickLoginButton) = rememberSaveable { mutableStateOf(false) }
+ val (isLoginButtonClicked, setLoginButtonClicked) = rememberSaveable { mutableStateOf(false) }
...
- leIsClickLoginButton = { leIsClickLoginButton(!ClickButton) }
+ leIsClickLoginButton = { setLoginButtonClicked(!isLoginButtonClicked) }๐ 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.
| val (ClickButton, leIsClickLoginButton) = rememberSaveable { mutableStateOf(false) } | |
| LoginScreen( | |
| modifier = modifier, | |
| ClickButton = ClickButton, | |
| loginUiState = loginUiState, | |
| saveTokenUiState = saveTokenUiState, | |
| onErrorToast = { throwable, message -> }, | |
| navigateToHome = navigateToHome, | |
| gAuthLogin = { code -> authViewModel.gAuthLogin(code = code) }, | |
| leIsClickLoginButton = {leIsClickLoginButton(!ClickButton)} | |
| val (isLoginButtonClicked, setLoginButtonClicked) = rememberSaveable { mutableStateOf(false) } | |
| LoginScreen( | |
| modifier = modifier, | |
| ClickButton = ClickButton, | |
| loginUiState = loginUiState, | |
| saveTokenUiState = saveTokenUiState, | |
| onErrorToast = { throwable, message -> }, | |
| navigateToHome = navigateToHome, | |
| gAuthLogin = { code -> authViewModel.gAuthLogin(code = code) }, | |
| leIsClickLoginButton = { setLoginButtonClicked(!isLoginButtonClicked) } |
๐ ::(#55) Mypage์ ํต์ ํ ๊ฒ์ ์ ์ฉํ๊ธฐ์ํ ๋ฆฌํํ ๋ง์ ํ์ต๋๋ค.
๐ก ๊ฐ์
packgename์ ๋๋ฌธ์์์ ์๋ฌธ์๋ก ๋ณ๊ฒฝํ์ต๋๋ค.
๐ ์์ ๋ด์ฉ
packgename์ ๋๋ฌธ์์์ ์๋ฌธ์๋ก ๋ณ๊ฒฝํ์ต๋๋ค.
๐ ๋ณ๊ฒฝ์ฌํญ
viewModel ์์ viewmodel ๋ก ๋ณ๊ฒฝ
๐โโ๏ธ ์ง๋ฌธ์ฌํญ
๐ด ์ฌ์ฉ๋ฐฉ๋ฒ
๐ธ ๊ธฐํ
Summary by CodeRabbit
Chores
Refactor
Bug Fixes
VERSION_CODE์VERSION_NAME์ ์ ๋ฐ์ดํธํ์ฌ ๋ฒ์ ๊ด๋ฆฌ๋ฅผ ๊ฐ์ ํ์ต๋๋ค.SWIPE_REFRESH์์กด์ฑ์ ์ ๊ฑฐํ์ฌ ๊ด๋ จ ๊ธฐ๋ฅ์ ์ ๋ฆฌํ์ต๋๋ค.New Features
Documentation
presentation/build.gradle.ktsํ์ผ์ ๋ด์ฉ์ด ์ญ์ ๋์ด ๋น๋ ๊ตฌ์ฑ ์ ๋ณด๊ฐ ์ ๊ฑฐ๋์์ต๋๋ค.