-
Notifications
You must be signed in to change notification settings - Fork 0
Feature/#11 designsystem inputtext #12
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
Conversation
- ์ถํ ๋คํฌ๋ชจ๋ ์ง์ ์, lightColorScheme์ ๋ค์ด๋ฐ์ด ๋ฌธ์ ๊ฐ ์์
Walkthrough์ด ํ ๋ฆฌํ์คํธ๋ ๋์์ธ ์์คํ
์ ์
๋ ฅ ํ
์คํธ ์ปดํฌ๋ํธ๋ฅผ ๊ฐ์ ํ๊ณ ํ์ฅํฉ๋๋ค. ์๋ก์ด Kotlin ํ์ผ๋ค์ ์ถ๊ฐํ์ฌ Changes
Assessment against linked issues
Possibly related PRs
Suggested reviewers
Poem
๐ชง 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์ง์ฑ๋ ๋ฆฌ๋ทฐ๊ฐ ๋ฆ์ด์ ธ์ ์ฃ์กํฉ๋๋ค ๐ฅฒ !!
๊ณ ์ํ์
จ์ต๋๋ค!
val errorOutlineColor: Color, | ||
val successOutlineColor: Color, | ||
) { | ||
@Stable |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@immutable @stable
๋ ๊ฐ๊ฐ ์๋ฏธ๊ฐ ๋น์ทํ ๊ฒ ๊ฐ์๋ฐ ๋๋ ์ ์ฐ์ ์ด์ ๊ฐ ์์๊น์ ?!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
InputTextColors์ ํ๋ฒ ๊ฐ์ด ์์ฑ๋๋ฉด ๋ถ๋ณํ๋ฏ๋ก Immutable์, inputTextColor์ ์ํ์ ๋ฐ๋ผ ๊ฐ์ด ๋ณ๊ฒฝ๋๋ฏ๋ก Stable์ ์ฌ์ฉํ์ต๋๋ค!
keyboardOptions: KeyboardOptions = KeyboardOptions.Default, | ||
keyboardActions: KeyboardActions = KeyboardActions.Default, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
YappInputTextBasic ์์์๋ ํด๋น ๊ฐ๋ค์ ์ด๊ธฐํํด์ฃผ๊ณ ์์ผ๋
์ฌ๊ธฐ์๋ nullable ํ๊ฒ ๊ฐ์ ์
๋ ฅ๋ฐ๋๊ฒ ์ ์ง๋ณด์์ธก๋ฉด์์ ์ข์ ๊ฒ ๊ฐ๋ค๋ ์๊ฒฌ ๋๋ฆฝ๋๋ท
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์ ํน์ nullable๋ก ๋ง๋ค๋ฉด ์ด๋ค ์ด์ ์ด ์๋์!? ์ ๋ ํฐ ์ฐจ์ด๊ฐ ์์ ๊ฒ ๊ฐ์ง ์์์์
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
YappInputTextLarge
๋ YappInputTextBasic
์์ ๋ชจ๋ ๊ธฐ๋ณธ๊ฐ ์ค์ ์ ํด์ฃผ๊ณ ์์ด์
๊ธฐ๋ณธ๊ฐ ์ค์ ์ ์ฑ
์์ ๋ด๋ถ๋ก ์์ํ๋๊ฒ ์ด๋จ๊น ํ๋ ์๊ฒฌ์ด์์ต๋๋ค !
์ธ๋ถ์ ์๋ YappInputTextLarge
์์๋ nullable ํ ๊ฐ์ ๋์ด ์ ์ฐํ๊ฒ ์ฌ์ฉํ ์ ์์ ๊ฒ ๊ฐ์์์ !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์ ... ์ฃ์กํด์ ์ดํด๊ฐ ์ ์๊ฐ์ ๊ทธ๋ฐ๋ฐ ์ฝ๋๋ก ์์ ํ๋ ๋ณด์ฌ์ฃผ์ค ์ ์๋์?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์ ...
keyboardAction: Action = Action.Default๋ฅผ
keyboardAction: Action? = null
์ด๋ ๊ฒ ๋ฐ๊พธ์๋ ๋ง์ ๋ง์ผ์์ฃ ??
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
๊ธฐ๋ก) ๋ณ ์ฐจ์ด ์๋ ๊ฒ์ผ๋ก ์๋ก ์๊ธฐํจ.
@coderabbitai review |
โ Actions performedReview triggered.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 6
๐ Review details
Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
Plan: Pro
๐ Files selected for processing (8)
core/designsystem/src/main/java/com/yapp/core/designsystem/component/inputtext/InputText.kt
(1 hunks)core/designsystem/src/main/java/com/yapp/core/designsystem/component/inputtext/InputTextDefaults.kt
(1 hunks)core/designsystem/src/main/java/com/yapp/core/designsystem/theme/Color.kt
(1 hunks)core/designsystem/src/main/java/com/yapp/core/designsystem/theme/Preview.kt
(2 hunks)core/designsystem/src/main/java/com/yapp/core/designsystem/theme/Theme.kt
(2 hunks)core/designsystem/src/main/res/drawable/icon_eye.xml
(1 hunks)core/designsystem/src/main/res/drawable/icon_eye_slash.xml
(1 hunks)core/designsystem/src/test/java/com/yapp/designsystem/ExampleUnitTest.kt
(0 hunks)
๐ค Files with no reviewable changes (1)
- core/designsystem/src/test/java/com/yapp/designsystem/ExampleUnitTest.kt
๐ Additional comments (7)
core/designsystem/src/main/java/com/yapp/core/designsystem/theme/Theme.kt (1)
15-15
: ์ปฌ๋ฌ ์คํค๋ง ๋ค์ด๋ฐ์ด ๊ฐ์ ๋์์ต๋๋ค!
lightColorScheme
์์colorScheme
๋ก์ ๋ณ๊ฒฝ์ ๋ ๊ฐ๋จํ๊ณ ๋ช ํํ ๋ค์ด๋ฐ์ ์ ๊ณตํฉ๋๋ค.Also applies to: 19-19, 32-35
core/designsystem/src/main/java/com/yapp/core/designsystem/component/inputtext/InputTextDefaults.kt (2)
96-107
: ์ํ์ ๋ฐ๋ฅธ ์์ ์ฒ๋ฆฌ๊ฐ ์ ๊ตฌํ๋์์ต๋๋ค!
@Stable
์ด๋ ธํ ์ด์ ๊ณผ ํจ๊ป ๊ตฌํ๋ ์์ ๋ก์ง์ด ๊ฐ ์ํ(์๋ฌ, ์ฑ๊ณต, ํ์ฑํ ๋ฑ)๋ฅผ ๋ช ํํ๊ฒ ์ฒ๋ฆฌํฉ๋๋ค.
62-67
: ๐งน Nitpick (assertive)Medium ๋ณํ์ ๋ํ ๊ตฌํ์ด ํ์ํฉ๋๋ค.
TODO ์ฃผ์์ ํ์๋ ๋๋ก Medium ๋ณํ์ ์คํ์ผ์ด ์์ง ์ ์๋์ง ์์์ต๋๋ค. ํ์ฌ๋
Unspecified
๊ฐ์ ์ฌ์ฉํ๊ณ ์์ต๋๋ค.Medium ๋ณํ์ ๋์์ธ ๋ช ์ธ๊ฐ ์ค๋น๋๋ฉด ๊ตฌํ์ ๋์๋๋ฆด ์ ์์ต๋๋ค.
Also applies to: 73-74
core/designsystem/src/main/java/com/yapp/core/designsystem/theme/Preview.kt (1)
31-31
: ์ปฌ๋ฌ ์คํค๋ง ์ฐธ์กฐ๊ฐ ์ผ๊ด๋๊ฒ ์ ๋ฐ์ดํธ๋์์ต๋๋ค!
Theme.kt
์ ๋ณ๊ฒฝ์ฌํญ๊ณผ ์ผ์นํ๋๋ก ๋ชจ๋lightColorScheme
์ฐธ์กฐ๊ฐcolorScheme
๋ก ์ ๋ฐ์ดํธ๋์์ต๋๋ค.Also applies to: 39-39, 58-58
core/designsystem/src/main/java/com/yapp/core/designsystem/component/inputtext/InputText.kt (1)
280-308
: ํ๋ฆฌ๋ทฐ๊ฐ ์ ๊ตฌํ๋์์ต๋๋ค!๊ธฐ๋ณธ ์ํ์ ์๋ฌ ์ํ๋ฅผ ๋ชจ๋ ๋ณด์ฌ์ฃผ๋ ํ๋ฆฌ๋ทฐ๊ฐ ์ ๊ตฌํ๋์์ต๋๋ค.
core/designsystem/src/main/java/com/yapp/core/designsystem/theme/Color.kt (2)
Line range hint
90-125
: Color.Unspecified ์ฌ์ฉ์ ๋ํ ๊ฒํ ๊ฐ ํ์ํฉ๋๋ค.๋ชจ๋ ์์๊ฐ์ด
Color.Unspecified
๋ก ์ด๊ธฐํ๋์ด ์์ต๋๋ค. ์ด๋ ๋ค์๊ณผ ๊ฐ์ ์ ์ฌ์ ๋ฌธ์ ๋ฅผ ์ผ๊ธฐํ ์ ์์ต๋๋ค:
- ๋ฐํ์์ ์์์ด ์ง์ ๋์ง ์์ ๊ฒฝ์ฐ ์๊ฐ์ ์ค๋ฅ ๋ฐ์ ๊ฐ๋ฅ
- ์ปดํ์ผ ํ์์ ์์ ๋๋ฝ ๊ฐ์ง ๋ถ๊ฐ
๊ธฐ๋ณธ ์์๊ฐ์ ์ง์ ํ๊ฑฐ๋ ์ด๊ธฐํ ์์ ์ ๋ํ ๋ช ํํ ๋ฌธ์ํ๋ฅผ ์ถ๊ฐํ๋ ๊ฒ์ ๊ถ์ฅ๋๋ฆฝ๋๋ค.
90-90
: LocalColorScheme๋ก์ ์ด๋ฆ ๋ณ๊ฒฝ์ ๋ํ ๊ฒํ ๊ฐ ํ์ํฉ๋๋ค.
LocalLightColorScheme
์์LocalColorScheme
๋ก์ ์ด๋ฆ ๋ณ๊ฒฝ์ด ํ์ธ๋์์ต๋๋ค. ์ด๋ ๋ค์๊ณผ ๊ฐ์ ๊ณ ๋ ค์ฌํญ์ด ํ์ํด ๋ณด์ ๋๋ค:
- ๋คํฌ ํ ๋ง ์ง์ ๊ณํ์ด ์๋ค๋ฉด, ํ์ฌ์ ์ด๋ฆ ๋ณ๊ฒฝ์ด ํฅํ ํ ๋ง ํ์ฅ์ ์ ํ์ด ๋ ์ ์์ต๋๋ค
- ๋คํฌ ํ ๋ง๋ฅผ ์ง์ํ์ง ์์ ๊ณํ์ด๋ผ๋ฉด ํ์ฌ์ ๋ณ๊ฒฝ์ด ์ ์ ํฉ๋๋ค
๋คํฌ ํ ๋ง ์ง์ ๊ณํ์ ํ์ธํ๊ธฐ ์ํด ๋ค์ ์คํฌ๋ฆฝํธ๋ฅผ ์คํํด๋ณด์ธ์:
โ Verification successful
LocalColorScheme๋ก์ ์ด๋ฆ ๋ณ๊ฒฝ์ด ์ ์ ํฉ๋๋ค.
์ฝ๋๋ฒ ์ด์ค ๋ถ์ ๊ฒฐ๊ณผ, ํ์ฌ ์ฑ์ ๋ผ์ดํธ ํ ๋ง๋ง์ ๋ช ์์ ์ผ๋ก ์ฌ์ฉํ๋๋ก ์ค๊ณ๋์ด ์์ผ๋ฉฐ, ๋คํฌ ํ ๋ง ๊ตฌํ์ด ๊ณํ๋์ด ์์ง ์์์ด ํ์ธ๋์์ต๋๋ค. ๋ฐ๋ผ์
LocalLightColorScheme
์์LocalColorScheme
๋ก์ ์ด๋ฆ ๋ณ๊ฒฝ์ ๋ค์๊ณผ ๊ฐ์ ์ด์ ๋ก ์ ์ ํฉ๋๋ค:
- Material3 ๋ค์ด๋ฐ ์ปจ๋ฒค์ ๊ณผ ์ผ์น
- ๋จ์ผ ํ ๋ง ๊ตฌํ์ ๋ ์ ํฉํ ๋ช ๋ช
๐ Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Check for any dark theme related implementations or plans # Search for dark theme related code echo "Searching for dark theme related implementations..." rg -i "darktheme|darkmode|night|dark.*color.*scheme" --type kotlin # Check design documentation echo "Checking design documentation..." fd -e md -e txt | xargs rg -i "dark.*theme|dark.*mode"Length of output: 313
Script:
#!/bin/bash # Search for theme related configurations and implementations echo "Checking theme configurations..." rg -i "theme|isSystemInDark|uiMode" --type kotlin -A 3 echo "Checking color scheme implementations..." ast-grep --pattern 'class $_ : ColorScheme { $$$ }' echo "Checking design system configurations..." fd "Theme.kt|Colors.kt|ColorScheme.kt" --type f --exec cat {}Length of output: 15967
๐ก Issue
๐ฑ Key changes
โ To Reviewers
๐ธ ์คํฌ๋ฆฐ์ท
Summary by CodeRabbit
์๋ก์ด ๊ธฐ๋ฅ
๋์์ธ ์์คํ ๊ฐ์
ํ ๋ง ์ ๋ฐ์ดํธ