-
Notifications
You must be signed in to change notification settings - Fork 1
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
Feature/jaino/#117 #152
Feature/jaino/#117 #152
Conversation
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.
์์ด๊ณ ์ด ๋ถ๋ถ ์์ ์๊ณ ๋ฆฌ์ฆ์ด๋ค์.. ์ฌ๊ธฐ ํ ์คํธ ์ฝ๋๊ฐ ๋ฑ ๋ค์ด๊ฐ์ผ ํ๋๋ฐ...
๊ณ ์ํ์ จ์๋๋ค ๋์๋์ด๋ ์ฑ์ฐ๋ QA ๋๋ ค๋ณผ๊ฒ์ ํํํ
๊ณ ์ํ์ จ์๋๋ค ์๋ก ์๊ธด ์ฝ๋๊ฐ ๋ณ๋ก ์์ด์ ํผ์ง๋งํ ๋ก์ง ๋ง๊ณ ๋ ์ธ์ธํ ๊ฑด ์๋ ๊ฒ ๊ฐ์์!
๐๐๐
@@ -124,6 +124,7 @@ internal fun SignInScreen( | |||
colors = OutlinedTextFieldDefaults.colors( | |||
focusedTextColor = WappTheme.colors.white, | |||
focusedBorderColor = WappTheme.colors.yellow34, | |||
unfocusedTextColor = WappTheme.colors.white, |
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.
๐๐๐
fun deleteSurveyQuestion() { | ||
val totalQuestionNumber = _totalQuestionNumber.value | ||
if (totalQuestionNumber < 1) { | ||
emitValidationErrorMessage("์ญ์ ํ ๋ฌธํญ์ด ์์ต๋๋ค.") | ||
return | ||
} | ||
|
||
val currentQuestionNumber = _currentQuestionNumber.value | ||
val lastQuestionNumber = _questionList.value.lastIndex // ๋ง์ง๋ง ์ง๋ฌธ ๋ฒํธ | ||
if (currentQuestionNumber <= lastQuestionNumber) { | ||
val questionList = _questionList.value | ||
questionList.removeAt(currentQuestionNumber) | ||
} // ๋ฑ๋ก๋์ง ์์ ์ง๋ฌธ์ ์ญ์ ํ๋ ๊ฒฝ์ฐ๋ skip | ||
|
||
if (currentQuestionNumber > 0) { // 5/5 -> 4/4, 1/4 -> 1/3, 2/3 -> 1/2 | ||
setPreviousQuestionNumber() | ||
} | ||
_totalQuestionNumber.value -= 1 | ||
} | ||
|
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.
์...๋ฌธํญ ์ถ๊ฐ ๋๋ฉด ๋์๋ฆฌ์๋ค (์ค๋ฌธ ํ๋ ์ฌ๋๋ค)์๊ฒ ์ด๋ป๊ฒ ๋ณด์ผ์ง ๋ชจ๋ฅด๊ฒ๋ค์
์ผ๋จ ํด๋ด์ผ ์๊ฒ ๊ฐ์์
@@ -246,6 +269,8 @@ class SurveyFormEditViewModel @Inject constructor( | |||
|
|||
fun setSurveyDateDeadline(date: LocalDate) { _dateDeadline.value = date } | |||
|
|||
private fun setDefaultSurveyQuestionType() { _questionType.value = QuestionType.SUBJECTIVE } | |||
|
|||
private fun clearSurveyQuestionTitle() { _questionTitle.value = "" } | |||
|
|||
private fun isNotValidSurveyQuestion() = _questionTitle.value.isBlank() |
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.
์งํธ์ ์ด๊ฑฐ ๊ฐ์๊ธฐ ๋ ์์ฒญ๋๊ฒ ์ฌ์ํ ์๊ฐ์ธ๋ฐ ์ด์ฐจํผ isBlank()
๋ isEmpty()
๋ก ๋ฉ์๋๋ฅผ ์ ๊ณตํ๊ณ ์๋๋ฐ ํ ๋ฒ ๋ ๋ํํ ์ด์ ๊ฐ ์์๊น ? ๋ผ๋ ์๊ฐ์ด ๋ค์ด์. ์ด๋ป๊ฒ ์๊ฐํ์๋์?????
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.
์ฌ์ค ์๋ฐํ ๋งํ๋ฉด StateFlow. getValue(). isBlank()์ด๊ธด ํด์ !
์ฝ๋๊ฐ ๋์ด๋๊ธด ํ ํ
๋ฐ, ํด๋น ํจ์๊ฐ Validation์ ๊ฒ์ฆํ๋ ํจ์๋ด์์ ์ฌ์ฉ๋๋ฉด ๊ฐ๋
์ฑ์ด ๊ฐ์ ๋๋ ์ฌ์ง๊ฐ ์์ด์
์ ๋ ์ข์ ๊ฒ ๊ฐ์์
ํด๋น ์์ develop ๋ธ๋์น ๋ณํฉ๋๋ฉด, release ๋ธ๋์น ์์ฑ ๋ฐ ๋ณํฉ ์์ ์ ๋๋ค ! release ๋ธ๋์น ๋ณํฉ ์ , ์ถ๊ฐ ๊ธฐ๋ฅ ๊ตฌํ์ฌํญ ์์ผ์๋ฉด ๋ง์ ์ฃผ์ธ์ ! |
์ง๊ธ ์ด ์ํ๋ก mvp๋ฐฐํฌ ํด๋ ์ข์ ๊ฒ ๊ฐ์ต๋๋ค! ๋ฆด๋ฆฌ์ฆ ๋ธ๋์น ํ๊ณ ๋๋ฒ๊น ๋ง ํด๋ณด๋ ์ชฝ์ผ๋ก ํด์! |
1. ๐ ๊ด๋ จ๋ ์ด์ ๋ฐ ์๊ฐ
#117 ์ค๋ฌธ ํญ๋ชฉ ์ญ์ ๊ธฐ๋ฅ ๊ตฌํ
2. ๐ฅ ๋ณ๊ฒฝ๋ ์
์ค๋ฌธ ํญ๋ชฉ ์ถ๊ฐ์, default ํ์ ์ธ ์ฃผ๊ด์์ผ๋ก ์ค์ ๋์์ต๋๋ค.
๋ก๊ทธ์ธ ์ unfocusedText ์์ฑ์ ์ถ๊ฐํ์์ต๋๋ค.
3. โ ๊ผญ ํ์ธํด์คฌ์ผ๋ฉด ํ๋ ๋ถ๋ถ
4. ๐ธ ์คํฌ๋ฆฐ์ท(์ ํ)
8d6ed1ab-ab1d-468b-9c69-65202ceb424d.mp4
5. ๐ก์๊ฒ๋ ํน์ ๊ถ๊ธํ ์ฌํญ๋ค