-
Notifications
You must be signed in to change notification settings - Fork 1
[Hotfix/#197] qa 2 #198
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
[Hotfix/#197] qa 2 #198
Conversation
Walkthrough๋์์ธ ์์คํ BoardRequestButton์ ํ ์คํธ ํ๋ผ๋ฏธํฐ(textWhite, textSky)๋ฅผ ์ถ๊ฐํ์ฌ ์ธ๋ถ์์ ํ ์คํธ ์ปค์คํฐ๋ง์ด์ง ๊ฐ๋ฅํ๊ฒ ๋ฆฌํฉํ ๋งํ์ต๋๋ค. QuizMainScreen์ time ํ๋ผ๋ฏธํฐ๋ฅผ ํ์๋ก ๋ณ๊ฒฝํ๊ณ , ์๊ฐ ํฌ๋งทํ ์ ์ผ๊ด๋๊ฒ "%02d : %02d" ํ์์ผ๋ก ์ ๋ฐ์ดํธํ์ต๋๋ค. QuizStartViewModel์ SavedStateHandle์ ํตํฉํ์ฌ ์ํ ์ง์์ฑ์ ๊ฐ์ ํ์ต๋๋ค. Changes
์์ ์ฝ๋ ๋ฆฌ๋ทฐ ๋์ด๋๐ฏ 3 (์ค๊ฐ) | โฑ๏ธ ~20๋ถ
๊ด๋ จ PR ๋ชฉ๋ก
์ ์ ๋ผ๋ฒจ
์ ์ ๋ฆฌ๋ทฐ์ด
๐ฐ ์๊ฐ์ ํ๋ฆ, ๋ฒํผ์ ๋ณ์
Pre-merge checks and finishing touchesโ Failed checks (1 warning, 2 inconclusive)
โ Passed checks (2 passed)
โจ Finishing touches
๐งช Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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: 0
๐งน Nitpick comments (1)
core/designsystem/src/main/java/com/teamwable/designsystem/component/button/WableBoardRequestButton.kt (1)
16-17: ๋ฒํผ ์ปดํฌ๋ํธ์ ํ ์คํธ ์ปค์คํฐ๋ง์ด์ง์ด ๊ฐ์ ๋์์ต๋๋ค.BoardRequestButton์ textWhite์ textSky ํ๋ผ๋ฏธํฐ๋ฅผ ์ถ๊ฐํ์ฌ ์ธ๋ถ์์ ํ ์คํธ๋ฅผ ์ปค์คํฐ๋ง์ด์งํ ์ ์๋๋ก ๋ฆฌํฉํ ๋งํ์ต๋๋ค. ๊ธฐ๋ณธ๊ฐ์ ์ ๊ณตํ์ฌ ํ์ ํธํ์ฑ์ ์ ์งํ๋ฉด์๋, ํ์ํ ๊ฒฝ์ฐ ํธ์ถ์๊ฐ ํ ์คํธ๋ฅผ ์ค๋ฒ๋ผ์ด๋ํ ์ ์๋ ์ ์ฐ์ฑ์ ์ ๊ณตํฉ๋๋ค. ๋ด๋ถ ํจ์๋ ์ ์ ํ๊ฒ ๋ฆฌํฉํ ๋ง๋์ด ์ ๋ฌ๋ฐ์ ํ๋ผ๋ฏธํฐ๋ฅผ ์ฌ์ฉํ๋๋ก ๋ณ๊ฒฝ๋์์ต๋๋ค.
Also applies to: 21-21, 29-35
๐ Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
๐ Files selected for processing (5)
core/designsystem/src/main/java/com/teamwable/designsystem/component/button/WableBoardRequestButton.kt(1 hunks)feature/quiz/src/main/java/com/teamwable/quiz/QuizMainScreen.kt(3 hunks)feature/quiz/src/main/java/com/teamwable/quiz/QuizMainViewModel.kt(1 hunks)feature/quiz/src/main/java/com/teamwable/quiz/start/QuizStartViewModel.kt(4 hunks)feature/quiz/src/main/res/values/strings.xml(1 hunks)
๐งฐ Additional context used
๐งฌ Code graph analysis (1)
core/designsystem/src/main/java/com/teamwable/designsystem/component/button/WableBoardRequestButton.kt (1)
core/designsystem/src/main/java/com/teamwable/designsystem/component/button/WableButton.kt (1)
WableAnnotatedTextButton(91-111)
โฐ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
- GitHub Check: PR Checker
๐ Additional comments (7)
feature/quiz/src/main/java/com/teamwable/quiz/QuizMainViewModel.kt (1)
27-31: ์๊ฐ ํฌ๋งท ๋ณ๊ฒฝ์ด ์ผ๊ด์ฑ ์๊ฒ ์ ์ฉ๋์์ต๋๋ค.์๊ฐ ํ์ ํ์์
"%02d : %02d"๋ก ๋ณ๊ฒฝํ๊ณ ์ด๊ธฐ๊ฐ๋"00 : 00"์ผ๋ก ๋ง์ถฐ์ ์ผ๊ด์ฑ์ด ์ ์ง๋๊ณ ์์ต๋๋ค. ์๊ฐ ๋จ์์ leading zero๊ฐ ์ถ๊ฐ๋๊ณ ์ฝ๋ก ์์ชฝ์ ๊ณต๋ฐฑ์ด ํฌํจ๋ ๋ณ๊ฒฝ์ฌํญ์ด QuizMainScreen๊ณผ๋ ์ผ์นํฉ๋๋ค.feature/quiz/src/main/java/com/teamwable/quiz/start/QuizStartViewModel.kt (2)
3-4: SavedStateHandle ํตํฉ์ผ๋ก ์ํ ์ง์์ฑ์ด ๊ฐ์ ๋์์ต๋๋ค.SavedStateHandle์ ์ฌ์ฉํ์ฌ ํด์ฆ ์์ ์๊ฐ์ ์ ์ฅํ๋๋ก ๊ตฌํํ์ต๋๋ค. ์ด๋ ์ฑ์ด ๋ฐฑ๊ทธ๋ผ์ด๋๋ก ์ด๋ํ๊ฑฐ๋ ํ๋ก์ธ์ค๊ฐ ์ข ๋ฃ๋์์ ๋ ์ํ๋ฅผ ๋ณต์ํ ์ ์๊ฒ ํด์ค๋๋ค.
Also applies to: 22-22, 26-30
49-49: Need to verify howstartTimeMillisis actually declared and initialized in the code:๋ถํ์ํ ๋ฆฌ๋ทฐ ์ฝ๋ฉํธ - ๊ธฐ๊ธฐ ์ฌ๋ถํ ์๋๋ฆฌ์ค์ ๋ํ ์๋ชป๋ ์ดํด
๋ฆฌ๋ทฐ ์ฝ๋ฉํธ์ ์ฐ๋ ค ์ฌํญ์
SavedStateHandle์ด ๊ธฐ๊ธฐ ์ฌ๋ถํ ํ์๋ ๋ฐ์ดํฐ๋ฅผ ์ ์งํ๋ค๋ ์๋ชป๋ ๊ฐ์ ์ ๊ธฐ๋ฐํ๊ณ ์์ต๋๋ค. SavedStateHandle์ ์ ์ฅ๋ ์ํ๋ ์์ ์คํ๊ณผ ์ฐ๊ฒฐ๋์ด ์์ผ๋ฉฐ, ์์ ์คํ์ด ์ฌ๋ผ์ง๋ฉด ์ ์ฅ๋ ์ํ๋ ํจ๊ป ์ฌ๋ผ์ง๋๋ค. ์ด๋ ์ฑ ๊ฐ์ ์ข ๋ฃ, ์ต๊ทผ ์ฑ ๋ฉ๋ด์์ ์ ๊ฑฐ, ๋๋ ๊ธฐ๊ธฐ ์ฌ๋ถํ ์ ๋ฐ์ํฉ๋๋ค.๋ฐ๋ผ์ ๊ธฐ๊ธฐ ์ฌ๋ถํ ํ
startTimeMillis๋ ์ด๊ธฐ๊ฐ์ธ 0L๋ก ๋ฆฌ์ ๋๋ฉฐ, ํ์ฌ์if (startTimeMillis == 0L)์กฐ๊ฑด์ ์์๋๋ก ์๋ํฉ๋๋ค. ์ ์๋ ์ฃ์ง ์ผ์ด์ค๋ ์ค์ ๋ก ๋ฐ์ํ์ง ์์ต๋๋ค.Likely an incorrect or invalid review comment.
feature/quiz/src/main/res/values/strings.xml (1)
5-6: ์๋ก์ด ๋ฒํผ ํ ์คํธ ๋ฆฌ์์ค๊ฐ ์ถ๊ฐ๋์์ต๋๋ค.ํด์ฆ ๋ฉ์ธ ํ๋ฉด์ ๋ฒํผ ํ ์คํธ๋ฅผ ์ํ string ๋ฆฌ์์ค๊ฐ ์ ์ ํ๊ฒ ์ถ๊ฐ๋์์ต๋๋ค. ์ด๋ ๋์์ธ ์์คํ ์ BoardRequestButton์ ์ปค์คํฐ๋ง์ด์งํ๋ ๋ฐ ์ฌ์ฉ๋ฉ๋๋ค.
feature/quiz/src/main/java/com/teamwable/quiz/QuizMainScreen.kt (3)
46-46: time ํ๋ผ๋ฏธํฐ๊ฐ ํ์๋ก ๋ณ๊ฒฝ๋์์ต๋๋ค.time ํ๋ผ๋ฏธํฐ์์ ๊ธฐ๋ณธ๊ฐ์ ์ ๊ฑฐํ์ฌ ํธ์ถ์๊ฐ ๋ช ์์ ์ผ๋ก ์๊ฐ ๊ฐ์ ์ ๋ฌํ๋๋ก ๋ณ๊ฒฝํ์ต๋๋ค. ์ด๋ ์๋๋ ๋ณ๊ฒฝ์ผ๋ก ๋ณด์ด๋ฉฐ, QuizMainRoute์์ ViewModel์ remainingTime์ ์ ๋ฌํ๋๋ก ๊ตฌํ๋์ด ์์ต๋๋ค.
109-110: BoardRequestButton์ ํ ์คํธ ์ปค์คํฐ๋ง์ด์ง์ด ์ ์ฉ๋์์ต๋๋ค.๋์์ธ ์์คํ ์ ๋ณ๊ฒฝ์ฌํญ์ ๋ง์ถฐ textWhite์ textSky ํ๋ผ๋ฏธํฐ๋ฅผ ์ ๋ฌํ์ฌ ๋ฒํผ ํ ์คํธ๋ฅผ ์ปค์คํฐ๋ง์ด์งํ๊ณ ์์ต๋๋ค. ์๋ก ์ถ๊ฐ๋ string ๋ฆฌ์์ค๋ฅผ ํ์ฉํ์ฌ ์ ์ ํ๊ฒ ๊ตฌํ๋์์ต๋๋ค.
122-122: Preview๊ฐ ์ ๋ฐ์ดํธ๋ ์๊ฐ ํ์์ ๋ฐ์ํฉ๋๋ค.Preview์์ ๋ช ์์ ์ผ๋ก
"00 : 00"ํ์(๊ณต๋ฐฑ ํฌํจ)์ ์ ๋ฌํ์ฌ ๋ณ๊ฒฝ๋ ์๊ฐ ํฌ๋งท๊ณผ ์ผ์นํ๋๋ก ์ ๋ฐ์ดํธ๋์์ต๋๋ค.
sohyun127
left a comment
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.
๊ณ ์ํ์ จ์ต๋๋ค!
โ ๐๐ต๐ฒ๐ฐ๐ธ-๐๐ถ๐๐
๐ ๐๐๐๐๐ฒ๐
๐๐ช๐ผ๐ฟ๐ธ ๐๐ฒ๐๐ฐ๐ฟ๐ถ๐ฝ๐๐ถ๐ผ๐ป
๐ท ๐ฆ๐ฐ๐ฟ๐ฒ๐ฒ๐ป๐๐ต๐ผ๐
๐ฌ ๐ง๐ผ ๐ฅ๐ฒ๐๐ถ๐ฒ๐๐ฒ๐ฟ๐
Summary by CodeRabbit
๋ฆด๋ฆฌ์ค ๋ ธํธ
New Features
Refactor