Skip to content

๐Ÿ”€ :: (#51) packgename์„ ๋Œ€๋ฌธ์ž์—์„œ ์†Œ๋ฌธ์ž๋กœ ๋ณ€๊ฒฝํ–ˆ์Šต๋‹ˆ๋‹ค.#55

Merged
kimjeakwan merged 11 commits intodevelopfrom
feature/51-uqdate-packgename
Feb 5, 2025
Merged

๐Ÿ”€ :: (#51) packgename์„ ๋Œ€๋ฌธ์ž์—์„œ ์†Œ๋ฌธ์ž๋กœ ๋ณ€๊ฒฝํ–ˆ์Šต๋‹ˆ๋‹ค.#55
kimjeakwan merged 11 commits intodevelopfrom
feature/51-uqdate-packgename

Conversation

@kimjeakwan
Copy link
Collaborator

@kimjeakwan kimjeakwan commented Feb 5, 2025

๐Ÿ’ก ๊ฐœ์š”

packgename์„ ๋Œ€๋ฌธ์ž์—์„œ ์†Œ๋ฌธ์ž๋กœ ๋ณ€๊ฒฝํ–ˆ์Šต๋‹ˆ๋‹ค.

๐Ÿ“ƒ ์ž‘์—…๋‚ด์šฉ

packgename์„ ๋Œ€๋ฌธ์ž์—์„œ ์†Œ๋ฌธ์ž๋กœ ๋ณ€๊ฒฝํ–ˆ์Šต๋‹ˆ๋‹ค.

๐Ÿ”€ ๋ณ€๊ฒฝ์‚ฌํ•ญ

viewModel ์—์„œ viewmodel ๋กœ ๋ณ€๊ฒฝ

๐Ÿ™‹โ€โ™‚๏ธ ์งˆ๋ฌธ์‚ฌํ•ญ

  • ๊ฐœ์„ ํ•  ์ , ์˜คํƒ€, ์ฝ”๋“œ์— ์ด์‚ฐํ•œ ๋ถ€๋ถ„์ด ์žˆ๋‹ค๋ฉด Comment ๋‹ฌ์•„์ฃผ์„ธ์š”.

๐Ÿด ์‚ฌ์šฉ๋ฐฉ๋ฒ•

๐ŸŽธ ๊ธฐํƒ€

Summary by CodeRabbit

  • Chores

    • ๋‚ด๋ถ€ ๋นŒ๋“œ ์„ค์ •์˜ ํ˜•์‹ ์กฐ์ • ๋ฐ ๋ฐ์ดํ„ฐ ๊ฐ’ ์—…๋ฐ์ดํŠธ๋ฅผ ํ†ตํ•ด ์œ ์ง€ ๊ด€๋ฆฌ ์ž‘์—…์„ ์ง„ํ–‰ํ–ˆ์Šต๋‹ˆ๋‹ค.
  • Refactor

    • ์ฝ”๋“œ ์ „๋ฐ˜์— ๊ฑธ์ณ ํŒจํ‚ค์ง€ ๋ช…์นญ ํ‘œ์ค€ํ™”๋ฅผ ์ ์šฉํ•ด ์ผ๊ด€์„ฑ์„ ๊ฐ•ํ™”ํ–ˆ์Šต๋‹ˆ๋‹ค.
    • ์‚ฌ์šฉ์ž ์ƒํƒœ ๊ด€๋ฆฌ ๋กœ์ง์„ ๊ฐœ์„ ํ•˜์—ฌ ๋ฐ์ดํ„ฐ ๋ถˆ๋ณ€์„ฑ์„ ๋†’์˜€์Šต๋‹ˆ๋‹ค.
  • Bug Fixes

    • VERSION_CODE์™€ VERSION_NAME์„ ์—…๋ฐ์ดํŠธํ•˜์—ฌ ๋ฒ„์ „ ๊ด€๋ฆฌ๋ฅผ ๊ฐœ์„ ํ–ˆ์Šต๋‹ˆ๋‹ค.
    • SWIPE_REFRESH ์˜์กด์„ฑ์„ ์ œ๊ฑฐํ•˜์—ฌ ๊ด€๋ จ ๊ธฐ๋Šฅ์„ ์ •๋ฆฌํ–ˆ์Šต๋‹ˆ๋‹ค.
  • New Features

    • ๋ฌธ์ž์—ด ๋ฆฌ์†Œ์Šค์˜ ํฌ๋งท ์ง€์ •์ž๋ฅผ ๊ฐœ์„ ํ•˜์—ฌ ์ธ์ˆ˜์˜ ์ˆœ์„œ๋ฅผ ๋ช…ํ™•ํžˆ ํ–ˆ์Šต๋‹ˆ๋‹ค.
    • ๋กœ๊ทธ์ธ ํ™”๋ฉด์˜ ์ƒํƒœ ๊ด€๋ฆฌ ๋ฐ ์ œ์–ด ํ๋ฆ„์„ ํ–ฅ์ƒ์‹œ์ผœ ์˜ค๋ฅ˜ ์ฒ˜๋ฆฌ ๋ฐ ๋น„๋™๊ธฐ ์ƒํƒœ ์—…๋ฐ์ดํŠธ๋ฅผ ํ†ตํ•ฉํ–ˆ์Šต๋‹ˆ๋‹ค.
  • Documentation

    • presentation/build.gradle.kts ํŒŒ์ผ์˜ ๋‚ด์šฉ์ด ์‚ญ์ œ๋˜์–ด ๋นŒ๋“œ ๊ตฌ์„ฑ ์ •๋ณด๊ฐ€ ์ œ๊ฑฐ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

@coderabbitai
Copy link

coderabbitai bot commented Feb 5, 2025

Walkthrough

์ด ํ’€ ๋ฆฌํ€˜์ŠคํŠธ๋Š” ์—ฌ๋Ÿฌ ํŒŒ์ผ์— ๊ฑธ์ณ ํ˜•์‹ ์ˆ˜์ • ๋ฐ ํŒจํ‚ค์ง€ ๋„ค์ด๋ฐ ํ‘œ์ค€ํ™”๋ฅผ ์ง„ํ–‰ํ•ฉ๋‹ˆ๋‹ค. ๊ตฌ์ฒด์ ์œผ๋กœ, build.gradle.kts์— allprojects ๋ธ”๋ก์„ ์ถ”๊ฐ€ํ•˜์—ฌ Kotlin ์ปดํŒŒ์ผ ์ž‘์—…์„ ์„ค์ •ํ•˜๊ณ , counters.tab์—์„œ ์ˆซ์ž ๊ฐ’์„ ๊ต์ฒดํ•˜๋ฉฐ, login ๋ฐ users ๊ด€๋ จ ํŒŒ์ผ์˜ ํŒจํ‚ค์ง€ ์ด๋ฆ„๊ณผ import ๊ฒฝ๋กœ๋ฅผ ์†Œ๋ฌธ์ž๋กœ ์ผ๊ด€๋˜๊ฒŒ ์ˆ˜์ •ํ•˜์˜€์Šต๋‹ˆ๋‹ค. ๋˜ํ•œ, UsersViewModel์˜ ์„ฑ๊ณต ์ƒํƒœ ์ฒ˜๋ฆฌ ์‹œ ๋ฐ์ดํ„ฐ๊ฐ€ ๋ถˆ๋ณ€ ๋ฆฌ์ŠคํŠธ๋กœ ๋ณ€ํ™˜๋˜๋„๋ก ๋ณ€๊ฒฝ๋˜์—ˆ์Šต๋‹ˆ๋‹ค. AuthViewModel ๋ฐ LoginScreen์˜ ์ƒํƒœ ๊ด€๋ฆฌ๊ฐ€ ๊ฐœ์„ ๋˜์—ˆ์œผ๋ฉฐ, presentation/build.gradle.kts ํŒŒ์ผ์˜ ๋‚ด์šฉ์ด ์‚ญ์ œ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

Changes

ํŒŒ์ผ(๋“ค) ๋ณ€๊ฒฝ ๋‚ด์šฉ
build.gradle.kts allprojects ๋ธ”๋ก ์ถ”๊ฐ€, ํ”„๋กœ์ ํŠธ ์†์„ฑ์— ๋”ฐ๋ผ ์ปดํŒŒ์ผ๋Ÿฌ ์ธ์ž ์„ค์ •
buildSrc/.../counters.tab ๊ฐ’ -6 ์ œ๊ฑฐ, +5 ์ถ”๊ฐ€
presentation/.../login/uiState/{LoginUiState.kt, SaveTokenUiState.kt} ํŒจํ‚ค์ง€ ์ด๋ฆ„์„ camelCase์—์„œ ์†Œ๋ฌธ์ž๋กœ ๋ณ€๊ฒฝ
presentation/.../viewmodel/login/AuthViewModel.kt import ๊ฒฝ๋กœ๋ฅผ ์—…๋ฐ์ดํŠธํ•˜์—ฌ ์ตœ์‹  ํŒจํ‚ค์ง€ ๋ช… ๋ฐ˜์˜
presentation/.../users/{UsersViewModel.kt, uistate/UsersUiState.kt} ํŒจํ‚ค์ง€ ์ด๋ฆ„ ์ˆ˜์ • ๋ฐ ์„ฑ๊ณต ์ƒํƒœ์—์„œ ๋ถˆ๋ณ€ ๋ฆฌ์ŠคํŠธ ์‚ฌ์šฉ ๋„์ž…
buildSrc/.../Dependency.kt ์ƒ์ˆ˜ SWIPE_REFRESH ์ œ๊ฑฐ
buildSrc/.../ProjectProperties.kt VERSION_CODE๋ฅผ 20์œผ๋กœ, VERSION_NAME์„ "1.2.9"๋กœ ์—…๋ฐ์ดํŠธ
presentation/build.gradle.kts ์ „์ฒด ๋‚ด์šฉ ์‚ญ์ œ
presentation/.../values/string.xml ๋ฌธ์ž์—ด ๋ฆฌ์†Œ์Šค์˜ ํฌ๋งท ์ง€์ •์ž ์—…๋ฐ์ดํŠธ
presentation/.../login/screen/LoginScreen.kt LoginRoute ๋ฐ LoginScreen ํ•จ์ˆ˜์˜ ์‹œ๊ทธ๋‹ˆ์ฒ˜ ์—…๋ฐ์ดํŠธ, ์ƒํƒœ ๊ด€๋ฆฌ ๊ฐœ์„ 

Suggested labels

โœจ Feature, 1๏ธโƒฃ Priority: High

Suggested reviewers

  • xx-lvr

Poem

๋‚˜๋Š” ๋‹ฌ๋น› ์•„๋ž˜๋ฅผ ๋›ฐ๋…ธ๋Š” ํ† ๋ผ,
์ฝ”๋“œ ์ˆฒ ์†์—์„œ ๋ฐœ์ž์ทจ๋ฅผ ๋‚จ๊ธฐ๋„ค,
๋นˆ ์ค„์ด ์ถค์ถ”๊ณ  ์ˆซ์ž๊ฐ€ ๋ฐ˜์ง์ด๋ฉฐ,
ํŒจํ‚ค์ง€ ์ด๋ฆ„๋„ ์†Œ๋ฌธ์ž๋กœ ์ผ๊ด€๋˜๋„ค,
๋ถˆ๋ณ€ ๋ฆฌ์ŠคํŠธ์˜ ๋น›์ด ๋ณ„์ฒ˜๋Ÿผ ํ”ผ์–ด๋‚˜,
์˜ค๋Š˜๋„ ์ฝ”๋“œ์˜ ๊ธธ์„ ์‹ ๋‚˜๊ฒŒ ๋‹ฌ๋ฆฌ๋ฆฌ!

Tip

๐ŸŒ Web search-backed reviews and chat
  • We have enabled web search-based reviews and chat for all users. This feature allows CodeRabbit to access the latest documentation and information on the web.
  • You can disable this feature by setting web_search: false in the knowledge_base settings.
  • Please share any feedback in the Discord discussion.

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 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.

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

๐Ÿ“ฅ Commits

Reviewing files that changed from the base of the PR and between 9639724 and ceb5370.

๐Ÿ“’ 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 5

Length of output: 645


ํ”Œ๋ ˆ์ด์Šคํ™€๋” ๋ฌธ์ž์—ด ์‚ฌ์šฉ ํ™•์ธ๋จ
์Šค์บ” ๊ฒฐ๊ณผ, โ€œghskfendโ€์™€ โ€œghskfenโ€ ๋ฌธ์ž์—ด์€ ์˜ค์ง presentation/src/main/java/view/login/screen/LoginScreen.kt ํŒŒ์ผ์—์„œ๋งŒ ์‚ฌ์šฉ๋˜๊ณ  ์žˆ์œผ๋ฉฐ, ์‹ค์ œ ๋ฏผ๊ฐํ•œ ์ •๋ณด๋ผ๊ธฐ๋ณด๋‹ค๋Š” ํ”Œ๋ ˆ์ด์Šคํ™€๋”๋กœ ๋ณด์ž…๋‹ˆ๋‹ค. ๋งŒ์•ฝ ์ด ๊ฐ’๋“ค์ด ์‹ค์ œ ๋ฏผ๊ฐํ•œ ๋ฐ์ดํ„ฐ๋ผ๋ฉด ๋ณ„๋„์˜ ์•ˆ์ „ํ•œ ๊ด€๋ฆฌ ๋ฐฉ์‹(์˜ˆ: ํ™˜๊ฒฝ ๋ณ€์ˆ˜ ๊ด€๋ฆฌ, ์•”ํ˜ธํ™” ์ €์žฅ ๋“ฑ)์ด ํ•„์š”ํ•˜๊ฒ ์ง€๋งŒ, ํ˜„ ์‹œ์ ์—์„œ๋Š” ๋‹จ์ˆœ ํ”Œ๋ ˆ์ด์Šคํ™€๋”๋กœ ํŒ๋‹จ๋ฉ๋‹ˆ๋‹ค.

Comment on lines 42 to 52
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)}
Copy link

Choose a reason for hiding this comment

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

๐Ÿ› ๏ธ 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.

Suggested change
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) }

Copy link
Collaborator

@xx-lvr xx-lvr left a comment

Choose a reason for hiding this comment

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

์ˆ˜๊ณ ํ•˜์…จ์Šต๋‹ˆ๋‹ค!

@kimjeakwan kimjeakwan merged commit 56857ac into develop Feb 5, 2025
2 checks passed
@kimjeakwan kimjeakwan deleted the feature/51-uqdate-packgename branch February 5, 2025 10:34
kimjeakwan added a commit that referenced this pull request Feb 19, 2025
๐Ÿ”€ ::(#55) Mypage์— ํ†ต์‹ ํ•œ ๊ฒƒ์„ ์ ์šฉํ•˜๊ธฐ์œ„ํ•œ ๋ฆฌํŽ™ํ† ๋ง์„ ํ–ˆ์Šต๋‹ˆ๋‹ค.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants