Skip to content
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

Fix/jaino/#81 #83

Merged
merged 9 commits into from
Jan 5, 2024
Merged

Fix/jaino/#81 #83

merged 9 commits into from
Jan 5, 2024

Conversation

jeongjaino
Copy link
Member

@jeongjaino jeongjaino commented Jan 5, 2024

1. ๐Ÿ“„ ๊ด€๋ จ๋œ ์ด์Šˆ ๋ฐ ์†Œ๊ฐœ

#81 ๋งˆ๊ฐ๊ธฐํ•œ์ด ์ง€๋‚˜๋„ ์„ค๋ฌธ ๋ณด์ด๋Š” ๋ฒ„๊ทธ ์ˆ˜์ •

2. ๐Ÿ”ฅ๋ณ€๊ฒฝ๋œ ์ 

  1. ํ˜„์žฌ ๋งˆ๊ฐ๊ธฐํ•œ์ด ๋‚จ์€ ์„ค๋ฌธ๋งŒ ๋ณด์ด๋„๋ก ์ˆ˜์ •
  2. ์„ค๋ฌธ ํ™”๋ฉด์—์„œ ๊ฒŒ์ŠคํŠธ์ธ ๊ฒฝ์šฐ ์„ค๋ฌธ์„ ๋ณผ ์ˆ˜ ์—†๋„๋ก ์ˆ˜์ •

3. ๐Ÿ“ธ ์Šคํฌ๋ฆฐ์ƒท(์„ ํƒ)

image

์ผ๋ฐ˜ ๋น„ํšŒ์›์ธ ์ƒํ™ฉ (๋’ค๋กœ๊ฐ€๊ธฐ๋‚˜, ๋””์•Œ๋กœ๊ทธ ์•„์›ƒ์‚ฌ์ด๋“œ ๋ˆ„๋ฅด๋ฉด ๋””์•Œ๋กœ๊ทธ ๊บผ์ง€๋„๋ก ๊ตฌํ˜„)

Pasted Graphic (ํ…Œ์ŠคํŠธ๊ฐ€ ๋”ฐ๋กœ ์—†์–ด, ํšŒ์›์ผ ๋•Œ ๋กœ๊ทธ ์ฐ๊ณ  / ์šด์˜์ง„ ์ธ์ฆ ๋ฐ›๊ณ  ๋‹ค์‹œ ๋กœ๊ทธ ์ฐ๊ธฐ)

4. ๐Ÿ’ก์•Œ๊ฒŒ๋œ ํ˜น์€ ๊ถ๊ธˆํ•œ ์‚ฌํ•ญ๋“ค

๊ณ ๋ฏผ๋˜๋Š” ์ƒํ™ฉ
๊ฒŒ์ŠคํŠธ ์ธ ๊ฒฝ์šฐ ๋””์•Œ๋กœ๊ทธ๋กœ ํ‘œํ˜„ํ•˜์—ฌ ํšŒ์›๊ฐ€์ž… ์œ ๋„
๋””์•Œ๋กœ๊ทธ๋ฅผ ๋‹ซ์œผ๋ฉด, ๋นˆํ™”๋ฉด์œผ๋กœ ํ‘œํ˜„

์ด๋Ÿด๊บผ๋ฉด, ๊ทธ๋ƒฅ ์„ค๋ฌธ์—์„œ ๊ฒŒ์ŠคํŠธ ํ™”๋ฉด์„ ๋งŒ๋“œ๋Š”๊ฒŒ ๋‚˜์„๊นŒ ๊ณ ๋ฏผ์ด ๋˜๋„ค์š” ํ•˜ํ•˜

@jeongjaino jeongjaino added ๐Ÿš€์ง„ํ˜ธ๐Ÿš€ ESTP ์ •์ง„ํ˜ธ 23์„ธ ๐ŸŒฑ๊ธฐ๋Šฅ๐ŸŒฑ ์ƒˆ๋กœ์šด ๊ธฐ๋Šฅ ๋‘๋‘๋‘ฅ์žฅ! ๐Ÿ”ฅ๋ฆฌ๋ทฐ ๊ธฐ๋‹ค๋ฆฌ๋Š” ์ค‘๐Ÿ”ฅ PR์„ ์˜ฌ๋ฆฌ๊ณ  ์ฝ”๋“œ๋ฆฌ๋ทฐ๋ฅผ ๊ธฐ๋‹ค๋ฆฌ๊ณ  ์žˆ๋Š” ์ƒํƒœ์ž…๋‹ˆ๋‹ค. ๐Ÿ”จํ”ฝ์Šค๐Ÿ”จ ๋ฒ„๊ทธ ๋ฐ ์ž ์žฌ์  ๋ฌธ์ œ ํ•ด๊ฒฐ labels Jan 5, 2024
@jeongjaino jeongjaino self-assigned this Jan 5, 2024
@tgyuuAn tgyuuAn self-requested a review January 5, 2024 14:10
Copy link
Member

@tgyuuAn tgyuuAn left a comment

Choose a reason for hiding this comment

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

๋””์Šค์ฝ”๋“œ ํ™”์ƒ์ฑ„ํŒ…์œผ๋กœ ๋กœ์ง ๋Œ€๋ถ€๋ถ„ ๋‚ด์šฉ์„ ๋“ค์–ด์„œ ๊ฐ„๋‹จํ•œ ์ฝ”๋ฉ˜ํŠธ๋“ค๋งŒ ๋‹ฌ์•„๋ดค์–ด์š”!

๋„ˆ๋ฌด ๊ณ ์ƒํ•˜์…จ์Šต๋‹ˆ๋‹ค.

์™€ํ”ผ ๋‹ค์‹œ ์œผ๋ผ์ฐจ์ฐจ! ๐Ÿ˜ฝ๐Ÿ˜ฝ๐Ÿ˜ฝ

@@ -1,7 +1,7 @@
package com.wap.wapp.core.data.repository.management

interface ManagementRepository {
suspend fun getManager(userId: String): Result<Boolean>
suspend fun isManager(userId: String): Result<Boolean>
Copy link
Member

Choose a reason for hiding this comment

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

๐Ÿ‘๐Ÿ‘๐Ÿ‘

}
UserRole.MEMBER
},
onFailure = { exception ->
Copy link
Member

Choose a reason for hiding this comment

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

์ด๊ฒƒ๋„ ๋‹จ์ผ ํ‘œํ˜„์‹์ด๋ผ์„œ ์ฝ”ํ‹€๋ฆฐ ์ปจ๋ฒค์…˜ = ์œผ๋กœ ์น˜ํ™˜ํ•  ์ˆ˜ ์žˆ์„ ๊ฒƒ ๊ฐ™์•„์š”...!

Copy link
Member Author

Choose a reason for hiding this comment

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

๋ฐ˜์˜ํ–ˆ์Šต๋‹ˆ๋‹ค !

}

fun isAfterDeadline(): Boolean {
val currentDateTime = LocalDateTime.now()
Copy link
Member

Choose a reason for hiding this comment

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

LocalDateTime.now๋ณด๋‹ค TimeZone์ด ๋“ค์–ด๊ฐ„, DateUtil.generateNowDateTime()์ธ๊ฐ€ ? ๊ทธ๊ฑฐ ์“ฐ๋Š”๊ฒŒ ์–ด๋–จ๊นŒ์š”?!

Copy link
Member Author

Choose a reason for hiding this comment

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

์ข‹์Šต๋‹ˆ๋‹ค์ž‡ !! ๋ฐ˜์˜ํ–ˆ์Šต๋‹ˆ๋‹ค !

Comment on lines +83 to +84
UserRole.MEMBER, UserRole.MANAGER -> { viewModel.getSurveyFormList() }
}
Copy link
Member

Choose a reason for hiding this comment

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

์™€์šฐ when ์ ˆ์—์„œ ์ด๋ ‡๊ฒŒ , ๋ฅผ ์‚ฌ์šฉํ•ด์„œ ์—ฌ๋Ÿฌ ๊ฐœ๋ฅผ ๋„ฃ์„ ์ˆ˜๋„ ์žˆ๊ตฐ์š”.

์ €๋Š” ์ฒ˜์Œ ์•Œ์•˜์Šต๋‹ˆ๋‹ค...

@@ -141,7 +181,7 @@ private fun SurveyFormItemCard(
style = WappTheme.typography.titleBold,
)
Text(
text = calculateDeadline(surveyForm.deadline),
text = surveyForm.calculateDeadline(),
color = WappTheme.colors.yellow34,
Copy link
Member

Choose a reason for hiding this comment

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

๐Ÿ‘๐Ÿ‘๐Ÿ‘

Comment on lines +79 to 86
sealed class UserRoleUiState {
data object Init : UserRoleUiState()
data class Success(val userRole: UserRole) : UserRoleUiState()
}

sealed class SurveyFormListUiState {
data object Init : SurveyFormListUiState()
data class Success(val surveyFormList: List<SurveyForm>) : SurveyFormListUiState()
Copy link
Member

Choose a reason for hiding this comment

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

์ด๊ฒŒ ์ œ๊ฐ€ ๋กœ์ง์งค ๋•Œ๋งˆ๋‹ค ํ•ญ์ƒ ๊ณ ๋ฏผ์ธ๋ฐ,

์ด๋Ÿฌํ•œ sealed class๋“ค์„ ViewModel ์•ˆ์— ๋„ฃ๋Š”๊ฒŒ ๋งž์„๊นŒ์š”?

์•„๋‹ˆ๋ฉด ๋ฐ–์œผ๋กœ ๋นผ๋Š” ๊ฒƒ์ด ๋งž๋Š”๊ฑธ๊นŒ์š” ...?

ํ•ญ์ƒ ๊ณ ๋ฏผ์ด์—์š”..

๋ณด๋ฉด ์ œ๊ฐ€ ์ง  ๋กœ์ง๋“ค์€ ๋Œ€๋ถ€๋ถ„ ๋‹ค ๋นผ๋†จ์„๊ฑฐ์—์š”.

Copy link
Member Author

Choose a reason for hiding this comment

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

์Œ ์ €๋„ ์ฒ˜์Œ์—๋Š” ๋‹ค ๋นผ๊ณ  ์‹œ์ž‘ํ–ˆ๋Š”๋ฐ, ์—ฌ๋Ÿฌ ๊ด€๋ฆฌ ์ธก๋ฉด ๋•Œ๋ฌธ์— ๋‹ค ์•ˆ์œผ๋กœ ๋„ฃ๊ธฐ ์‹œ์ž‘ํ–ˆ์–ด์š”

  1. ๊ธฐ๋ณธ์ ์œผ๋กœ ํŒŒ์ผ์ด ๋งŽ์•„์ง
  2. State ๋„ค์ด๋ฐ์ด ๊ฒน์น˜๊ฑฐ๋‚˜ ๋น„์Šทํ•œ ๊ฒฝ์šฐ ์‹ค์ˆ˜ํ•  ์—ฌ์ง€๊ฐ€ ์žˆ์Œ.
  • viewModel.state๋กœ ์ ‘๊ทผํ•ด์„œ ์‹ค์ˆ˜ ์—ฌ์ง€๋ฅผ ์ค„์—ฌ์คŒ

์ €๋Š” ์œ„์˜ ๊ฒฝ์šฐ ๋•Œ๋ฌธ์— ์‚ฌ์šฉํ•˜๊ธด ํ•˜๋Š”๋ฐ,
๋”ฐ๋กœ ViewModel์˜ ์ฝ”๋“œ ๋Ÿ‰์ด ๋งŽ์•„์ง€๊ณ , UiState๋ฅผ ViewModel์—์„œ ์ ‘๊ทผํ•ด์•ผ ํ•˜๋Š” ๋ถˆํŽธํ•จ๊ณผ ๊ฐ™์€ ๋‹จ์ ๋„ ์žˆ์„ ๊ฒƒ ๊ฐ™์•„์š”

์„œ๋กœ ์žฅ๋‹จ์ ์ด ์žˆ์–ด์„œ ์ •๋‹ต์€ ์—†์ง€ ์•Š์„๊นŒ์š” ํ•˜ํ•˜,,

Copy link
Member

Choose a reason for hiding this comment

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

์ด๊ฒŒ ํ•ญ์ƒ ๊ณ ๋ฏผ์ด๊ธด ํ•ด์š”.... ๋ˆ„๊ฐ€ ๋ช…ํ™•ํ•œ ๋‹ต์„ ๋‚ด๋ ค์คฌ์œผ๋ฉด.....

ํ™•์‹คํžˆ ์ง„ํ˜ธ๋‹˜ ๋ง ๋“ค์œผ๋‹ˆ๊นŒ ๋‘˜๋‹ค ์žฅ๋‹จ์ ์ด ์žˆ๋„ค์š”..

@tgyuuAn
Copy link
Member

tgyuuAn commented Jan 5, 2024

๊ฒŒ์ŠคํŠธ ์ธ ๊ฒฝ์šฐ ๋””์•Œ๋กœ๊ทธ๋กœ ํ‘œํ˜„ํ•˜์—ฌ ํšŒ์›๊ฐ€์ž… ์œ ๋„

๋””์•Œ๋กœ๊ทธ๋ฅผ ๋‹ซ์œผ๋ฉด, ๋นˆํ™”๋ฉด์œผ๋กœ ํ‘œํ˜„

์ด๋Ÿด๊บผ๋ฉด, ๊ทธ๋ƒฅ ์„ค๋ฌธ์—์„œ ๊ฒŒ์ŠคํŠธ ํ™”๋ฉด์„ ๋งŒ๋“œ๋Š”๊ฒŒ ๋‚˜์„๊นŒ ๊ณ ๋ฏผ์ด ๋˜๋„ค์š” ํ•˜ํ•˜

ํ”„๋กœํ•„ ํ™”๋ฉด์ฒ˜๋Ÿผ ๊ทธ๋ƒฅ ๋นˆ ํ™”๋ฉด์„ ํ‘œ์‹œํ•ด๋„ ์ข‹์„ ๊ฒƒ ๊ฐ™์•„์š”.

๋‹ค์ด์–ผ๋กœ๊ทธ๊ฐ€ ๋‹ซํžˆ๋Š” ๊ฑฐ๋ผ๋ฉด ๋นˆํ™”๋ฉด์„ ๋„์›Œ์ค˜์•ผ ํ•˜๋Š”๋ฐ ์ข€ ์ด์ƒํ•  ๊ฒƒ ๊ฐ™๊ธฐ๋„ ..?

@jeongjaino
Copy link
Member Author

๊ฒŒ์ŠคํŠธ ์ธ ๊ฒฝ์šฐ ๋””์•Œ๋กœ๊ทธ๋กœ ํ‘œํ˜„ํ•˜์—ฌ ํšŒ์›๊ฐ€์ž… ์œ ๋„
๋””์•Œ๋กœ๊ทธ๋ฅผ ๋‹ซ์œผ๋ฉด, ๋นˆํ™”๋ฉด์œผ๋กœ ํ‘œํ˜„
์ด๋Ÿด๊บผ๋ฉด, ๊ทธ๋ƒฅ ์„ค๋ฌธ์—์„œ ๊ฒŒ์ŠคํŠธ ํ™”๋ฉด์„ ๋งŒ๋“œ๋Š”๊ฒŒ ๋‚˜์„๊นŒ ๊ณ ๋ฏผ์ด ๋˜๋„ค์š” ํ•˜ํ•˜

ํ”„๋กœํ•„ ํ™”๋ฉด์ฒ˜๋Ÿผ ๊ทธ๋ƒฅ ๋นˆ ํ™”๋ฉด์„ ํ‘œ์‹œํ•ด๋„ ์ข‹์„ ๊ฒƒ ๊ฐ™์•„์š”.

๋‹ค์ด์–ผ๋กœ๊ทธ๊ฐ€ ๋‹ซํžˆ๋Š” ๊ฑฐ๋ผ๋ฉด ๋นˆํ™”๋ฉด์„ ๋„์›Œ์ค˜์•ผ ํ•˜๋Š”๋ฐ ์ข€ ์ด์ƒํ•  ๊ฒƒ ๊ฐ™๊ธฐ๋„ ..?

๋นˆํ™”๋ฉด์€ ์•„๋‹ˆ๊ตฌ

์„ค๋ฌธ

์ฐธ๊ฐ€ํ•œ ํ–‰์‚ฌ์— ๋Œ€ํ•ด ์„ค๋ฌธ์— ์‘๋‹ตํ•˜์„ธ์š” !

๋Š” ๋‚จ์•„์žˆ์Šต๋‹ˆ๋‹ค ์บฌ์บฌ

@tgyuuAn tgyuuAn added ๐ŸŒŸ๋จธ์ง€ ํ•ด์ฃผ์„ธ์š”๐ŸŒŸ ์ฝ”๋“œ ๋ฆฌ๋ทฐ๊ฐ€ ์™„๋ฃŒ๋œ ๋’ค PR์„ ์˜ฌ๋ฆฐ์‚ฌ๋žŒ์ด Merge๋ฅผ ํ•˜๋ฉด ๋˜๋Š” ๋‹จ๊ณ„์ž…๋‹ˆ๋‹ค. and removed ๐Ÿ”ฅ๋ฆฌ๋ทฐ ๊ธฐ๋‹ค๋ฆฌ๋Š” ์ค‘๐Ÿ”ฅ PR์„ ์˜ฌ๋ฆฌ๊ณ  ์ฝ”๋“œ๋ฆฌ๋ทฐ๋ฅผ ๊ธฐ๋‹ค๋ฆฌ๊ณ  ์žˆ๋Š” ์ƒํƒœ์ž…๋‹ˆ๋‹ค. labels Jan 5, 2024
@tgyuuAn
Copy link
Member

tgyuuAn commented Jan 5, 2024

@jeongjaino

๊ทผ๋ฐ ์ง€๊ธˆ๋„ ๊ดœ์ฐฎ์„ ๊ฒƒ ๊ฐ™๊ธฐ๋„ ...?

@jeongjaino jeongjaino merged commit eb7037b into develop Jan 5, 2024
1 check passed
@tgyuuAn tgyuuAn deleted the fix/jaino/#81 branch February 6, 2024 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
๐ŸŒŸ๋จธ์ง€ ํ•ด์ฃผ์„ธ์š”๐ŸŒŸ ์ฝ”๋“œ ๋ฆฌ๋ทฐ๊ฐ€ ์™„๋ฃŒ๋œ ๋’ค PR์„ ์˜ฌ๋ฆฐ์‚ฌ๋žŒ์ด Merge๋ฅผ ํ•˜๋ฉด ๋˜๋Š” ๋‹จ๊ณ„์ž…๋‹ˆ๋‹ค. ๐ŸŒฑ๊ธฐ๋Šฅ๐ŸŒฑ ์ƒˆ๋กœ์šด ๊ธฐ๋Šฅ ๋‘๋‘๋‘ฅ์žฅ! ๐Ÿ”จํ”ฝ์Šค๐Ÿ”จ ๋ฒ„๊ทธ ๋ฐ ์ž ์žฌ์  ๋ฌธ์ œ ํ•ด๊ฒฐ ๐Ÿš€์ง„ํ˜ธ๐Ÿš€ ESTP ์ •์ง„ํ˜ธ 23์„ธ
Projects
None yet
2 participants